CN112055036A - Data downloading method, device, equipment, system and readable storage medium - Google Patents

Data downloading method, device, equipment, system and readable storage medium Download PDF

Info

Publication number
CN112055036A
CN112055036A CN201910487137.7A CN201910487137A CN112055036A CN 112055036 A CN112055036 A CN 112055036A CN 201910487137 A CN201910487137 A CN 201910487137A CN 112055036 A CN112055036 A CN 112055036A
Authority
CN
China
Prior art keywords
speed
connection
data
downloading
current
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.)
Pending
Application number
CN201910487137.7A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910487137.7A priority Critical patent/CN112055036A/en
Publication of CN112055036A publication Critical patent/CN112055036A/en
Pending legal-status Critical Current

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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a data downloading method, a data downloading device, data downloading equipment and a readable storage medium. The method comprises the following steps: acquiring a single-connection speed-limit record value of a current site, and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single-connection speed-limit record value of the current site; after connection is established with the current site according to the number of concurrent connections to start downloading data, continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process; and when the average downloading speed of each connection established with the current site in the current observation time window meets the connection increasing condition, increasing and establishing a preset number of connections with the current site for downloading data.

Description

Data downloading method, device, equipment, system and readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data downloading method, apparatus, device, system, and readable storage medium.
Background
Electronic equipment such as a mobile phone and a computer accesses a website in the internet, establishes a connection with the website to download data provided by the website, and becomes an important way for people to acquire data in daily life.
As the internet users have increasingly large scales and limited internet resources, users usually need to access the internet through mechanisms such as network competition, and meanwhile, the website providing data downloading usually limits the speed of each connection in order to avoid that the data downloading speed of a single connection is too high to affect the data downloading of other connections, so that the website establishing multiple connections with the website to download data concurrently in the scene of single connection speed limit and network competition is an important means for improving the data downloading speed.
Currently, some application software providing data downloading services (e.g. a data downloading tool such as a network disk, or a streaming application supporting loading of streaming data, etc.) supports configuring the number of concurrent connections, which may be a default configuration provided by an application or may be manually configured by a user. The user can establish the connection of the number of concurrent connections with the site providing data downloading through the application software, so as to realize the multi-connection concurrent data downloading. However, once the number of concurrent connections is configured, the number of concurrent connections does not change in the whole data downloading process, however, different users have different network conditions for accessing the network, different sites for providing data downloading services have different actual data downloading conditions, and the actual data downloading conditions may also change dynamically in the data downloading process along with the change of the network conditions and other reasons, so that it is difficult to adapt to the difference and change of the actual data downloading conditions no matter the number of concurrent connections is set by default configuration of application software or according to user experience, and in some cases, the number of concurrent connections is set simply, which may not effectively increase the data downloading speed, but may affect the data downloading speed. For example, in a data download scenario where the network condition is good and the speed limit of a single site of a site providing data download is high, a large number of concurrent connections are set, which not only cannot effectively increase the speed of downloading data from the site, but also may cause large interaction overhead and processing resource consumption due to establishment and maintenance of a large number of connections with the site, thereby affecting the data download speed.
Disclosure of Invention
It is an object of the present invention to provide a new solution for downloading data.
According to a first aspect of the present invention, there is provided a data downloading method, comprising:
acquiring a single-connection speed-limit record value of a current site, and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single-connection speed-limit record value of the current site;
after connection is established with the current site according to the number of concurrent connections to start downloading data, continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process;
and when the average downloading speed of each connection established with the current site in the current observation time window meets a connection increasing condition, increasing and establishing a preset number of connections with the current site for downloading data.
According to a second aspect of the present invention, there is provided a data downloading method, comprising:
responding to the received speed limit recording request, providing a locally stored single-connection speed limit recording value of the website indicated in the speed limit recording request to a data downloading device sending the speed limit recording request, so that the data downloading device can implement the data downloading method according to any item in the first aspect of the invention.
According to a third aspect of the present invention, there is provided a data downloading apparatus, comprising:
the device comprises a concurrent connection number acquisition unit, a data processing unit and a data processing unit, wherein the concurrent connection number acquisition unit is used for acquiring a single connection speed limit record value of a current site and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single connection speed limit record value of the current site;
the average downloading speed acquiring unit is used for continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process after the connection is established with the current site according to the number of concurrent connections and the data is started to be downloaded;
and the newly-added connection establishing unit is used for establishing a preset number of connections with the current site for downloading data when the average downloading speed of each connection established with the current site in the current observation time window meets a connection increasing condition.
According to a fourth aspect of the present invention, there is provided a data downloading apparatus, wherein:
responding to the received speed limit recording request, providing a locally stored single-connection speed limit recording value of the website indicated in the speed limit recording request to a data downloading device sending the speed limit recording request, so that the data downloading device can implement the data downloading method according to any item in the first aspect of the invention.
According to a fifth aspect of the present invention, there is provided a data downloading apparatus, comprising:
a memory for storing executable instructions;
a processor, configured to operate the data downloading device to execute the data downloading method according to any one of the first aspect of the present invention, according to the control of the executable instruction.
According to a sixth aspect of the present invention, there is provided a data downloading device, comprising:
a memory for storing executable instructions;
a processor, configured to operate the data downloading device to execute the data downloading method according to the second aspect of the present invention, according to the control of the executable instruction.
According to a seventh aspect of the present invention, there is provided a readable storage medium storing a computer program readable and executable by a computer, the computer program, when read by the computer, executing any one of the data downloading methods according to the first aspect of the present invention or the data downloading method according to the second aspect of the present invention.
According to an eighth aspect of the present invention, there is provided a data download system, comprising:
a data download apparatus according to a third aspect of the present invention and a data download apparatus according to a fifth aspect of the present invention;
alternatively, the first and second electrodes may be,
a data download device according to a fourth aspect of the present invention and a data download device according to a sixth aspect of the present invention.
According to an embodiment of the present disclosure, the number of concurrent connections to be established for downloading data from the current station can be determined according to the network state of the current network and the single connection speed limit record value of the current station, and after the connection is established with the current station according to the number of concurrent connections and the data is started to be downloaded, the average downloading speed of each connection established with the current station in each observation time window is continuously obtained in the data downloading process, when the average downloading speed of each connection established with the current station in the current observation time window meets the connection increasing condition, a preset number of connections are additionally established with the current station for downloading data, so as to implement concurrent downloading data by adaptively configuring and adjusting the number of concurrent connections according to actual conditions of different stations and different networks, and obtain the optimal data downloading speed adapted to the current network and the current station, and the data downloading efficiency is improved. The method is particularly suitable for downloading scenes or loading scenes of streaming media data such as video data.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a block diagram showing an example of a hardware configuration of a data download system that can be used to implement various embodiments of the present invention.
Fig. 2 shows a flowchart of a data downloading method of the first embodiment of the present invention.
Fig. 3 shows a flowchart of the connection addition condition judgment of the first embodiment of the present invention.
Fig. 4 shows a flowchart for managing a single connection maximum speed record value according to a first embodiment of the present invention.
Fig. 5 shows a block diagram of a data download apparatus 3000 of the first embodiment of the present invention.
Fig. 6 shows a block diagram of a data download device 4000 of the first embodiment of the present invention.
Fig. 7 shows a block diagram of a data download device 6000 of the second embodiment of the present invention.
Fig. 8 is a diagram showing an example of a data download method of the third embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
As shown in fig. 1, the data download system 1000 includes a server 1100, a client 1200, and a network 1300.
The server 1100 may be, for example, a blade server, a cloud server, a server cluster composed of a plurality of servers, or the like. In one example, the server 1100 may be as shown in FIG. 1, including a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, and an input device 1160. Although the server may also include speakers, microphones, etc., these components are not relevant to the present invention and are omitted here. The processor 1110 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a serial interface, and the like. The communication device 1140 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display panel. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.
Client 1200 may be a laptop (1200-1), desktop (1200-2), cell phone (1200-3), tablet (1200-4), etc. As shown in fig. 1, client 1200 may include a processor 1210, memory 1220, interface device 1230, communication device 1240, display device 1250, input device 1260, speaker 1270, microphone 1280, and so on. The processor 1210 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1220 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1230 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1240 can perform wired or wireless communication, for example. The display device 1250 is, for example, a liquid crystal display, a touch display, or the like. The input device 1260 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 1270 and the microphone 1280.
The communication network 1300 may be a wireless network or a network, a local area network or a wide area network. In the configuration environment 1000 shown in FIG. 1, clients 1200-1, 1200-2, 1200-3, 1200-4 and server 1100 may communicate over a communication network 1300.
The data download system 1000 shown in fig. 1 is illustrative only and is in no way intended to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1120 of the server 1100 is configured to store instructions for controlling the processor 1110 to operate so as to execute any one of the data downloading methods provided by the embodiment of the present invention. In addition, the memory 1220 of the client 1200 is used for storing instructions for controlling the processor 1210 to operate to execute any data downloading method provided by the embodiment of the present invention. It will be appreciated by those skilled in the art that although a number of devices are shown in FIG. 1 for both server 1100 and client 1200, the present invention may refer to only some of the devices, for example, server 1100 may refer to only processor 1110 and storage 1120, or client 1200 may refer to only processor 1210 and storage 1220, etc. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
The general concept of the embodiment of the invention is to provide a data downloading scheme, which can determine the number of concurrent connections to be established for downloading data from a current station according to the network state of the current network and the single connection speed limit record value of the current station, continuously acquire the average downloading speed of each connection established with the current station in each observation time window in the data downloading process after establishing connection with the current station according to the number of concurrent connections and starting to download data, and when the average downloading speed of each connection established with the current station in the current observation time window meets the connection increasing condition, additionally establish a preset number of connections with the current station for downloading data, so as to adaptively configure and adjust the number of concurrent connections to implement concurrent downloading data according to the actual conditions of different stations and different networks, and acquire the optimal data downloading speed adapting to the current network and the current station, and the data downloading efficiency is improved. The method is particularly suitable for downloading scenes or loading scenes of streaming media data such as video data.
< first embodiment >
In the present embodiment, a data downloading method is provided. The data is any content that can be downloaded via a network, such as streaming media data, web page data, file data uploaded by a third party, and the like. The data downloading method may be implemented by an electronic device such as a mobile phone, a notebook computer, a desktop computer, etc., and may also be implemented by the client 1200 shown in fig. 1.
As shown in fig. 2, the data downloading method may include: steps S2100-S2300.
Step S2100, obtaining the single connection speed limit record value of the current site, and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single connection speed limit record value of the current site.
The current site is a site that provides data that is currently to be downloaded. Generally, some sites providing downloadable data generally limit the download speed of data from a single connection in order to ensure load balance among connections when supporting multiple connections to download data. The single-connection speed limit record value of the current site is the highest data download speed value which can be supported by a single connection in the current site.
In this embodiment, the saved single connection speed limit record value of the current site may be read locally, or a request may be made to other data downloading devices (for example, a server for recording the single connection speed limit record values of the respective sites) to obtain the single connection speed limit record value of the current site.
It should be understood that "locally" in the descriptions of "locally save", "save in local", and the like, refers to relevant storage that is locally available for saving data in the device implementing the embodiment, and includes a local cache, a local memory, or a local file for persistently saving data, and the like, and when implemented specifically, corresponding data may be saved through the local cache, the local memory, or the local file according to a specific application scenario or an application requirement. The number of concurrent connections is the number of connections concurrently established when downloading data from the current site. After the single connection speed limit record value of the current site is obtained, the number of concurrent connections required to be established for downloading data from the current site can be determined according to the network state of the current network and the single connection speed limit record value of the current site, the situation of the current site and the network state of the current network can be automatically adapted, the initial concurrent connections are set when the data are downloaded from the current site, the initial speed of downloading the data from the current site is effectively guaranteed, and the number of concurrent connections can be adjusted by rapidly adapting to the change of the subsequent network state in combination with the subsequent steps.
In one example, the network status of the current network includes at least one of a network type, a network signal strength, a recent network speed test value, and a historical network speed record value of the current network. The network type of the current network is the network type of the current network, and can include GSM/WCDMA/TD-SCDMA/TD-LTE/LTE-FDD/WIFI and the like. The network signal strength of the current network can be detected in real time or requested to be provided by the detected and acquired equipment by calling or triggering the corresponding test equipment. The latest network speed measurement value of the current network is a data download speed value obtained by testing the current network in the latest statistical time period, and can call or trigger corresponding testing equipment to perform real-time detection or request equipment which has detected and obtained a value to provide. The historical wire speed record value is a data download speed value of the current network recorded in the historical statistic time period, and can be read from a log of the recorded historical data stored locally or provided by a device requesting to record the historical data.
In this example, the step of determining the number of concurrent connections to be established for downloading data from the current site according to the current network state and the single connection speed limit record value of the current site may include: steps S2110-S2120.
Step S2110, acquiring the network speed of the current network according to the network state of the current network.
By acquiring the network speed of the current network, the performance of downloading data of the current network at the current time point can be accurately determined.
In this example, step S2110 may include steps S2111-S2113.
Step S2111, when the network state includes the latest network speed test value, the latest network speed test value is taken as the network speed of the current network.
The latest network speed test value reflects the data downloading speed of the current network in the latest statistical time period away from the current time point, can reflect the truest data downloading performance of the current network at the current time point, and can be combined with the subsequent steps to obtain the concurrent connection number which is most suitable for the current network and the current station situation by taking the latest network speed test value as the network speed of the current network.
Step S2112, when the network state does not include the latest network speed test value but includes the network type and the network signal strength, determining the network speed of the current network according to the network type and the network signal strength.
When the network state does not include the latest network speed test value, the network speed of the current network can be determined through the network type and the network signal strength reflecting the data downloading performance of the current network, and the concurrent connection number which is most suitable for the current network and the current site condition is obtained by combining the subsequent steps. Generally, under different network systems, the optimal data downloading speed of a corresponding network under ideal signal intensity can be determined through a large amount of test data, the corresponding optimal data downloading speed can be determined through the network systems, a speed weight is set according to the ideal signal intensity corresponding to the optimal data downloading speed and the network signal intensity of the current network, and the speed weight and the optimal data downloading speed are multiplied to obtain a numerical value which can be used as the network speed of the current network.
It should be understood that, when the network state only includes the network type or the network signal strength, the optimal data downloading speed may also be determined according to the network type, or a value obtained by multiplying the optimal data downloading speed by a preset weight after selecting the optimal data downloading speed from the historical test data according to the network signal strength is used as the network speed of the current network.
And step S2113, when the network state only comprises the historical network speed record value, taking the historical network speed record value as the network speed of the current network.
The historical network speed record value reflects the data downloading speed of the current network obtained in the historical statistical time period, although the data downloading speed may not be the latest data downloading speed of the current network, the data downloading performance of the current network is reflected to a certain extent, when other information reflecting the network state cannot be obtained due to the network system, the equipment capacity and the like, the historical network speed record value is used as the network speed of the current network, and the concurrent connection number which is most suitable for the conditions of the current network and the current site can be obtained by combining with the subsequent steps.
After acquiring the network speed of the current network in step S2110, the method proceeds to:
and S2120, acquiring the number of concurrent connections according to the network speed of the current network and the single-connection speed limit record value.
Suppose that the network speed of the current network is VnetThe single-connection speed limit record value of the current station is VlimitCorresponding number of concurrent connections NlinkComprises the following steps:
Figure BDA0002085778090000091
in some cases, due to reasons such as communication abnormality and limited processing resources, a single-connection speed limit record value of a current site may not be obtained in time, and for this reason, the data downloading method provided in another example in this embodiment may further include:
and when the single-connection speed limit record value of the current site cannot be acquired, taking the preset default number of concurrent connections as the number of concurrent connections.
The default number of concurrent connections can be preset according to engineering experience values or experimental simulation data for a specific data download scene.
When the single-connection speed-limit record value of the current site cannot be acquired, the preset default concurrent connection number is used as the concurrent connection number, so that the data downloading method provided by the embodiment can be normally started, the concurrent connection number is configured in a self-adaptive manner according to the actual condition of the current network in combination with the subsequent steps, the optimal data downloading speed adaptive to the current network and the current site is acquired, and the data downloading efficiency is improved.
After determining the number of concurrent connections in step S2100, the method proceeds to:
step S2200 is that after the connection with the current station is established according to the number of concurrent connections and the data starts to be downloaded, the average download speed of each connection established with the current station in each observation time window is continuously obtained during the data download process.
The observation time window is a period for observing the average download speed for acquiring the connection established with the station, the period is a period lasting before the current observation time point, specifically, the period duration may be set according to a specific application scenario or application requirement, for example, set to 3 seconds, and then each corresponding observation time duration is a period within 3 seconds before the current observation time point.
The average download speed of each connection established with the current site is the average speed of downloading data from the current site based on the connection in the corresponding observation time window, and can reflect the data download performance of the connection.
By continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process, the change of the data downloading performance of each connection for downloading data from the current site based on the current network can be continuously monitored, so that the connection with the current site is increased to adapt to the change of the data downloading performance in combination with the subsequent steps, the concurrent data downloading is implemented by adaptively configuring and adjusting the number of concurrent connections according to the actual conditions of different networks and different sites, the optimal data downloading speed adapted to the current network and the current site is acquired, and the data downloading efficiency is improved.
In this embodiment, a test device or a test module that implements the electronic device setting in this embodiment may be invoked, and an average download speed of each connection established with the current site in each observation time window is obtained by monitoring the data volume of the transceiving data packets of each connection established with the current site, where no limitation is made herein.
In practical application, in order to ensure that the obtained average downloading speed of each connection established with the current station is effective, the average downloading speed of each connection established with the current station in each observation time window can be observed and obtained based on the observation time window after the connection is established with the current station according to the number of concurrent connections and waiting for the preset time, so that the situation that the average downloading speed is observed and obtained when the connection established with the current station does not actually start downloading data is avoided, and the real and effective average downloading speed cannot be obtained. The preset time may be set to a specific duration according to an engineering experience value, and is not specifically limited herein.
Step S2300, when the average downloading speed of each connection established with the current site in the current observation time window meets the connection increasing condition, additionally establishing a preset number of connections with the current site for downloading data.
The connection increasing condition is a condition for judging whether to newly establish a connection with the current site in the data downloading process according to the average downloading speed of each connection established with the current site. When the average download speed of each connection established with the current site in the current observation time window meets the connection increase condition, it means that the performance of downloading data concurrently based on multiple connections established between the current network and the current site in the current observation time window cannot adapt to the actual conditions of the current network and the current site, and the connection established with the current site needs to be increased to realize adaptation to the actual conditions of the current network and the current site and obtain the current optimal data download speed.
The preset data for establishing the connection can be set according to engineering experience values or experimental simulation data according to actual requirements, and is not limited herein.
In one example, the connection addition condition may include that a speed similarity condition is satisfied between average download speeds of each connection established with the current station, an average download speed of all connections established with the current station is not less than a value obtained by subtracting a difference threshold from a highest speed record value of a single connection of the current station, and a suspected speed limit record value of the single connection of the current station is not locally recorded, or, when a suspected speed limit record value of the single connection is locally recorded, the average download speed is not less than a value obtained by subtracting the similarity threshold from the suspected speed limit record value of the single connection.
The speed proximity condition is a condition for judging whether the average download speed of each connection established with the current station belongs to a proximity speed. The average downloading speed of each connection established with the current site is consistent with the speed approximation condition, which means that the average downloading speed of each connection established with the current site is approximate, and the data downloading performance of each connection is balanced.
The speed similarity condition may specifically be that a ratio between a maximum speed value and a minimum speed value selected from the average download speeds of each connection established with the current station is not less than a similarity ratio. The maximum speed value and the minimum speed value may be selected after sorting the average download speed of each connection established with the current station, and may also be selected after sorting to remove the maximum value and the minimum value and avoid distortion. The ratio of the minimum speed value and the maximum speed value selected from the average downloading speeds of each connection established with the current station is not smaller than the similar ratio, which means that the ratio is similar to the maximum speed value and the minimum speed value of the average downloading speed of each connection established with the current station, and further means that the ratio is similar to the average downloading speed of each connection established with the current station. The approximation ratio may be set to a value close to 1, for example, to 0.9, meaning that the ratio of the minimum speed value and the maximum speed value is not less than 0.9, and the values are close to each other.
The download speed average is the average of the average download speeds of all connections established with the current site. The average download speed of all connections established with the current site is not less than the value obtained by subtracting the difference threshold from the highest speed record value of the single connection of the current site, which means that the average download speed of all connections established with the current site is not significantly lower or higher than the highest speed record value of the single connection of the current site, i.e. the average download speed of all connections established with the current site is similar to the highest speed record value of the single connection of the current site, and the average download speed of each connection established with the current site is similar to the average download speed of each connection established with the current site, i.e. the average download speed of each connection established with the current site is similar to the highest speed record value of the single connection of the current site, and each connection established with the current site is already close to the upper download speed limit. The difference threshold may be a threshold for determining whether the two values are close to each other according to a difference between the two values, and a smaller value may be set according to engineering experience data, which is not specifically limited herein.
The single-connection suspected speed-limit recorded value of the current site is a suspected highest data download speed value that can be supported by the current site for a single connection, and the single-connection suspected speed-limit recorded value can be updated to the single-connection speed-limit recorded value of the current site after multiple observations and confirmations, which will be described later in this embodiment.
The suspected speed limit record value of the single connection of the current site is not recorded locally, which means that the current site does not acquire the suspected speed limit record value of the single connection before. When a single-connection suspected speed-limit record value is locally recorded, the average downloading speed is not less than a value obtained by subtracting a similar threshold value from the single-connection suspected speed-limit record value, which means that the average downloading speed is similar to the single-connection suspected speed-limit record value or higher than the single-connection suspected speed-limit record value, but is similar to the average downloading speed of each connection established with the current site, that is, the average downloading speed of each connection established with the current site is similar to the single-connection suspected speed-limit record value of the current site, and each connection established with the current site is already close to the upper limit of the data downloading speed which may be set by the current site. The similar threshold may be a threshold for judging whether the two values are close to each other according to a difference between the two values, and a smaller value may be set according to engineering experience data, which is not specifically limited herein.
In this example, by setting the connection increase condition as described above, when the average download speed of each connection established with the current station is similar to, neither significantly lower than or higher than the highest speed record value of the single connection of the current station, or on the basis of the average download speed of each connection established with the current station, both of the connections are further close to or higher than the suspected speed limit record value of the single connection of the current station, it is correspondingly determined that each connection established with the current station is close to the limit of the data download performance of the connection, the connection establishment with the current station can be correspondingly triggered to effectively increase the data download speed, and the number of concurrent connections is adjusted to implement data concurrent download for changes in the actual data download performance based on the current network and the concurrent data download of the current station.
In a more specific example, the single-connection suspected speed limit recorded value may be recorded according to the following step S2301, which includes:
and when the average downloading speed of each connection established with the current site in the current observation time window meets the connection increasing condition and the single-connection suspected speed-limiting record value is not recorded locally, recording the average downloading speed as the single-connection suspected speed-limiting record value and storing the single-connection suspected speed-limiting record value locally.
The average download speed of each connection established with the current site in the current observation time window meets the connection increasing condition in the above example, which means that the corresponding download speed average value also meets the connection increasing condition in the above example, so that the download speed average value can represent the upper limit of the data download performance of each connection established with the current site in the current observation time window and under the current network, and when the single-connection suspected speed-limit recorded value is not recorded locally, the download speed average value is recorded as the single-connection suspected speed-limit recorded value, so that the follow-up judgment of whether the connection increasing condition is met or not can be more accurate according to the single-connection suspected speed-limit recorded value.
In another more specific example, the single-connection suspected speed limit record value may be updated according to the following step S2302, which includes:
and when the average downloading speed of each connection established with the current site in the current observation time window meets the connection increasing condition and the average downloading speed is greater than the numerical value obtained by adding the similar threshold to the single-connection suspected speed-limiting record value, updating the single-connection suspected speed-limiting record value into the average downloading speed.
The average download speed of each connection established with the current site in the current observation time window conforms to the connection increasing condition in the above example, meaning that the corresponding download speed mean also conforms to the connection increasing condition in the above example, then the download speed mean can represent the data download performance upper limit of each connection established with the current site in the current observation time window under the current network, and the download speed mean conforming to the connection increasing condition in the above example is greater than the value obtained by adding the single-connection suspected speed-limit record value to the similar threshold, meaning that the download speed mean is significantly higher than the recorded single-connection suspected speed-limit record value, the currently recorded single-connection suspected speed-limit record value is not accurate enough, and the single-connection suspected speed-limit record value is updated to the download speed mean, so that the subsequent single-connection suspected speed-limit record value can be based on the single-connection suspected speed-limit record value, whether the connection increasing condition is met or not is judged more accurately.
In still another more specific example, there may be further provided the step S2303 of locally recording the single connection speed limit record value, including:
and when the single-connection speed limit record value is acquired from other data downloading equipment, reporting the speed limit record comprising the site information of the current site and the single-connection suspected speed limit record value, and sending the speed limit record to the data downloading equipment providing the single-connection speed limit record value.
In the current observation time window and the preset number of observation time windows before the current observation time window, the average download speed of each connection established with the current site meets the connection increasing condition in the above example, which means that the download speed mean values in the corresponding observation time windows are confirmed for multiple times to meet the requirements of the connection increasing condition and are close to the upper limit of the data download performance of the single connection in the corresponding observation time window, and the difference value between the download speed mean value in the observation time windows and the single-connection suspected speed-limit record value is not more than the close threshold, which means that the recorded single-connection suspected speed-limit record value is confirmed for multiple times to be close to the download performance of the single connection in the corresponding observation time window, that the recorded single-connection suspected speed-limit record value is confirmed for multiple times to be close to the upper limit of the data download performance of the single connection in the current supportable single site, then, the single-connection suspected speed-limit record value can be confirmed to accurately represent the current site in the The upper limit of the connected data downloading speed is set as the single-connection suspected speed limit record value of the current site and stored locally, and the data downloading method provided by the embodiment can be implemented by using the single-connection speed limit record value which is newly recorded locally when data downloading is implemented at the current site next time, so that the connection concurrency number is determined to establish concurrent connection with the current site, concurrent data downloading is implemented, and the data downloading performance is further improved.
As described above, in this embodiment, the single-connection speed-limit record value of the current site may also request other data downloading devices (for example, a server recorded with the single-connection speed-limit record value of the current site) to obtain the speed-limit record value, and then, when it is determined that the single-connection suspected speed-limit record value can accurately represent the upper limit of the data downloading speed of the current supportable single connection at the current site, the speed-limit record including the site information of the current site and the single-connection suspected speed-limit record value is reported and sent to the data downloading device providing the single-connection speed-limit record value, and the data downloading device may be triggered to update the recorded connection speed-limit record value of the current site, so as to ensure that the newly recorded single-connection speed-limit record value can be obtained when data downloading is performed at the current site next time, and implement the data downloading method provided in this embodiment, and determining the connection concurrency number to establish the concurrent connection with the current site, implementing concurrent data downloading, and further improving the data downloading performance.
As shown in fig. 3, based on the connection addition condition set in the above example, the process of determining whether to add the established connection to the current station according to the average download speed of each connection established with the current station in the current observation time window may include: steps S201-S213.
Step S201, obtaining an average download speed of each connection established with the current station in the current observation time window.
Step S202, judging whether the average download speed of each connection established with the current station accords with the speed similar condition, if so, entering step S203, otherwise, returning to step S201, and continuously observing and obtaining the average download speed of each connection established with the current station in the next current observation time window.
Step S203, judging whether the average value of the download speed calculated according to the average download speed of each connection established with the current site is not less than the value obtained by subtracting the difference threshold from the highest speed record value of the single connection of the current site, if so, entering step S204, otherwise, returning to step S201, and continuously observing and obtaining the average download speed of each connection established with the current site in the next current observation time window.
And step S204, judging whether the single-connection suspected speed-limiting record value of the current site is recorded locally, if the single-connection suspected speed-limiting record value of the current site is not recorded, entering step S205, otherwise, entering step S207.
And step S205, recording the average downloading speed as a single-connection suspected speed limit record value and storing the single-connection suspected speed limit record value locally.
Step S206, a preset number of connections with the current station are added to download data, and then the process returns to step S201 to continue to observe and obtain the average download speed of each connection established with the current station in the next current observation time window.
And step S207, judging whether the average downloading speed is not less than a numerical value obtained by subtracting a similar threshold value from a single-connection suspected speed limit record value recorded locally, if so, entering step S208, otherwise, returning to step S201, and continuously observing and obtaining the average downloading speed of each connection established with the current site in the next current observation time window.
Step S208, judging whether the average value of the download speed is larger than a numerical value obtained by adding a similar threshold to the single-connection suspected speed-limiting record value of the local record, if so, entering step S209, otherwise, indicating that the average value of the download speed is similar to the single-connection suspected speed-limiting record value of the local record, and entering step S206 and step S210 respectively.
In step S209, the single-connection suspected speed limit record value is updated to the average download speed, and the process goes to step S206.
Step S210, determining whether the average download speed is close to the single-connection suspected speed limit record value of the local record in the current time observation window and the preset number of time observation windows before, if yes, going to step S211, otherwise, ending the process.
And step S211, setting the single-connection suspected speed limit record value as the single-connection speed limit record value of the current site and storing the single-connection suspected speed limit record value in the local.
Step S212, judging whether the previous single-connection speed limit record value is acquired from other data downloading equipment, if so, entering step S213, otherwise, ending the process.
And step S213, reporting the speed limit record comprising the site information of the current site and the single-connection suspected speed limit record value, sending the speed limit record to the data downloading equipment providing the single-connection speed limit record value, and ending the process.
In the example of the connection addition condition set according to the above example, there may be further provided a step of recording, managing a single-connection maximum speed recording value, including: steps S2304-S2306.
Step S2304, when the maximum average download speed in the average download speeds of each connection established with the current site in the current observation time window is greater than the locally stored maximum speed record value of the single connection, updating the maximum speed record value of the single connection to the maximum average download speed.
And step S2305, when the single-connection speed-limit recorded value is locally stored and the difference value of the updated single-connection highest speed recorded value higher than the single-connection speed-limit recorded value is greater than the abnormal threshold value, the locally stored single-connection speed-limit recorded value is cleared.
The abnormal threshold is a threshold used for judging whether the updated highest speed record value of the single connection is abnormally higher than the speed-limiting record value of the single connection, and can be set according to engineering experience or experimental simulation data.
The difference value that the updated single-connection maximum speed record value is higher than the single-connection speed limit record value is larger than the abnormal threshold value, which means that the single-connection maximum speed record value is abnormally higher than the single-connection speed limit record value, and the currently recorded single-connection speed limit record value cannot accurately reflect the upper limit of the single-connection data downloading speed supported by the current site, so that the locally stored single-connection speed limit record value is cleared, the influence of the locally stored single-connection speed limit record value on next data downloading can be avoided, and the data downloading efficiency is reduced.
Step S2306, when the single connection speed limit record value is obtained from other data downloading equipment, and the difference value of the updated single connection highest speed record value higher than the single connection speed limit record value is larger than the abnormal threshold value, the speed limit record error correction information at least including the indication information of the current site is sent to the data downloading equipment providing the single connection speed limit record value, and is used for correcting the single connection speed limit record value provided by the data downloading equipment.
The difference value that the updated single-connection maximum speed record value is higher than the single-connection speed limit record value is larger than the abnormal threshold value, which means that the single-connection maximum speed record value is abnormally higher than the single-connection speed limit record value, and means that the single-connection speed limit record value obtained from other data downloading equipment can not accurately reflect the upper limit of the single-connection data downloading speed supported by the current site, therefore, the data downloading equipment providing the single-connection speed limit record value can be triggered through sending the speed limit record error correction information, the provided single-connection speed limit record value of the current site is correspondingly corrected, the influence of the provided single-connection speed limit record value on next data downloading is avoided, and the data downloading efficiency is reduced.
As shown in fig. 4, the process of managing the single connection maximum speed record value in this example based on the connection addition condition set in the above example may include: steps S221-S227.
Step S221, selecting the largest average download speed from the average download speeds of each connection established with the current station in the current observation time window.
Step S222, determining whether the maximum average download speed is greater than the maximum speed record value of the single connection already stored locally, if yes, going to step S223, if no, going back to step S221, and selecting the maximum average download speed from the average download speeds of each connection established with the current station in the next current observation time window to implement the present process.
Step S223, the single-connection highest speed record value of the current site is updated and set to the maximum average download speed.
And step S224, judging whether the updated highest speed record value of the single connection is higher than the difference value of the speed limit record value of the single connection and is larger than an abnormal threshold value, if so, entering step S225, otherwise, returning to step S221, and selecting the largest average downloading speed from the average downloading speeds of each connection established with the current site in the next current observation time window to implement the process.
Step S225, judging whether the single connection speed limit record value is obtained from local, if yes, entering step S226, otherwise, the single connection speed limit record value is obtained from other data downloading equipment, and entering step S227.
Step S226, the locally stored speed limit record of the single connection is cleared, and then the process returns to step S221, where the largest average download speed is selected from the average download speeds of each connection established with the current station in the next current observation time window to implement the process.
Step S227, sending the error correction information of the speed limit record at least including the indication information of the current station to the data downloading device providing the single-connection speed limit record value, and then returning to step S221, and selecting the largest average downloading speed from the average downloading speeds of each connection established with the current station in the next current observation time window to implement the present process.
In the process of downloading data from the current site according to the data downloading method provided by the present embodiment, any one connection established with the current site may end due to completion of data downloading or due to an abnormal connection. For this case, in one example, the provided data downloading method further includes:
when any connection established with the current site finishes data downloading or abnormally finishes, and the number of the remaining connections established with the current site is determined to be less than the preset default number of concurrent connections, the connection is additionally established with the current site, so that the number of the connections established with the current site is in accordance with the default number of concurrent connections.
The default concurrent connection number is a preset concurrent connection number supported by the default of the current site, and may be set for a specific scene according to an engineering experience value or experimental simulation data, or a concurrent connection number determined when a connection is initially established with the current site is used as the default concurrent connection number.
When any connection established with the current site is possibly finished due to the completion of data downloading or is finished due to abnormal connection, and the number of the remaining connections is less than the preset default number of concurrent connections, the connection is additionally established with the current site, so that the number of the connections established with the current site is in accordance with the default number of the concurrent connections, the connection established with the current site is directly additionally established with the current site without gradually adjusting and increasing the connection established with the current site through the steps S2200 to S2300, the number of the connections established with the current site is directly increased to the default number of the concurrent connections, the data downloading speed is prevented from being influenced by the number of the connections established with the current site suddenly, and the data downloading performance between the current site is effectively ensured.
< data download device >
In this embodiment, there is further provided a data downloading apparatus 3000, as shown in fig. 5, including: the concurrent connection number obtaining unit 3100, the average download speed obtaining unit 3200, and the newly added connection establishing unit 3300 are used to implement the data download method provided in this embodiment, and are not described herein again.
A concurrent connection number obtaining unit 3100, configured to obtain a single connection speed limit record value of a current site, and determine a number of concurrent connections to be established for downloading data from the current site according to a network state of a current network and the single connection speed limit record value of the current site.
Optionally, the network state of the current network at least includes one of a network type, a network signal strength, a recent network speed test value and a historical network speed record value of the current network; the concurrent connection number acquisition unit 3100 is further configured to:
acquiring the network speed of the current network according to the network state of the current network, wherein the acquiring comprises the following steps:
when the network state comprises a latest network speed test value, taking the latest network speed test value as the network speed of the current network; when the network state does not include the latest network speed test value but includes the network standard and the network signal strength, determining the network speed of the current network according to the network standard and the network signal strength; when the network state only comprises a historical network speed record value, taking the historical network speed record value as the network speed of the current network;
and acquiring the number of the concurrent connections according to the network speed of the current network and the single-connection speed limit record value.
Optionally, the concurrent connection number obtaining unit 3100 is further configured to:
and when the single-connection speed limit record value of the current site cannot be acquired, taking the preset default number of concurrent connections as the number of concurrent connections.
An average download speed obtaining unit 3200, configured to continuously obtain an average download speed of each connection established with the current station in each observation time window in a data download process after the connection is established with the current station according to the number of concurrent connections and data download is started.
A newly-added connection establishing unit 3300, configured to, when an average downloading speed of each connection established with the current station in the current observation time window meets a connection increase condition, additionally establish a preset number of connections with the current station for downloading data.
Optionally, the connection increasing condition includes that an average downloading speed of each connection established with the current station is consistent with a speed similarity condition, an average downloading speed of all connections established with the current station is not less than a value obtained by subtracting a difference threshold from a highest speed record value of a single connection of the current station, and a suspected speed limit record value of the single connection of the current station is not locally recorded, or when the suspected speed limit record value of the single connection is locally recorded, the average downloading speed is not less than a value obtained by subtracting the similar threshold from the suspected speed limit record value of the single connection;
the speed similar condition is a condition for judging whether the average downloading speed of each connection established with the current site belongs to a similar speed;
the average download speed is an average of average download speeds of all connections established with the current station.
Optionally, the data downloading apparatus 3000 further comprises:
and a device for recording the average download speed of each connection established with the current site in the current observation time window as the suspected speed-limit record value of the single connection and storing the average download speed as the suspected speed-limit record value of the single connection when the average download speed of each connection meets the connection increase condition and the suspected speed-limit record value of the single connection is not recorded locally.
Optionally, the data downloading apparatus 3000 further comprises:
and updating the single-connection suspected speed-limit record value to the average download speed value when the average download speed of each connection established with the current site in the current observation time window meets the connection increasing condition and the average download speed value is greater than a numerical value obtained by adding the close threshold to the single-connection suspected speed-limit record value.
Optionally, the data downloading device 3000 is further configured to:
and when the single-connection speed limit record value is acquired from other data downloading equipment, reporting the site information of the current site and the speed limit record of the single-connection suspected speed limit record value, and sending the speed limit record to the data downloading equipment providing the single-connection speed limit record value.
Optionally, the data downloading device 3000 is further configured to:
when the maximum average downloading speed in the average downloading speeds of each connection established with the current site in the current observation time window is greater than the locally stored maximum speed record value of the single connection, updating and setting the maximum speed record value of the single connection as the maximum average downloading speed;
when the single-connection speed-limiting recorded value is locally stored and the difference value of the updated single-connection highest speed recorded value which is higher than the single-connection speed-limiting recorded value is larger than the abnormal threshold value, the locally stored single-connection speed-limiting recorded value is eliminated;
and when the single-connection speed-limit record value is acquired from other data downloading equipment, and the difference value of the updated single-connection highest speed record value higher than the single-connection speed-limit record value is larger than an abnormal threshold value, sending speed-limit record error correction information at least comprising the indication information of the current site to the data downloading equipment providing the single-connection speed-limit record value, and correcting the single-connection speed-limit record value provided by the data downloading equipment.
Optionally, the data downloading device 3000 is further configured to:
and when any one connection established with the current site finishes data downloading or abnormally finishes, and the number of the remaining connections established with the current site is determined to be less than the preset default number of concurrent connections, the connection is additionally established with the current site, so that the number of the connections established with the current site conforms to the default number of the concurrent connections.
It will be appreciated by those skilled in the art that the data download apparatus 3000 may be implemented in various ways. For example, the data download apparatus 3000 may be implemented by an instruction configuration processor. For example, the data download apparatus 3000 may be implemented by storing instructions in ROM and reading the instructions from ROM into a programmable device when starting the device. For example, the data download device 3000 may be solidified into a dedicated device (e.g., ASIC). The data download apparatus 3000 may be divided into units independent of each other, or may be implemented by combining them together. The data download device 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
In this embodiment, the data downloading device 3000 may be any application software providing a data downloading service, for example, a streaming application, an information streaming application, and the like providing functions of downloading, buffering, and the like of streaming data such as video data.
< data download apparatus >
In this embodiment, there is further provided a data downloading apparatus 4000, as shown in fig. 6, including:
a memory 4100 for storing executable instructions;
the processor 4200 is configured to execute the data downloading apparatus 4000 to perform the data downloading method provided in this embodiment according to the control of the executable instructions.
In this embodiment, the data downloading device 4000 may be an electronic device such as a mobile phone, a desktop computer, a notebook computer, and a tablet computer. For example, the data download apparatus 4000 may include a mobile phone in which a client of application software providing a data download service is installed.
The data download apparatus 4000 may further include other devices, for example, a client 1200 as shown in fig. 1, may further include an input device, and the like.
< readable storage Medium >
In this embodiment, a readable storage medium is further provided, where a computer program that can be read and executed by a computer is stored, and the computer program is configured to, when being read and executed by the computer, execute the data downloading method according to this embodiment.
The readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. A readable storage medium as used herein is not to be construed as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The embodiments of the present invention have been described above with reference to the accompanying drawings, and according to the embodiments, a data downloading method, an apparatus, a device, and a readable storage medium are provided, which can determine a number of concurrent connections to be established for downloading data from a current site according to a network state of a current network and a single connection speed limit record value of the current site, and after establishing a connection with the current site according to the number of concurrent connections and starting downloading data, continuously obtain an average downloading speed of each connection established with the current site in each observation time window during a data downloading process, and when the average downloading speed of each connection established with the current site in the current observation time window meets a connection increase condition, increase and establish a preset number of connections with the current site for downloading data, so as to implement self-adaptive configuration, and adaptive configuration for actual situations of different sites and different networks, And adjusting the number of concurrent connections to implement concurrent data downloading, acquiring the optimal data downloading speed adaptive to the current network and the current site, and improving the data downloading efficiency. The method is particularly suitable for application scenes with large download data volume and high requirements on download speed or loading speed, such as download scenes or loading scenes of streaming media data such as video data.
< second embodiment >
In the present embodiment, a data downloading method is provided, where the data is any content that can be downloaded through a network, such as streaming media data, web page data, file data uploaded by a third party, and the like. The data downloading method may be implemented by a device such as a blade server, a cloud server, a server cluster, and the like, and may also be implemented by the server 1100 shown in fig. 1.
The data downloading method comprises the following steps:
responding to the received speed limit record request, providing the locally stored single-connection speed limit record value of the website indicated in the speed limit record request to the corresponding data downloading equipment, so that the data downloading equipment can implement any one of the data downloading methods provided in the first embodiment.
In this embodiment, by providing the single-connection speed limit record value of the station indicated in the locally stored speed limit record request to the data downloading device sending the speed limit record request, the data downloading device can implement the data downloading method as described in the first embodiment, implement concurrent downloading data by adaptively configuring and adjusting the number of concurrent connections according to actual conditions of different stations and different networks, obtain the optimal data downloading speed adapted to the current network and the current station, and improve the data downloading efficiency. The method is particularly suitable for application scenes with large download data volume and high requirement on download speed, such as download scenes of streaming media data such as video data.
In this embodiment, the provided data downloading method may further include:
and deleting the locally-stored single-connection speed-limit record value of the site when the speed-limit record error correction information of the first preset times is determined to be received for the same site according to the received speed-limit record error correction information.
The speed limit record error correction information may be transmitted by the data download device implementing the data download method of the first embodiment. The speed limit record error correction information at least comprises indication information of a station needing to correct the single-connection speed limit record value.
The first preset number of times may be set according to engineering experience or experimental data for a specific scene, and is not specifically limited herein.
The fact that the received speed limit record error correction information means that the single-connection speed limit record value of the station indicated in the provided speed limit record error correction information is found to be incapable of reflecting the actual situation of the station when supporting data downloading in the process of one-time data downloading and needs to be corrected. When the fact that the speed limit record error correction information of the first preset number of times is received for the same site is determined, the fact that the single-connection speed limit record value recorded for the site is not applicable to the site for multiple times can be confirmed, the locally stored single-connection speed limit record value of the site is deleted, and the situation that the wrong and inapplicable single-connection speed limit record value of the site is provided for data downloading equipment with data downloading requirements and the data downloading performance is affected can be avoided.
In this embodiment, the provided data downloading method may further include:
and according to the received speed limit record report, when the single-connection suspected speed limit record values contained in the second preset times of speed limit record report received by the same site are determined to meet the condition of similar numerical values, according to the single-connection suspected speed limit record values contained in the second preset times of speed limit record report, setting the single-connection speed limit record value of the site and storing the single-connection speed limit record value locally.
The report of the speed limit record may be sent by the data downloading device implementing the data downloading method in the first embodiment. The reporting of the speed limit record at least comprises the indication information of the station and the single-connection suspected speed limit record value of the station.
The numerical value similarity condition is a condition for determining whether or not a plurality of numerical values are similar. The numerical proximity condition may be set by referring to the speed proximity condition in the first embodiment, which is not described herein again.
The second preset number of times may be set according to engineering experience or experimental data for a specific scene, and is not specifically limited herein.
Receiving a speed limit record report, which means that the single-connection suspected speed limit record value of a station included in the speed limit record report is confirmed to reflect the upper limit of the single-connection data download speed supported by the station in the process of downloading data once, when determining that the single-connection suspected speed limit record values included in the second preset times of speed limit record report received by the same station are consistent with numerical proximity conditions, which means that the approximate single-connection suspected speed limit record value is confirmed to reflect the upper limit of the single-connection data download speed supported by the station for a plurality of times, correspondingly, setting the single-connection speed limit record value of the station according to the single-connection suspected speed limit record value included in the second preset times of speed limit record report, obtaining the real-time and effective single-connection speed limit record value of the station, and providing the real-time and effective single-connection speed limit record value to a data download device with data download requirements, the data downloading performance is effectively improved.
< data download device >
In this embodiment, a data downloading apparatus 5000 is further provided, configured to:
responding to the received speed limit recording request, providing a locally stored single-connection speed limit recording value of the website indicated in the speed limit recording request to a data downloading device sending the speed limit recording request, so that the data downloading device can implement the data downloading method as any one provided in the first embodiment.
Optionally, the data downloading device 5000 is further configured to:
according to the received speed limit record error correction information, when the speed limit record error correction information of a first preset number of times is received for the same site, deleting a locally-stored single-connection speed limit record value of the site; the speed limit record error correction information at least comprises indication information of a station needing to correct the single-connection speed limit record value.
Optionally, the data downloading device 5000 is further configured to:
according to the received speed limit record report, when it is determined that single-connection suspected speed limit record values contained in the second preset times of speed limit record reports received by the same site meet the condition of similar numerical values, the single-connection speed limit record value of the site is set according to the single-connection suspected speed limit record values contained in the second preset times of speed limit record reports; the reported speed limit record at least comprises indication information of a station and the single-connection suspected speed limit record value of the station; the numerical value similarity condition is a condition for judging whether a plurality of numerical values are similar.
It will be appreciated by those skilled in the art that the data downloading apparatus 5000 may be implemented in various ways. The data downloading means 5000 may be implemented, for example, by instructing a configuration processor. For example, the data downloading apparatus 5000 may be implemented by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when starting the device. For example, the data download apparatus 5000 may be solidified into a dedicated device (e.g., ASIC). The data downloading apparatus 5000 may be divided into units independent of each other, or may be implemented by combining them together. The data downloading device 5000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.
< data download apparatus >
In this embodiment, there is further provided a data downloading device 6000, as shown in fig. 7, including:
a memory 6100 for storing executable instructions;
a processor 6200, configured to, according to the control of the executable instruction, operate the data downloading device 6000 to execute the data downloading method provided in this embodiment.
In this embodiment, the data downloading device 6000 may be any device that provides data management services, such as a blade server, a cloud server, or a server group.
The data download device 6000 may also include other means, such as the server 1100 shown in fig. 1, input means, etc.
< readable storage Medium >
In this embodiment, a readable storage medium is further provided, where a computer program that can be read and executed by a computer is stored, and the computer program is configured to, when being read and executed by the computer, execute the data downloading method according to this embodiment.
The readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. A readable storage medium as used herein is not to be construed as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The embodiments of the present invention have been described above with reference to the accompanying drawings, and according to the embodiments, a data downloading method, an apparatus, a device, and a readable storage medium are provided, where in response to a received speed limit record request, a locally stored single-connection speed limit record value of a station indicated in the speed limit record request is provided to the corresponding data downloading device, so that the data downloading device implements corresponding data downloading, and thus, implementing concurrent downloading data by adaptively configuring and adjusting the number of concurrent connections according to actual situations of different stations and different networks, acquiring an optimal data downloading speed adapted to a current network and the current station, and improving data downloading efficiency. The method is particularly suitable for application scenes with large download data volume and high requirements on download speed or loading speed, such as download scenes or loading scenes of streaming media data such as video data.
< third embodiment >
In the present embodiment, a data download system 7000 is provided. The data download system 7000 may include the data download apparatus 3000 as provided in the first embodiment and the data download apparatus 5000 as provided in the second embodiment. Alternatively, the data download system 7000 may include the data download device 4000 provided in the first embodiment and the data download device 6000 provided in the second embodiment.
< example >
The data downloading method implemented by the data downloading system 7000 according to the present embodiment will be further described with reference to the example shown in fig. 8. In this example, the data download system 7000 may comprise a client as the data download device 4000 and a server as the data download device 6000.
As shown in fig. 8, for a client as a data download device 4000, the data download method may include: steps S400-S419, and S421-S427.
And step S400, acquiring the single connection speed limit record value of the current site, and entering step S401 when the single connection speed limit record value of the current site is acquired, or entering step S402.
Step S401, determining the number of concurrent connections according to the network state of the current network and the single connection speed limit record value of the current site, and establishing connection with the current site according to the number of concurrent connections.
And step S402, establishing connection with the current site according to the preset default concurrent connection number.
Step S403, after waiting for a preset time, continuously obtaining an average downloading speed of each connection established with the current station in each observation time window during the data downloading process.
Step S404, judging whether any connection established with the current site is finished, if so, entering step S405, otherwise, entering step S406.
Step S405, judging whether the residual connection number established with the current site is less than the default connection concurrency number, if so, entering step S406, otherwise, entering step S407.
Step S406, add the connection with the current station, so that the number of connections with the current station is increased to the default number of concurrent connections when the connection with the current station is initially established, then end the process, go to step S403, and continue to obtain the average download speed of each connection established with the current station in the next observation time window.
The default number of concurrent connections may be the number of concurrent connections determined in step S401, or the default number of concurrent connections preset in step S402.
Step S407, obtaining an average download speed of each connection established with the current station in the current observation time window, and entering steps S408 and S421 respectively.
S408, judging whether the average download speed of each connection established with the current station in the current observation time window meets the speed similar condition, if so, entering the step S409, otherwise, returning to the step S404, and continuously observing and obtaining the average download speed of each connection established with the current station in the next current observation time window.
Step S409, judging whether the average downloading speed calculated according to the average downloading speed of each connection established with the current site is not less than the numerical value obtained by subtracting the difference threshold from the highest speed record value of the single connection of the current site, if so, entering step S410, otherwise, returning to step S404, and continuing to observe and obtain the average downloading speed of each connection established with the current site in the next current observation time window.
And step S410, judging whether the single-connection suspected speed-limiting record value of the current site is recorded locally, if the single-connection suspected speed-limiting record value of the current site is not recorded, entering step S411, otherwise, entering step S413.
And step S411, recording the average downloading speed value as a single-connection suspected speed limit record value and storing the single-connection suspected speed limit record value locally.
Step S412, a preset number of connections are additionally established with the current station to download data, and then the process returns to step S404 to continue to observe and obtain the average download speed of each connection established with the current station in the next current observation time window.
And step S413, judging whether the average downloading speed is not less than a numerical value obtained by subtracting a similar threshold value from a single-connection suspected speed limit record value recorded locally, if so, entering step S414, otherwise, returning to step S404, and continuously observing and obtaining the average downloading speed of each connection established with the current station in the next current observation time window.
Step S414, determining whether the average download speed is greater than a value obtained by subtracting the similar threshold from the single-connection suspected speed-limiting record value of the local record, and if the average download speed is greater than a value obtained by subtracting the similar threshold from the single-connection suspected speed-limiting record value of the local record, entering step S415, otherwise, meaning that the average download speed is similar to the single-connection suspected speed-limiting record value of the local record, and entering step S412 and step S416, respectively.
In step S415, the single-connection suspected speed limit record value is updated to the average download speed, and the process goes to step S412.
Step S416, determining whether the average download speed is close to the single-connection suspected speed-limit record value of the local record in the current time observation window and the preset number of time observation windows before, if yes, entering step S417, otherwise, ending the process.
And step S417, setting the single-connection suspected speed limit record value as the single-connection speed limit record value of the current site and storing the single-connection suspected speed limit record value in the local site.
Step S418, determining whether the previous single-connection speed limit record value is obtained from other data downloading devices, if yes, going to step S419, otherwise, ending the process.
And step S419, reporting the speed limit record comprising the site information of the current site and the single-connection suspected speed limit record value, sending the speed limit record to the data downloading equipment providing the single-connection speed limit record value, and ending the process.
In step S421, the maximum average download speed is selected from the average download speeds of each connection established with the current station in the current observation time window.
Step S422, determine whether the maximum average download speed is greater than the maximum speed record value of the single connection already stored locally, if yes, go to step S423, if no, go back to step S421, select the maximum average download speed from the average download speeds of each connection established with the current station in the next current observation time window to implement the present process.
Step S423, the single connection highest speed record value of the current station is updated and set to the maximum average download speed.
Step S424, determining whether the updated highest speed record value of the single connection is higher than the difference value of the speed limit record value of the single connection and is greater than the abnormal threshold, if yes, going to step S425, if no, going back to step S421, and selecting the largest average download speed from the average download speeds of each connection established with the current station in the next current observation time window to implement the process.
Step S425, judging whether the single connection speed limit record value is acquired from the local, if so, entering step S426, otherwise, the single connection speed limit record value is acquired from other data downloading equipment, and entering step S427.
Step S426, clear the speed limit record value of the single connection saved locally, and then go back to step S421, select the largest average download speed from the average download speeds of each connection established with the current site in the next current observation time window to implement the process.
Step S427, sending the error correction information of the speed limit record at least including the indication information of the current station to the data downloading device providing the single-connection speed limit record value, and then returning to step S421, selecting the largest average downloading speed from the average downloading speeds of each connection established with the current station in the next current observation time window to implement the process.
As shown in fig. 8, for the server side as the data downloading device 6000, the data downloading method may include: step S601
Step S601, receiving the error correction information of the speed limit record.
Step S602, determining whether the station indicated by the error correction information of the speed limit record has received the error correction information of the speed limit record for the first preset number of times, if so, entering step S603, otherwise, entering step S604, and waiting for the next time of receiving the error correction information of the speed limit record and triggering the process.
And step S603, deleting the locally stored single-connection speed limit record value of the site, entering step S604, and waiting for next time of receiving the error correction information of the speed limit record and triggering the process.
And step S604, responding to the speed limit recording request of the client, issuing the single-connection speed limit recording value of the corresponding site, ending, and triggering to enter when the speed limit recording request of the client is received next time.
Step S611, receiving the report of the speed limit record.
Step S612, determining whether the single-connection suspected speed-limit record values in the second preset number of speed-limit record reports have been received for the station indicated in the speed-limit record report, if yes, step S613 is performed, otherwise, step S604 is performed, and the process is triggered after the next speed-limit record report is received.
Step S613, for the station indicated in the report of the speed limit record, setting a single-connection speed limit record value according to the single-connection suspected speed limit record value in the report of the speed limit record of the second preset number of times, and storing the single-connection speed limit record value locally, and entering step S604, and waiting for the next time of receiving the report of the speed limit record and triggering the process.
In this example, after acquiring the single connection speed limit record value of the current site where data is expected to be downloaded, the client may determine the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single connection speed limit record value of the current site, and after establishing a connection with the current site according to the number of concurrent connections to start downloading data, continuously acquire the average download speed of each connection established with the current site in each observation time window during the data downloading process, and when the average download speed of each connection established with the current site in the current observation time window meets a connection increase condition, increase and establish a preset number of connections with the current site for downloading data, so as to adaptively configure and adjust the number of concurrent connections to implement concurrent downloading data for actual situations of different sites and different networks, and acquiring the optimal data downloading speed adaptive to the current network and the current site, and improving the data downloading efficiency. Meanwhile, the server can record and manage the single-connection speed-limit recorded values of different sites, provide real-time and effective single-connection speed-limit recorded values of different sites for the client with the data downloading requirement, and further improve the downloading speed of the client for downloading data from the sites.
The method is particularly suitable for application scenes with large downloaded data volume or high requirements on data downloading speed, for example, downloading scenes of streaming media data such as video data, and can adaptively detect and adjust the number of concurrent connections of downloaded videos aiming at sites providing video data downloading and the network state of the currently downloaded video data in the video data downloading process, thereby effectively improving the video downloading speed in the video downloading scene or the video caching and loading speed in the video loading scene.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (15)

