Method for downloading file by adopting soft bus acceleration and P2P acceleration
By combining soft bus acceleration and P2P acceleration file download methods, the device builds a multi-source segmented download link between the central server and multiple distribution devices, solving the problems of excessive server load and slow download speed in the traditional file acquisition path, and achieving efficient and stable file download.
Patent Information
- Application Number
- CN202411892400.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-08
AI Technical Summary
The traditional file acquisition method relies on the central server, resulting in excessive server load, network congestion, slow file download speed, low efficiency, and affect user experience.
Using a file download method combining soft bus acceleration and P2P acceleration, the device searches for available devices through the soft bus, builds a multi-source segmented download link, and downloads file fragments from the central server and multiple distribution devices at the same time to realize multi-source segmented download of files.
It reduces the load on the central server, improves file download speed and efficiency, reduces network traffic consumption, and improves user experience.
Smart Images

Figure CN119788450A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer networks, and in particular to a file downloading method combining soft bus acceleration with P2P acceleration. Background Art
[0002] With the popularization of smart devices and the development of network technology, device firmware updates and application installation and updates have become important links in the use of smart devices.
[0003] Traditionally, the way to obtain files has been mainly based on the central server. Under this model, all file requests from smart devices flock to the central server, which will undoubtedly cause the central server to bear an extremely heavy burden, occupy a large amount of its resources, and face severe challenges in processing performance. Especially during peak hours such as when software updates are released, a large number of devices simultaneously initiate connection requests to the central server, which can easily cause serious congestion in the network channel. The network transmission speed will become extremely slow, and the file download time will be greatly extended, which will not only greatly reduce the efficiency of file acquisition, but also bring many inconveniences to users in the process of using smart devices, seriously affecting the user's experience of smart devices and related services, and may have a certain hindering effect on the healthy development of the entire smart device industry ecosystem. Summary of the invention
[0004] In order to solve the technical problems in the background technology, the purpose of the present invention is to provide a file download method combining soft bus acceleration and P2P acceleration to reduce the high load of the central server and save traffic consumption.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A method for downloading files using soft bus acceleration and P2P acceleration includes the following steps:
[0007] S1. Initiate a download request: Device C1 initiates a file download request, which is then sent to the central server;
[0008] S2. Receiving and processing: After receiving the request, the central server immediately processes it and returns the download address, file tag, file size and other related information of the complete file F to the device C1;
[0009] S3. Search and discover available devices: Device C1 searches and discovers other devices that provide file distribution services with the help of the soft bus;
[0010] S4, discover and construct the bus: the device C1 immediately builds the soft bus when it finds the available device, creating conditions and laying the foundation for the subsequent file download operation;
[0011] S5: Device quantity determination: Device C1 determines whether the number of devices that can provide distribution services is greater than 0. If the number is not greater than 0, it jumps to step S8;
[0012] S6, multi-source segmented downloading: Device C1 downloads file segments F0 to Fn from the central server and each distribution device respectively according to the size of file F and the number of devices that can provide distribution services, where n is the number of devices on the available distribution server, thereby achieving multi-source segmented downloading of files and improving downloading efficiency and stability;
[0013] S7, file fragment merging and verification: Device C1 merges and integrates the downloaded file fragments, then disconnects the soft bus connection, and verifies the integrity of the merged file. After the verification is correct, the entire file download process ends;
[0014] S8, download completed: Device C1 first determines whether the current task is an instant download task; if the determination result is no, it jumps to process S9; if the determination result is yes, it directly downloads the complete file F from the central server, verifies the file after the download is complete, and ends the task process after the verification is correct;
[0015] S9, central server waiting and subsequent processing: the central server is continuously in a waiting state to receive non-instant download request information from other devices.
[0016] Furthermore, the step S1 is specifically:
[0017] Device C1 first determines the detailed information of the file to be downloaded and constructs a request data packet containing its own identification, request type, and file-related parameters according to the agreed protocol. It then selects the connection method and transmission channel based on the network environment to send the data packet, and finally starts the timer to wait for the central server to respond and performs subsequent processing based on the result.
[0018] Furthermore, the step S3 is specifically:
[0019] Device C1 first activates the search function of the soft bus, sets the broadcast parameters according to the soft bus protocol, constructs a broadcast data packet containing its own identification and search instructions, and broadcasts it to a specific network range; after other devices receive it, the device with file distribution service capability parses the data packet, extracts the C1 identification and organizes its own device information, distributable file details, network load and other data to form a response packet for transmission; C1 continuously listens to and receives the response packet, parses and extracts key information, and establishes and organizes a list of candidate devices containing various parameters of the responding devices for subsequent screening and utilization to promote the file download process.
[0020] Furthermore, the step S4 is specifically as follows:
[0021] After device C1 detects an available device, it quickly initializes the local soft bus module according to the preset soft bus protocol standard, exchanges connection parameters with the available device and reaches consensus, establishes a two-way communication link, and configures the data transmission buffer, priority and error handling mechanism to complete the soft bus construction and prepare for file download.
[0022] Furthermore, the step S5 is specifically as follows:
[0023] After completing the search and discovery of other devices that provide file distribution services, device C1 immediately starts the quantity judgment mechanism; accesses the list or data structure that stores the information of discovered devices, extracts and counts the number of devices with distribution service functions; then compares this number with 0. If the counted number is less than or equal to 0, no suitable distribution device is found. At this time, device C1 directly jumps to step S8 according to the preset process logic, and starts the judgment process for the instant download task to determine the subsequent appropriate file download path and strategy.
[0024] Furthermore, the step S6 comprises the following specific steps:
[0025] Device C1 reads the downloaded fragments F0 to Fn in sequence according to the numbering order of the file fragments, writes them one by one into a newly created blank file to complete the merger and integration, then closes the soft bus connection with each distribution device and the central server, and uses a specific verification algorithm to perform an integrity check on the merged file. If the verification result is consistent with the expectation, the relevant resources are released and the entire file download process ends.
[0026] Furthermore, in step S6, device C1 determines the number of distribution devices and decides the downloading method, specifically:
[0027] If n>0, use the formula: And the central server C s It is also considered a download source; the device C1 downloads fragments from the central server and each distribution device: for i=0 to n, if i=0, download fragment F0 from the central server, otherwise: download fragment F0 from distribution device A i Download F i ;
[0028] Among them, Z Fi represents the number of download sources for the ith fragment of file F, Z F It indicates the number of downloads of the file to be downloaded;
[0029] R represents the file download request of device C1; s represents the central server; F represents the file to be downloaded; A represents the set of available devices that provide file distribution services; n represents the number of available devices (n = |A|); Fi represents the i-th fragment (i=0,1...n) of file F;
[0030] When C s After receiving R, C s Calculate the relevant information of file F, that is, the download address D F 、Tag symbol H F (Hash value), file size Z F , and returns the information to device C1.
[0031] Furthermore, the step S9 is specifically as follows:
[0032] When the central server reaches the task time limit, it immediately slices file F and divides it into F0 to F n Then, the relevant information of these slices is distributed to all devices in the waiting download task state so that they can perform file download operations later.
[0033] Device C1 accurately locates and starts the download process of fragment F0 based on the slice information distributed by the central server. After successfully obtaining the fragment, it immediately starts the upload process and shares the fragment F0 to the designated space for other devices to download on demand, thus achieving collaborative operation of file distribution;
[0034] Device C1 checks and confirms whether it has successfully downloaded all file fragments; if there is a situation where the download is not completed and the device providing the corresponding fragment is in a disconnected state, device C1 will turn to the central server to continue downloading the missing fragment; if device C1 has completely downloaded all fragments, it will merge these file fragments and then perform verification. After the verification is completed, it will delay and stop the ongoing fragment upload task, and finally end the entire process.
[0035] Furthermore, the file tag in step S2 is a Hash value of the complete file F.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] 1. Dynamic fragmentation and adaptive download strategy: When the system starts a file download task, it will quickly evaluate the overall size of the file and accurately count the number of devices currently available to provide distribution services; based on these key data, the intelligent decision-making module within the system begins to operate, and through complex calculations and analysis, it dynamically determines the most reasonable number of file fragments and the size of each fragment; in this way, the resources of peripheral devices can be fully mobilized, and each available device can undertake appropriate fragment transmission tasks according to its own capabilities; at the same time, the system always monitors the actual situation such as network environment and device load, and flexibly adjusts download priority, number of connections and other strategies, which effectively reduces unnecessary traffic waste while accelerating the download process.
[0038] 2. Hybrid acceleration mechanism of soft bus and P2P: By cleverly integrating soft bus and P2P technology, smart devices have opened up a new path for efficient downloading. On the one hand, when in a conventional network layout, the device can keenly use the soft bus to quickly discover available devices in the surrounding area, fully tap their resources to download files, and greatly improve the download speed. On the other hand, even if the device is in an isolated and independent state, it can rely on its own network adaptation capabilities to cooperate with other devices distributed in more remote areas to form a temporary P2P network, so as to find suitable file resources in the vast network world and download them, effectively breaking through environmental restrictions and providing all-round guarantees for stable and efficient file downloads. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A flowchart for file download that combines soft bus acceleration with P2P acceleration;
[0041] Figure 2 This is a flowchart for a file downloading program that combines soft bus acceleration with P2P acceleration. DETAILED DESCRIPTION
[0042] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] A number of embodiments are given below to describe the present invention in detail.
[0044] Example 1
[0045] like Figures 1-2 As shown, a method for downloading files using soft bus acceleration and P2P acceleration includes the following steps:
[0046] S1. Initiate a download request: Device C1 initiates a file download request, which is then sent to the central server;
[0047] S2. Receiving and processing: After receiving the request, the central server immediately processes it and returns the download address, file tag, file size and other related information of the complete file F to the device C1;
[0048] S3. Search and discover available devices: Device C1 searches and discovers other devices that provide file distribution services with the help of the soft bus;
[0049] S4, discover and construct the bus: the device C1 immediately builds the soft bus when it finds the available device, creating conditions and laying the foundation for the subsequent file download operation;
[0050] S5: Device quantity determination: Device C1 determines whether the number of devices that can provide distribution services is greater than 0. If the number is not greater than 0, it jumps to step S8;
[0051] S6, multi-source segmented downloading: Device C1 downloads file segments F0 to F1 from the central server and each distribution device according to the size of file F and the number of devices that can provide distribution services. n , n is the number of devices on the available distribution server, so as to achieve multi-source segmented download of files and improve download efficiency and stability;
[0052] S7, file fragment merging and verification: Device C1 merges and integrates the downloaded file fragments, then disconnects the soft bus connection, and verifies the integrity of the merged file. After the verification is correct, the entire file download process ends;
[0053] S8, download completed: Device C1 first determines whether the current task is an instant download task; if the determination result is no, it jumps to process S9; if the determination result is yes, it directly downloads the complete file F from the central server, verifies the file after the download is complete, and ends the task process after the verification is correct;
[0054] S9, central server waiting and subsequent processing: the central server is continuously in a waiting state to receive non-instant download request information from other devices.
[0055] This file download technology uses a soft bus and multi-device collaboration mechanism. First, it has high efficiency. It uses multi-source segmented downloading to intelligently allocate download tasks based on file size and the number of distribution devices, giving full play to the advantages of multi-device parallel downloading and greatly improving download speed. Second, it has stability. The participation of multiple devices and the construction of the soft bus ensure the redundancy and reliability of the download link, reducing the risk of download failure due to single point failure or network fluctuations. Third, it has flexibility. It can flexibly switch download strategies based on the number of devices and instant task attributes to adapt to different network environments and task requirements. Fourth, it optimizes resources. It rationally utilizes peripheral device resources to reduce the burden on the central server and reduce the concentrated consumption of network traffic, thereby improving the overall network resource utilization.
[0056] Specifically, step S1 is as follows:
[0057] Device C1 first determines the detailed information of the file to be downloaded and constructs a request data packet containing its own identification, request type, and file-related parameters according to the agreed protocol. It then selects the connection method and transmission channel according to the network environment to send the data packet, and finally starts the timer to wait for the central server to respond and performs subsequent processing based on the result;
[0058] By determining the detailed information of the downloaded file and constructing the request data packet according to the agreed protocol, the accuracy and comprehensiveness of the request content are guaranteed, so that the central server can accurately identify the needs. The standardized data packet format follows the unified standard, which is conducive to the orderly development of network communication and avoids request processing errors caused by unclear information or inconsistent formats; and starts the timer to wait for the response, and reasonably sets the waiting time to avoid wasting time by waiting indefinitely. If a response is received within the specified time, subsequent processing can be carried out in time, which helps to improve the overall efficiency of the download process; at the same time, the mechanism for subsequent processing based on the response results enables the process to effectively respond to various situations, enhances the reliability of the download process, and reduces problems such as process interruption due to abnormal response.
[0059] Specifically, step S3 is as follows:
[0060] Device C1 first activates the search function of the soft bus, sets broadcast parameters according to the soft bus protocol, constructs a broadcast data packet containing its own identification and search instructions, and broadcasts it to a specific network range; after other devices receive it, the device with file distribution service capability parses the data packet, extracts the C1 identification, and organizes its own device information, distributable file details, network load and other data to form a response packet for transmission; C1 continuously monitors and receives the response packet, parses and extracts key information, and establishes and organizes a list of candidate devices containing various parameters of the responding devices for subsequent screening and utilization to promote the file download process;
[0061] Device C1 establishes a list of candidate devices by activating the soft bus search function, broadcasting data packets according to the protocol and receiving response packets. This process can effectively discover devices that can provide file distribution services, fully grasp the relevant parameters of each device, and create conditions for subsequent screening of suitable devices to promote file downloads. It improves the accuracy and rationality of device selection during file downloading, thereby ensuring that the file download process is carried out efficiently and orderly.
[0062] Specifically, step S4 is as follows:
[0063] After device C1 detects an available device, it quickly initializes the local soft bus module according to the preset soft bus protocol standard, exchanges connection parameters with the available device and reaches consensus, establishes a two-way communication link, and configures the data transmission buffer, priority and error handling mechanism, completing the soft bus construction to prepare for file download;
[0064] The operation is performed according to the preset soft bus protocol standard, ensuring that the soft bus construction process follows a unified specification, so that the communication between device C1 and available devices meets the established requirements, enhancing the compatibility of interactions between different devices, avoiding connection obstacles caused by protocol differences, and ensuring that the soft bus can be smoothly built;
[0065] In general, device C1 builds a soft bus according to the standard, and creates stable, efficient and orderly transmission conditions for file downloads by initializing modules, negotiating parameters, establishing links and configuring related mechanisms.
[0066] Specifically, step S5 is as follows:
[0067] After completing the search and discovery of other devices that provide file distribution services, device C1 immediately starts the quantity judgment mechanism; accesses the list or data structure storing the information of discovered devices, extracts and counts the number of devices with distribution service functions; then compares this number with 0. If the number obtained by counting is less than or equal to 0, no suitable distribution device is found. At this time, device C1 directly jumps to step S8 according to the preset process logic, and starts the judgment process for the instant download task to determine the subsequent appropriate file download path and strategy;
[0068] Device C1 starts the quantity judgment mechanism, counts the number of devices by accessing the relevant information list and comparing it with 0, can accurately determine whether there is a device that can provide distribution services. When no suitable device is found, it jumps to step S8 according to the preset logic to start instant download task judgment, effectively and flexibly adjusts the process according to the actual situation, and ensures the rationality and adaptability of the file download path and strategy selection.
[0069] Specifically, step S6 includes the following steps:
[0070] Device C1 reads the downloaded segments F0 to F1 in the order of the file segment numbers. n , write them one by one into a newly created blank file to complete the merging and integration, then close the soft bus connection with each distribution device and the central server, use a specific verification algorithm to perform integrity verification on the merged file, and if the verification result is consistent with the expectation, release the relevant resources and end the entire file download process;
[0071] Device C1 reads and integrates the downloaded file fragments in numerical order, closes the soft bus connection after the merger is completed, uses a specific verification algorithm to verify the integrity of the merged file, and releases resources to end the download process when the verification result meets expectations. This series of operations ensures the integrity of the file download, manages resources reasonably, and allows the entire file download process to be concluded in an orderly and standardized manner.
[0072] Specifically, step S9 is as follows:
[0073] When the central server reaches the task time limit, it immediately slices file F and divides it into F0 to F n Then, the relevant information of these slices is distributed to all devices in the waiting download task state so that they can perform file download operations later.
[0074] Device C1 accurately locates and starts the download process of fragment F0 based on the slice information distributed by the central server. After successfully obtaining the fragment, it immediately starts the upload process and shares the fragment F0 to the designated space for other devices to download on demand, thus achieving collaborative operation of file distribution;
[0075] Device C1 checks and confirms whether it has successfully downloaded all file segments; if the download is not yet complete and the device providing the corresponding segment is disconnected, device C1 will turn to the central server to continue downloading the missing segment; if device C1 has completely downloaded all segments, it will merge these file segments and then perform verification. After the verification is completed, the ongoing segment upload task will be delayed and stopped, and the entire process will end;
[0076] The central server processes file slices and distributes information within a limited time, providing a basis for devices waiting to download. Device C1 can accurately carry out download and sharing operations to achieve collaboration. At the same time, by checking its own download status, it can supplement missing fragments from the central server as needed or merge and verify after the entire download is completed, and reasonably delay and stop the upload task, which ensures the integrity of file downloads, promotes the coordination of file distribution, and improves the orderliness and efficiency of the overall process.
[0077] Furthermore, the file tag in step S2 is the hash value of the complete file F;
[0078] In step S2, the file tag is set to the hash value of the complete file F. The file can be accurately identified by this unique and fixed hash value, which is convenient for the subsequent device C1 to compare with it when performing integrity check on the merged file after the download is completed, and accurately determine whether the file is complete and whether data tampering has occurred, thereby ensuring the accuracy and reliability of file downloading.
[0079] Example 2
[0080] In the above embodiment 1, the device C1 further improves the above embodiment 1. In step S6, the device C1 determines the number of distribution devices and determines the downloading method, which is as follows:
[0081] If n>0, use the formula: And the central server C s It is also considered a download source; device C1 downloads segments from the central server and each distribution device: for i = 0 to n, if i = 0, download segment F0 from the central server, otherwise: download segment F0 from distribution device A i Download F i ;
[0082] Among them, Z Fi represents the number of download sources for the ith fragment of file F, Z F It indicates the number of downloads of the file to be downloaded;
[0083] R represents the file download request of device C1; s represents the central server; F represents the file to be downloaded; A represents the set of available devices that provide file distribution services; n represents the number of available devices (n = |A|); F i represents the i-th fragment (i=0,1...n) of file F;
[0084] When C s After receiving R, C s Calculate the relevant information of file F, that is, the download address D F 、Tag symbol H F (Hash value), file size Z F , and returns the information to device C1.
[0085] It should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus.
[0086] Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core idea of the present invention.
[0087] The above are only preferred embodiments of the present invention. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the protection scope of the present invention.
Claims
1. A method for downloading files using soft bus acceleration and P2P acceleration, characterized in that: The following steps are involved: S1. Initiate a download request: Device C1 initiates a file download request, which is then sent to the central server; S2. Receiving and processing: After receiving the request, the central server immediately processes it and returns the download address, file tag, file size and other related information of the complete file F to the device C1; S3. Search and discover available devices: Device C1 searches and discovers other devices that provide file distribution services with the help of the soft bus; S4, discover and construct the bus: the device C1 immediately builds the soft bus when it finds the available device, creating conditions and laying the foundation for the subsequent file download operation; S5: Device quantity determination: Device C1 determines whether the number of devices that can provide distribution services is greater than 0. If the number is not greater than 0, it jumps to step S8; S6, multi-source segmented downloading: Device C1 downloads file segments F0 to F1 from the central server and each distribution device according to the size of file F and the number of devices that can provide distribution services. n , n is the number of devices on the available distribution server, so as to achieve multi-source segmented download of files and improve download efficiency and stability; S7, file fragment merging and verification: Device C1 merges and integrates the downloaded file fragments, then disconnects the soft bus connection, and verifies the integrity of the merged file. After the verification is correct, the entire file download process ends; S8, downloading completed: the device C1 first determines whether the current task is an immediate download task; If the determination result is no, jump to process S9; If the answer is yes, the complete file F is downloaded directly from the central server. After the download is complete, the file is verified. After the verification is correct, the task process ends. S9, central server waiting and subsequent processing: the central server is continuously in a waiting state to receive non-instant download request information from other devices.
2. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The step S1 is specifically: Device C1 first determines the detailed information of the file to be downloaded and constructs a request data packet containing its own identification, request type, and file-related parameters according to the agreed protocol. It then selects the connection method and transmission channel based on the network environment to send the data packet, and finally starts the timer to wait for the central server to respond and performs subsequent processing based on the result.
3. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The step S3 is specifically: Device C1 first activates the search function of the soft bus, sets the broadcast parameters according to the soft bus protocol, constructs a broadcast data packet containing its own identification and search instructions, and broadcasts it to a specific network range; after other devices receive it, the device with file distribution service capability parses the data packet, extracts the C1 identification and organizes its own device information, distributable file details, network load and other data to form a response packet for transmission; C1 continuously listens to and receives the response packet, parses and extracts key information, and establishes and organizes a list of candidate devices containing various parameters of the responding devices for subsequent screening and utilization to promote the file download process.
4. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The step S4 is specifically: After device C1 detects an available device, it quickly initializes the local soft bus module according to the preset soft bus protocol standard, exchanges connection parameters with the available device and reaches consensus, establishes a two-way communication link, and configures the data transmission buffer, priority and error handling mechanism to complete the soft bus construction and prepare for file download.
5. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The step S5 is specifically: After completing the search and discovery of other devices that provide file distribution services, device C1 immediately starts the quantity judgment mechanism; accesses the list or data structure that stores the information of discovered devices, extracts and counts the number of devices with distribution service functions; then compares this number with 0. If the counted number is less than or equal to 0, no suitable distribution device is found. At this time, device C1 directly jumps to step S8 according to the preset process logic, and starts the judgment process for the instant download task to determine the subsequent appropriate file download path and strategy.
6. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The specific steps of step S6 are as follows: Device C1 reads the downloaded segments F0 to F1 in the order of the file segment numbers. n , write them one by one into a newly created blank file to complete the merger and integration, then close the soft bus connection with each distribution device and the central server, and use a specific verification algorithm to check the integrity of the merged file. If the verification result is consistent with the expectation, the relevant resources are released and the entire file download process ends.
7. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: In step S6, device C1 determines the number of distribution devices and decides the downloading method, specifically: If n>0, use the formula: And the central server C s It is also considered a download source; the device C1 downloads fragments from the central server and each distribution device: for i=0 to n, if i=0, download fragment F0 from the central server, otherwise: download fragment F0 from distribution device A i Download F i ; Among them, Z Fi represents the number of download sources for the ith fragment of file F, Z F It indicates the number of downloads of the file to be downloaded; R represents the file download request of device C1; s represents the central server; F represents the file to be downloaded; A represents the set of available devices that provide file distribution services; n represents the number of available devices (n = |A|); F i represents the i-th fragment (i=0,1...n) of file F; When C s After receiving R, C s Calculate the relevant information of file F, that is, the download address D F 、Tag symbol H F (Hash value), file size Z F , and returns the information to device C1.
8. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The step S9 is specifically as follows: When the central server reaches the task time limit, it immediately slices file F and divides it into F0 to F n Then, the relevant information of these slices is distributed to all devices in the waiting download task state so that they can perform file download operations later. Device C1 accurately locates and starts the download process of fragment F0 based on the slice information distributed by the central server. After successfully obtaining the fragment, it immediately starts the upload process and shares the fragment F0 to the designated space for other devices to download on demand, thus achieving collaborative operation of file distribution; Device C1 checks and confirms whether it has successfully downloaded all file fragments; if there is a situation where the download is not completed and the device providing the corresponding fragment is in a disconnected state, device C1 will turn to the central server to continue downloading the missing fragment; if device C1 has completely downloaded all fragments, it will merge these file fragments and then perform verification. After the verification is completed, it will delay and stop the ongoing fragment upload task, and finally end the entire process.
9. The method for downloading files using soft bus acceleration and P2P acceleration according to claim 1, characterized in that: The file tag in step S2 is the Hash value of the complete file F.
Citation Information
Patent Citations
Downloading method, system, P2P server and client
CN101635737A
File download method and server, download client and system adopting same
CN102055786A
Large file downloading method and terminal
CN117278546A
File downloading method based on fragment multiplexing
CN117459522A
Networking method, system and terminal based on distributed soft bus
CN119030823A