Dynamic File Chunking for Concurrent Network Downloads
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current file downloading methods over a single connection are limited by speed, leading to prolonged download times due to inconsistent network speeds, which negatively impact user experience.
Innovation Solution
A method that determines the current network speed and splits a target file into dynamic chunks based on this speed, allowing simultaneous download operations across multiple connections using chunk download threads, and adjusts chunk numbers according to network conditions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a file is split into fixed proportion segments for download over multiple connections, then download speed limitation of single connection is overcome, but download time is prolonged due to inconsistent network speeds
Solution Approach 1:
The patent applies dynamics by transitioning from fixed proportion segmentation to dynamic chunk splitting based on real-time network speed measurement. The system continuously monitors network conditions and adjusts chunk sizes accordingly, allowing the download strategy to adapt to changing network speeds and maintain optimal download performance throughout the process
Solution Approach 2:
The patent changes the parameter of chunk size based on network speed measurements. By measuring actual network speed and using it to determine optimal chunk sizes, the system adjusts the segmentation parameters dynamically, ensuring that each download segment is sized appropriately for current network conditions to minimize overall download time
2Ease of manufacture
If fixed chunk splitting is used throughout download time, then implementation is simple, but user experience is affected due to prolonged download time
Solution Approach 1:
The patent implements feedback by measuring actual network speed during the download process and using this information to adjust chunk splitting strategies. This closed-loop approach allows the system to learn from real-time network conditions and optimize subsequent download segments, significantly improving user experience while remaining implementable through standard programming techniques
Data Source
AI summary
Disclosed are a file downloading method, apparatus, and electronic device. A preferred embodiment of the method comprises: determining, in response to receiving a download instruction issued from a user with respect to a target file, whether a download task for downloading the target file is present in a download task list; obtaining the size of the target file from the server in response to determining that the download task with respect to the target file is not in the download task list; determining a current network speed of a download network in use; splitting the target file into chunks based on the current network speed and the size of the target file to obtain at least one to-be-downloaded chunk file and chunk information corresponding to respective to-be-downloaded chunk files; and performing download operations simultaneously on the respective to-be-downloaded chunk files.