1. A method for downloading data, comprising:
acquiring a single-connection speed-limit record value of a current site, and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single-connection speed-limit record value of the current site;
after connection is established with the current site according to the number of concurrent connections to start downloading data, continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process;
and when the average downloading speed of each connection established with the current site in the current observation time window meets a connection increasing condition, increasing and establishing a preset number of connections with the current site for downloading data.
2. The method of claim 1,
the connection increasing condition includes that the average downloading speed of each connection established with the current site is consistent with a speed similar condition, the average downloading speed of all the connections established with the current site is not less than a numerical value obtained by subtracting a difference threshold from the highest speed record value of the single connection of the current site, and the suspected speed-limiting record value of the single connection of the current site is not locally recorded, or when the suspected speed-limiting record value of the single connection is locally recorded, the average downloading speed is not less than a numerical value obtained by subtracting the similar threshold from the suspected speed-limiting record value of the single connection;
the speed similar condition is a condition for judging whether the average downloading speed of each connection established with the current site belongs to a similar speed;
the average download speed is an average of average download speeds of all connections established with the current station.
3. The method of claim 2, further comprising:
when the average downloading speed of each connection established with the current site in the current observation time window meets the connection increasing condition and the single-connection suspected speed-limit record value is not recorded locally, recording the average downloading speed as the single-connection suspected speed-limit record value and storing the single-connection suspected speed-limit record value locally;
and/or the presence of a gas in the gas,
and updating the single-connection suspected speed-limit record value to the average download speed when the average download speed of each connection established with the current site in the current observation time window meets the connection increasing condition and the average download speed is greater than a numerical value obtained by adding the close threshold to the single-connection suspected speed-limit record value.
4. The method of claim 2, further comprising:
and when the single-connection speed limit record value is acquired from other data downloading equipment, reporting the site information of the current site and the speed limit record of the single-connection suspected speed limit record value, and sending the speed limit record to the data downloading equipment providing the single-connection speed limit record value.
5. The method of claim 2, further comprising:
when the maximum average downloading speed in the average downloading speeds of each connection established with the current site in the current observation time window is greater than the locally stored maximum speed record value of the single connection, updating and setting the maximum speed record value of the single connection as the maximum average downloading speed;
when the single-connection speed-limiting recorded value is locally stored and the difference value of the updated single-connection highest speed recorded value which is higher than the single-connection speed-limiting recorded value is larger than the abnormal threshold value, the locally stored single-connection speed-limiting recorded value is eliminated;
and when the single-connection speed-limit record value is acquired from other data downloading equipment, and the difference value of the updated single-connection highest speed record value higher than the single-connection speed-limit record value is larger than an abnormal threshold value, sending speed-limit record error correction information at least comprising the indication information of the current site to the data downloading equipment providing the single-connection speed-limit record value, and correcting the single-connection speed-limit record value provided by the data downloading equipment.
6. The method of claim 1,
the network state of the current network at least comprises one of the network type, the network signal strength, the recent network speed test value and the historical network speed record value of the current network;
the step of determining the number of concurrent connections to be established for downloading data from the current site according to the current network state and the single-connection speed limit record value of the current site comprises the following steps:
acquiring the network speed of the current network according to the network state of the current network, wherein the acquiring comprises the following steps:
when the network state comprises a latest network speed test value, taking the latest network speed test value as the network speed of the current network; when the network state does not include the latest network speed test value but includes the network standard and the network signal strength, determining the network speed of the current network according to the network standard and the network signal strength; when the network state only comprises a historical network speed record value, taking the historical network speed record value as the network speed of the current network;
acquiring the number of the concurrent connections according to the network speed of the current network and the single-connection speed limit record value;
and/or the presence of a gas in the gas,
the method further comprises the following steps:
and when the single-connection speed limit record value of the current site cannot be acquired, taking the preset default number of concurrent connections as the number of concurrent connections.
7. The method of claim 1, further comprising:
and when any one connection established with the current site finishes data downloading or abnormally finishes, and the number of the remaining connections established with the current site is determined to be less than the preset default number of concurrent connections, the connection is additionally established with the current site, so that the number of the connections established with the current site conforms to the default number of the concurrent connections.
8. A method for downloading data, comprising:
responding to the received speed limit record request, providing a locally stored single-connection speed limit record value of the website indicated in the speed limit record request to a data downloading device sending the speed limit record request, so that the data downloading device can implement the data downloading method as claimed in any one of claims 1 to 7.
9. The method of claim 8,
the method further comprises the following steps:
according to the received speed limit record error correction information, when the speed limit record error correction information of a first preset number of times is received for the same site, deleting a locally-stored single-connection speed limit record value of the site; the speed limit record error correction information at least comprises indication information of a station needing to correct the single-connection speed limit record value;
and/or the presence of a gas in the gas,
according to the received speed limit record report, when the fact that single-connection suspected speed limit record values contained in the second preset times of speed limit record reports received by the same site meet the condition of similar numerical values is determined, according to the single-connection suspected speed limit record values contained in the second preset times of speed limit record reports, setting the single-connection speed limit record value of the site and storing the single-connection speed limit record value in the local; the reported speed limit record at least comprises indication information of a station and the single-connection suspected speed limit record value of the station; the numerical value similarity condition is a condition for judging whether a plurality of numerical values are similar.
10. A data download apparatus, comprising:
the device comprises a concurrent connection number acquisition unit, a data processing unit and a data processing unit, wherein the concurrent connection number acquisition unit is used for acquiring a single connection speed limit record value of a current site and determining the number of concurrent connections to be established for downloading data from the current site according to the network state of the current network and the single connection speed limit record value of the current site;
the average downloading speed acquiring unit is used for continuously acquiring the average downloading speed of each connection established with the current site in each observation time window in the data downloading process after the connection is established with the current site according to the number of concurrent connections and the data is started to be downloaded;
and the newly-added connection establishing unit is used for establishing a preset number of connections with the current site for downloading data when the average downloading speed of each connection established with the current site in the current observation time window meets a connection increasing condition.
11. A data download apparatus, characterized in that it is configured to:
responding to the received speed limit record request, providing a locally stored single-connection speed limit record value of the website indicated in the speed limit record request to a data downloading device sending the speed limit record request, so that the data downloading device can implement the data downloading method as claimed in any one of claims 1 to 7.
12. A data download device, comprising:
a memory for storing executable instructions;
a processor for operating the data downloading device to execute the data downloading method according to any one of claims 1 to 7, according to the control of the executable instructions.
13. A data download device, comprising:
a memory for storing executable instructions;
a processor for operating the data download apparatus to perform the data download method according to the control of the executable instructions, as claimed in claim 8 or 9.
14. A readable storage medium storing a computer program readable and executable by a computer, the computer program, when read by the computer, executing a data download method according to any one of claims 1 to 7, or a data download method according to claim 8 or 9.
15. A data download system, comprising:
a data download apparatus as claimed in claim 10 and a data download apparatus as claimed in claim 11;
alternatively, the first and second electrodes may be,
a data download device as claimed in claim 12 and a data download device as claimed in claim 13.
CN201910487137.7A 2019-06-05 2019-06-05 Data downloading method, device, equipment, system and readable storage medium Pending CN112055036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910487137.7A CN112055036A (en) 2019-06-05 2019-06-05 Data downloading method, device, equipment, system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910487137.7A CN112055036A (en) 2019-06-05 2019-06-05 Data downloading method, device, equipment, system and readable storage medium

Publications (1)

Publication Number Publication Date
CN112055036A true CN112055036A (en) 2020-12-08

Family

ID=73608845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910487137.7A Pending CN112055036A (en) 2019-06-05 2019-06-05 Data downloading method, device, equipment, system and readable storage medium

Country Status (1)

Country Link
CN (1) CN112055036A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866272A (en) * 2021-01-27 2021-05-28 世纪龙信息网络有限责任公司 Anti-theft chain management and control method of cloud platform, downloading platform and equipment
CN113556408A (en) * 2021-09-23 2021-10-26 统信软件技术有限公司 Task downloading method and device, computing equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852108A (en) * 2005-12-08 2006-10-25 华为技术有限公司 Multi-spot downloading method
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN103929427A (en) * 2014-04-23 2014-07-16 无锡天脉聚源传媒科技有限公司 Dynamic multi-thread downloading device and method
CN104702592A (en) * 2015-01-08 2015-06-10 三星电子(中国)研发中心 Method and device for downloading stream media
CN105025068A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Network data downloading method and apparatus
CN106911741A (en) * 2015-12-23 2017-06-30 中兴通讯股份有限公司 A kind of method and NM server for virtualizing webmaster file download load balancing
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN109040230A (en) * 2018-07-31 2018-12-18 优视科技新加坡有限公司 Method for down loading, device, equipment/terminal/server and the storage medium of file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852108A (en) * 2005-12-08 2006-10-25 华为技术有限公司 Multi-spot downloading method
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN103929427A (en) * 2014-04-23 2014-07-16 无锡天脉聚源传媒科技有限公司 Dynamic multi-thread downloading device and method
CN105025068A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Network data downloading method and apparatus
CN104702592A (en) * 2015-01-08 2015-06-10 三星电子(中国)研发中心 Method and device for downloading stream media
CN106911741A (en) * 2015-12-23 2017-06-30 中兴通讯股份有限公司 A kind of method and NM server for virtualizing webmaster file download load balancing
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN109040230A (en) * 2018-07-31 2018-12-18 优视科技新加坡有限公司 Method for down loading, device, equipment/terminal/server and the storage medium of file

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866272A (en) * 2021-01-27 2021-05-28 世纪龙信息网络有限责任公司 Anti-theft chain management and control method of cloud platform, downloading platform and equipment
CN112866272B (en) * 2021-01-27 2022-11-01 天翼数字生活科技有限公司 Anti-theft chain management and control method of cloud platform, downloading platform and equipment
CN113556408A (en) * 2021-09-23 2021-10-26 统信软件技术有限公司 Task downloading method and device, computing equipment and storage medium
CN114500483A (en) * 2021-09-23 2022-05-13 统信软件技术有限公司 Task downloading method and device, computing equipment and storage medium
CN114500483B (en) * 2021-09-23 2024-02-27 统信软件技术有限公司 Task downloading method and device, computing equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3499786B1 (en) Data synchronization method, apparatus, storage medium and electronic device
US20170118075A1 (en) An adaptive method and device based on fpga rru interface protocol
CN109428839B (en) CDN scheduling method, device and system
CN104967634A (en) File upload method and apparatus thereof
CN106293738B (en) Expression image updating method and device
CN103699595A (en) Method and device for webpage caching of terminal browser and terminal
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN106708240B (en) Power saving method, server and power saving system
CN110708733A (en) Network connection control method and device, storage medium and electronic equipment
CN112055036A (en) Data downloading method, device, equipment, system and readable storage medium
CN103713943A (en) Native terminal operating system based application function realization method and device
US11716650B2 (en) Caching and providing data to a device based on available resources
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof
CN104869550A (en) Communication event processing method and device
CN107766351B (en) File directory identification method and device
CN103561176A (en) Method and device for acquiring call records of terminal device and terminal device
CN114697450A (en) Method, device and medium for determining outbound line
US20150288648A1 (en) Method and apparatus for managing dns addresses
US20210209113A1 (en) Information query method for terminal and terminal
KR102052801B1 (en) oneM2M-based Data Monitoring API Configuration Method
EP3518513A1 (en) Streaming data acquisition method, device, and system
CN114978786B (en) Method and device for converting third party interface into system standard interface
CN113741937B (en) Application updating method and device for cloud terminal and computer program product
CN109710288B (en) Method, device and storage medium for upgrading firmware
CN114006902B (en) Cloud mobile phone restarting method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201208

RJ01 Rejection of invention patent application after publication