CN114338657A - Video file downloading method and device, electronic equipment and storage medium - Google Patents

Video file downloading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114338657A
CN114338657A CN202210249312.0A CN202210249312A CN114338657A CN 114338657 A CN114338657 A CN 114338657A CN 202210249312 A CN202210249312 A CN 202210249312A CN 114338657 A CN114338657 A CN 114338657A
Authority
CN
China
Prior art keywords
video file
current
preset
target video
downloading
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.)
Granted
Application number
CN202210249312.0A
Other languages
Chinese (zh)
Other versions
CN114338657B (en
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.)
Beijing Sohu New Power Information Technology Co ltd
Original Assignee
Beijing Sohu New Power Information Technology Co 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 Beijing Sohu New Power Information Technology Co ltd filed Critical Beijing Sohu New Power Information Technology Co ltd
Priority to CN202210249312.0A priority Critical patent/CN114338657B/en
Publication of CN114338657A publication Critical patent/CN114338657A/en
Application granted granted Critical
Publication of CN114338657B publication Critical patent/CN114338657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a method and a device for downloading a video file, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a downloading request of a target video file; determining the initial concurrency number of the target video file as the current concurrency number; when the number of the subfiles to be downloaded in the target video file is larger than the preset number or the target video file is currently in the initial caching stage, the current concurrency number is increased by a preset speed increasing value. And when detecting that the current hardware environment of the downloading equipment meets the preset conditions, subtracting the preset speed reduction value corresponding to the met preset conditions from the current concurrency number. Finally, downloading the subfiles to be downloaded in the target video file according to the final current concurrency number, detecting the network speed in real time, and matching the preset concurrency number corresponding to the current network speed when the change of the network speed is detected; and determining the preset concurrency number as the latest current concurrency number, and returning to adjust the concurrency number according to the latest current concurrency number until the target video file is downloaded.

Description

Video file downloading method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of video downloading technologies, and in particular, to a method and an apparatus for downloading a video file, an electronic device, and a storage medium.
Background
Video caching has become the standard configuration of most applications, and according to statistics of function use data, the use amount of a user for the video caching function is continuously increased, so that how to optimize the video caching function is very important.
The current video caching method mainly divides a video into a plurality of fragments, namely, a video file to be downloaded consists of a plurality of subfiles. And then, downloading the subfiles of the video file one by one in a serial mode until all the files are downloaded.
Because each subfile occupies a small area of the network, the subfiles are downloaded one by one, so that the problems of overtime, equipment overheating, network resource robbery and the like can be effectively avoided.
Disclosure of Invention
Based on the defects of the prior art, the application provides a method and a device for downloading a video file, electronic equipment and a storage medium, so as to solve the problems that network resources are not fully utilized and the downloading speed is low in the prior art.
In order to achieve the above object, the present application provides the following technical solutions:
a first aspect of the present application provides a method for downloading a video file, including:
receiving a downloading request of a target video file;
determining the initial concurrency number of the downloaded target video file, and determining the initial concurrency number of the target video file as the current concurrency number;
judging whether the number of the sub-files to be downloaded in the target video file is larger than a preset number or not, or whether the current sub-files are in the initial caching stage of the target video file or not;
if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the target video file is currently in the initial caching stage of the target video file, increasing the current concurrency number by a preset speed-up value;
detecting whether the current hardware environment of the downloading equipment meets a preset condition or not;
if the current hardware environment of the downloading equipment is detected to meet a preset condition, subtracting a preset speed reduction value corresponding to the met preset condition from the current concurrency number;
downloading the subfiles to be downloaded in the target video file according to the final current concurrency number;
detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded;
when the network speed change of the downloading equipment is detected, matching a preset concurrency number corresponding to the current network speed of the downloading equipment;
and determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number, and returning to the judgment whether the number of the sub-files to be downloaded in the target video file is greater than the preset number or whether the current sub-files are in the initial caching stage of the target video file or not according to the latest current concurrency number.
Optionally, in the above method for downloading a video file, the determining an initial concurrency number for downloading the target video file includes:
judging whether effective network speed data exists at present;
if the effective network speed data exists currently, determining the preset concurrency number corresponding to the effective network speed data as the initial concurrency number;
if the effective network speed data does not exist currently, detecting the network type currently connected with the downloading equipment;
if the network type of the current connection of the downloading equipment is a flow network, determining a first preset initial value as the initial concurrency number;
if the network type of the current connection of the downloading equipment is a wireless network, determining a second preset initial value as the initial concurrent number; wherein the first preset initial value is smaller than the second preset initial value.
Optionally, in the method for downloading a video file, the determining whether the number of the sub-files to be downloaded in the current target video file is greater than a preset number, or whether the current target video file is in an initial stage of caching the target video file includes:
judging whether the current sub files are in the caching stage of the first N sub files in the target video file; if the current caching stage of the first N sub-files in the target video file is judged, determining the current caching initial stage of the target video file;
and if the current sub-file is not in the caching stage of the first N sub-files in the target video file, judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number.
Optionally, in the method for downloading a video file, the detecting whether a current hardware environment of the downloading device meets a preset condition includes:
detecting whether the CPU of the current downloading equipment exceeds the frequency; when the CPU of the downloading equipment exceeds the frequency, the preset speed reduction value corresponding to the preset condition is a first preset speed reduction value;
if the CPU of the current downloading equipment is detected not to be over-frequency, detecting whether the available running memory of the current downloading equipment is smaller than a preset running memory; when the available running memory of the downloading equipment is smaller than a preset running memory, the preset speed reduction value corresponding to the preset condition is a second preset speed reduction value;
if the available operation memory of the current downloading equipment is not smaller than the preset operation memory, detecting whether the residual electric quantity of the current downloading equipment is smaller than the preset electric quantity; and the current residual electric quantity of the downloading equipment is less than a preset electric quantity, and a preset speed reduction value corresponding to the preset condition is a third preset speed reduction value.
Optionally, in the above method for downloading a video file, before downloading the subfile to be downloaded in the target video file according to the final current concurrency number, the method further includes:
judging whether the current concurrency number is less than 2; if the current concurrency number is judged to be not less than 2, the final current concurrency number is executed to download the subfiles to be downloaded in the target video file;
and if the concurrency number is less than 2, setting the current concurrency number to be 2.
A second aspect of the present application provides a video file downloading apparatus, including:
a receiving unit, configured to receive a download request of a target video file;
the initial value determining unit is used for determining the initial concurrency number of the downloaded target video file;
the initialization unit is used for determining the initial concurrency number of the target video file as the current concurrency number;
the first judging unit is used for judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number or whether the current target video file is in the initial caching stage of the target video file;
the increment unit is used for increasing the current concurrency number by a preset acceleration value if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the current subfiles are in the initial caching stage of the target video file;
the environment detection unit is used for detecting whether the current hardware environment of the downloading equipment meets a preset condition or not;
the decrement unit is used for subtracting a preset speed reduction value corresponding to the met preset condition from the current concurrency number if the fact that the current hardware environment of the downloading equipment meets the preset condition is detected;
the downloading unit is used for downloading the subfiles to be downloaded in the target video file according to the final current concurrency number;
the network speed detection unit is used for detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded;
the matching unit is used for matching a preset concurrency number corresponding to the current network speed of the downloading equipment when the network speed change of the downloading equipment is detected;
and the return unit is used for determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number, and returning to the first judgment unit to execute the judgment of whether the number of the sub-files to be downloaded in the target video file is greater than the preset number or whether the current sub-files are in the initial caching stage of the target video file according to the latest current concurrency number.
Optionally, in the above apparatus for downloading a video file, the initial value determining unit includes:
the second judging unit is used for judging whether effective network speed data exists currently;
the first determining unit is used for determining the preset concurrency number corresponding to the effective network speed data as the initial concurrency number when the effective network speed data is judged to exist currently;
the network type detection unit is used for detecting the network type currently connected with the downloading equipment when judging that no effective network speed data exists currently;
a second determining unit, configured to determine, when the network type currently connected to the downloading device is a traffic network, a first preset initial value as the initial concurrency number;
a third determining unit, configured to determine a second preset initial value as the initial concurrency number when the network type currently connected to the downloading device is a wireless network; wherein the first preset initial value is smaller than the second preset initial value.
Optionally, in the above apparatus for downloading a video file, the first determining unit includes:
a fourth judging unit, configured to judge whether the current sub-file is in a caching stage of the first N sub-files in the target video file; if the current caching stage of the first N sub-files in the target video file is judged, determining the current caching initial stage of the target video file;
and the fifth judging unit is used for judging whether the number of the sub files to be downloaded in the target video file is larger than the preset number or not if the current caching stage of the first N sub files which are not in the target video file is judged.
Optionally, in the above apparatus for downloading a video file, the environment detecting unit includes:
the first detection unit is used for detecting whether the CPU of the current downloading equipment exceeds the frequency; when the CPU of the downloading equipment exceeds the frequency, the preset speed reduction value corresponding to the preset condition is a first preset speed reduction value;
the second detection unit is used for detecting whether the available running memory of the current downloading equipment is smaller than a preset running memory or not when the CPU of the current downloading equipment is detected not to be over-frequency; when the available running memory of the downloading equipment is smaller than a preset running memory, the preset speed reduction value corresponding to the preset condition is a second preset speed reduction value;
a third detection unit, configured to detect whether a remaining power of the current downloading device is less than a preset power when it is detected that an available operating memory of the current downloading device is not less than a preset operating memory; and the current residual electric quantity of the downloading equipment is less than a preset electric quantity, and a preset speed reduction value corresponding to the preset condition is a third preset speed reduction value.
Optionally, in the above apparatus for downloading a video file, the apparatus further includes:
a sixth judging unit, configured to judge whether the current concurrence number is less than 2; if the current concurrency number is judged to be not less than 2, the final current concurrency number is executed to download the subfiles to be downloaded in the target video file;
and the setting unit is used for setting the current concurrency number to be 2 when the concurrency number is judged to be less than 2.
A third aspect of the present application provides an electronic device comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and when the program is executed, the program is specifically configured to implement the video file downloading method according to any one of the above items.
A fourth aspect of the present application provides a computer storage medium for storing a computer program which, when executed, is adapted to implement a method of downloading a video file as claimed in any one of the preceding claims.
The application provides a video file downloading method, which comprises the steps of firstly determining the initial concurrency number of a downloaded target video file when a downloading request of the target video file is received, and determining the initial concurrency number of the target video file as the current concurrency number. And judging whether the number of the sub-files to be downloaded in the current target video file is greater than the preset number or not, or whether the current target video file is in the initial stage of caching, so that the concurrency can be properly increased and the downloading speed is accelerated. Therefore, if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the target video file is currently in the initial caching stage, the current concurrency number is increased by the preset speed increasing value. Whether the current hardware environment of the downloading equipment meets the preset condition or not is detected, if the current hardware environment of the downloading equipment meets the preset condition, the current concurrency number is subtracted by a preset speed reduction value corresponding to the met preset condition, so that the current hardware environment of the equipment is considered, the concurrency number is properly reduced, and network resources are fully utilized under the condition that the problems of time-out, equipment overheating, network resource robbery and the like are effectively avoided. And finally, downloading the subfiles to be downloaded in the target video file according to the final current concurrency number, and detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the subfiles in the target video file are downloaded. When the network speed change of the downloading equipment is detected, matching a preset concurrency number corresponding to the current network speed of the downloading equipment, determining the preset concurrency number corresponding to the current network speed as a latest current concurrency number, returning to execute judgment whether the number of the sub-files to be downloaded in the target video file is larger than the preset number or not or whether the current sub-files are in the initial caching stage of the target video file or not, and adjusting the concurrency number according to the actual downloading condition continuously so as to ensure that network resources are continuously and fully utilized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for downloading a video file according to an embodiment of the present application;
fig. 2 is a flowchart of a method for determining an initial concurrency number of a downloaded target video file according to an embodiment of the present application;
fig. 3 is a flowchart of another video file downloading method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a video file downloading apparatus according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
An embodiment of the present application provides a method for downloading a video file, as shown in fig. 1, including the following steps:
s101, receiving a downloading request of a target video file.
Wherein, the target video file refers to a file currently requested to be downloaded. In the embodiment of the present application, a video file mainly refers to an m3u8 format, and a plurality of ts files are included in the video file in the format, that is, one video file is composed of a plurality of subfiles. the ts file is essentially an array, and the array corresponds to the download address of each ts file. Of course, other formats of video files may be referred to, but the file needs to be fragmented, that is, the video file is divided into a plurality of subfiles.
Specifically, the downloading request of the target video file may be triggered when the user uses the video caching function on the downloading device. Alternatively, the download request of the target video file may include a name or identification of the target video file, etc., so as to be able to determine the target video file requested to be downloaded.
S102, determining the initial concurrency number of the downloaded target video file, and determining the initial concurrency number of the target video file as the current concurrency number.
In the embodiment of the application, each subfile in the video file is downloaded in a parallel mode. In the embodiment of the present application, the concurrency number refers to the number of subfiles downloaded in parallel.
When the target video file starts to be downloaded, since a specific downloading condition cannot be determined, an initial concurrency number needs to be determined first, and the initial concurrency number of the target video file is determined as a current concurrency number, so that the initialization of concurrent data is realized, and the subsequent steps are executed.
Optionally, the initial concurrency number of the target video file may be a relatively small value determined according to a predetermined test, so as to avoid occurrence of conditions such as timeout, device overheating, network resource robbery, and the like. Or a value corresponding to the network condition may be determined according to the network condition. Specifically, the initial concurrency number of the target video file may be determined by detecting the network speed of the downloading device and/or other parameters of the device.
Optionally, in another embodiment of the present application, a specific implementation manner of determining an initial concurrency number of a download target video file, as shown in fig. 2, includes:
s201, judging whether effective network speed data exists currently.
The effective network speed data refers to data capable of accurately reflecting the network speed of the current downloading equipment.
It should be noted that, if the target video file is downloaded next to the previous video, the network speed data of the downloading device is measured when the previous video is downloaded, so that the network speed data can be directly utilized to determine the initial concurrency number matched with the network speed, thereby realizing that the concurrency number is matched with the network speed, and fully utilizing the network resources of the downloading device. Therefore, if it is determined that valid network speed data currently exists, step S202 is executed.
If it is determined that no valid network speed data currently exists, since the relationship between the network speed and the type of the connected network is large, the step S203 is executed if it is determined that no valid network speed data currently exists, in order to adapt to the network speed as much as possible.
S202, determining a preset concurrency number corresponding to the effective network speed data as an initial concurrency number.
It should be noted that, in the embodiment of the present application, through an experiment in advance, the most suitable concurrency number in each network speed range is determined, and the corresponding relationship between the network speed and the preset concurrency number is established, so that the preset concurrency number corresponding to the effective network speed data can be determined.
S203, detecting the network type of the current connection of the downloading equipment.
It should be noted that, networks to which the current device is connected are mainly divided into a traffic network and a wireless network, so in this embodiment of the application, through testing in advance, the most suitable concurrency number under the conditions of the traffic network and the wireless network is determined, and then a first preset initial value and a second preset initial value are set.
And S204, judging whether the network type currently connected with the downloading equipment is a flow network.
If the network type currently connected to the downloading device is a traffic network, step S205 is executed. If the network type currently connected to the downloading device is determined not to be the traffic network, that is, the network type currently connected to the downloading device is the wireless network, step S206 is executed.
And S205, determining the first preset initial value as an initial concurrency number.
And S206, determining the second preset initial value as the initial concurrency number.
Since the network speed of the wireless network is usually better than that of the traffic network, the first preset initial value is smaller than the second preset initial value. For example, the test results show that the obtained effect is better when the first preset initial value is 2 and the second preset initial value is 4. Of course, the first preset initial value and the second preset initial value obtained through the test may be correspondingly different due to different characteristics of different devices.
It should be noted that, for part of the system, the cronet library used by the underlying protocol quic is used as an implementation. The concept that the cronet has no long connection is the concurrence processed by the cronet thread, the maximum of 6 threads are processed by the same port, and the maximum of 16 threads is not exceeded by the whole cronet. Therefore, the upper layer logic is required to control the concurrency number, and the concurrency number cannot be directly set. The upper layer refers to a client service layer, and the service layer opens up threads with corresponding quantity according to the concurrency quantity and uses the threads to carry the downloading task. Each thread is responsible for downloading a ts file, and the ts file is recycled to the thread pool after the downloading is completed and used for downloading the ts file next time. the ts files are downloaded one by one until all downloads are complete.
It should be noted that, in the conventional method, ts file processing is mainly performed in the main thread, and when a lower file is processed, a screen is likely to be stuck, and user experience is affected. Therefore, in the embodiment of the application, the ts file is processed in the sub-thread, so that better performance can be obtained, and better experience is provided for users.
S103, judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number or not, or whether the current target video file is in the initial caching stage of the target video file or not.
It should be noted that, when the number of the sub-files to be downloaded in the current target video file is larger, the number of the concurrences can be increased appropriately, so as to reduce the downloading time of the entire target video file. In the testing process, the network speed is usually measured to be lower than the actual network speed at the initial stage of caching the video file, so that the concurrency number can be properly increased at the moment so as to fully utilize the network resources. However, in order to avoid the situation that the number of concurrencies is increased too much, such as overtime, equipment overheating and network resource robbery, the number of concurrencies is increased only once even if the two conditions are met simultaneously. Therefore, when it is determined that the number of the sub-files to be downloaded in the current target video file is greater than the preset number or the current target video file is at the initial stage of the caching of the target video file, step S104 is executed first. If it is determined that the number of the subfiles to be downloaded in the current target video file is not greater than the preset number and the current target video file is not in the initial stage of the caching of the target video file, the subsequent step S105 is directly performed.
Optionally, in another embodiment of the present application, a specific implementation manner of step S103 includes:
and judging whether the current video is in the caching stage of the first N sub-files in the target video file.
If the current caching stage of the first N sub-files in the target video file is judged, the current caching stage of the target video file is determined.
Optionally, as can be seen from tests, N is usually set to 6, that is, the initial stage of caching is the caching stage of the first 6 sub-files.
Since the number of concurrencies is increased only once for both conditions even if both conditions are satisfied, when it is judged that one condition is satisfied, it may not be necessary to judge the other condition again. In the embodiment of the present application, it is determined whether the importance level of the first N sub-files in the target video file is relatively high in the initial stage of caching. If yes, step S104 is executed. And if the current sub-file is not in the caching stage of the first N sub-files in the target video file, judging whether the number of the sub-files to be downloaded in the current target video file is larger than the preset number.
If the number of the sub-files to be downloaded in the current target video file is judged to be larger than the preset number, step S104 is executed. If it is determined that the number of the subfiles to be downloaded in the current target video file is not greater than the preset number, step S105 is directly performed since neither of the two conditions is satisfied.
And S104, increasing the current concurrency number by a preset speed increasing value.
Alternatively, the preset acceleration value may be set to 2 through testing. Of course, other values may be set according to different test conditions.
And S105, detecting whether the current hardware environment of the downloading equipment meets a preset condition.
It should be noted that, while considering the network speed, it is also necessary to consider the hardware environment of the downloading device, for example, battery power, CPU frequency, running memory to avoid overheating, etc., and to find the situations of jamming or resource preemption. It is also necessary to detect whether the current hardware environment of the downloading device meets a preset condition, so as to properly reduce the number of concurrent downloads.
Optionally, a plurality of preset conditions may be included, and when it is determined that the current hardware environment of the downloading device satisfies any one of the preset conditions, step S106 may be executed, that is, even if a plurality of preset conditions are satisfied simultaneously, the concurrence number is reduced only once, so as to avoid excessive reduction at one time. Since the cycle will continue to be repeated, if the predetermined condition is still met, the reduction will continue. Of course, this is only an alternative way, and a preset deceleration value may be subtracted from the current concurrency number every time a preset condition is met.
If it is detected that the current hardware environment of the downloading device does not satisfy the preset condition, step S106 is skipped and step S107 is executed.
And S106, subtracting a preset deceleration value corresponding to the met preset condition from the current concurrency number.
It should be noted that, because different preset conditions may have different influences on the downloading device and the video, corresponding preset slowdown values may be set for the different preset conditions, so that the current concurrency number may be adjusted to a proper value according to the satisfied conditions.
And S107, downloading the subfiles to be downloaded in the target video file according to the final current concurrency number.
It should be noted that, for the current concurrency number, the adjustment through step S104 and step S106 may be required, so that the sub-file to be downloaded in the target video file needs to be downloaded at the final current concurrency number. If the downloading is performed previously, the concurrency number of the downloading is changed, and the sub-file to be downloaded is continuously downloaded.
And S108, detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the subfiles in the target video file are downloaded.
It should be noted that, since the present application mainly addresses downloading of video files, the internet speed of downloading of the target video is concerned, and therefore, the detected internet speed of the downloading device refers to the internet speed of downloading the target video. When the network environment changes or the downloading device changes, the downloading speed of the target video file is affected, so that the network speed of the downloading device is affected, and therefore the network speed of the downloading device is detected based on the downloading speed of the target video file, which needs to be monitored in real time until all the subfiles in the target video file are downloaded.
And S109, judging whether the network speed of the downloading equipment is detected to change.
If it is determined that the network speed of the downloading device is detected to be changed, it indicates that the concurrency number needs to be adjusted accordingly at this time, so as to fully utilize the network resources and increase the downloading speed, so step S109 is executed at this time.
S110, matching a preset concurrency number corresponding to the current network speed of the downloading equipment, and determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number.
After the latest current concurrency number is obtained, the process returns to step S103 for the latest current concurrency number.
The embodiment of the application provides a method for downloading a video file, which comprises the steps of firstly determining the initial concurrency number of a downloaded target video file when a downloading request of the target video file is received, and determining the initial concurrency number of the target video file as the current concurrency number. And judging whether the number of the sub-files to be downloaded in the current target video file is greater than the preset number or not, or whether the current target video file is in the initial stage of caching, so that the concurrency can be properly increased and the downloading speed is accelerated. Therefore, if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the target video file is currently in the initial caching stage, the current concurrency number is increased by the preset speed increasing value. Whether the current hardware environment of the downloading equipment meets the preset condition or not is detected, if the current hardware environment of the downloading equipment meets the preset condition, the current concurrency number is subtracted by a preset speed reduction value corresponding to the met preset condition, so that the current hardware environment of the equipment is considered, the concurrency number is properly reduced, and network resources are fully utilized under the condition that the problems of time-out, equipment overheating, network resource robbery and the like are effectively avoided. And finally, downloading the subfiles to be downloaded in the target video file according to the final current concurrency number, and detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the subfiles in the target video file are downloaded. When the network speed change of the downloading equipment is detected, matching a preset concurrency number corresponding to the current network speed of the downloading equipment, determining the preset concurrency number corresponding to the current network speed as a latest current concurrency number, returning to execute judgment whether the number of the sub-files to be downloaded in the target video file is larger than the preset number or not or whether the current sub-files are in the initial caching stage of the target video file or not, and adjusting the concurrency number according to the actual downloading condition continuously so as to ensure that network resources are continuously and fully utilized.
Another embodiment of the present application provides another method for downloading a video file, as shown in fig. 3, including the following steps:
s301, receiving a downloading request of the target video file.
It should be noted that, for the specific implementation of step S301, reference may be made to step S101 in the foregoing method embodiment, and details are not described here again.
S302, determining the initial concurrency number of the downloaded target video file, and determining the initial concurrency number of the target video file as the current concurrency number.
It should be noted that, for the specific implementation of step S302, reference may be made to step S102 in the foregoing method embodiment, and details are not described here again.
S303, judging whether the current video file is in the caching stage of the first N sub files in the target video file.
If the current caching stage of the first N sub-files in the target video file is determined, it is determined that the current caching stage of the target video file is the current caching stage of the target video file, that is, the caching stages of the first N sub-files in the target video file are the current caching stage of the target video file, and step S305 can be executed as long as one of the caching stages in step S303 and step S304 is satisfied, so step S305 can be directly executed at this time without executing step S304 again. If it is determined that the current sub-file is not in the caching stage of the first N sub-files in the target video file, step S304 is performed first.
S304, judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number.
If it is determined that the number of the sub-files to be downloaded in the target video file is greater than the preset number, step S305 is executed. And if the number of the sub-files to be downloaded in the target video file is judged to be not greater than the preset number, which indicates that neither condition is met, executing step S306.
And S305, increasing the current concurrency number by a preset speed increasing value.
S306, detecting whether the CPU of the current downloading equipment exceeds the frequency.
It should be noted that, in this embodiment of the application, the preset conditions for detecting whether the current hardware environment of the downloading device meets are three corresponding conditions of step S306, step S307, and step S308, and when any one of the conditions is met, step S309 may be directly executed without detecting other conditions. Therefore, if the CPU over-frequency of the current download device is detected, step S309 is executed. If it is detected that the CPU of the current downloading device is not over-clocking, it is detected whether the next preset condition is met, and step S307 is executed.
Since each preset condition has a different influence on downloading, when the CPU of the downloading device is overfrequency, the preset deceleration value corresponding to the preset condition is the first preset deceleration value, for example, the first preset deceleration value may be 2.
S307, detecting whether the available operation memory of the current downloading equipment is smaller than a preset operation memory.
Similarly, if it is detected that the available operating memory of the current downloading device is smaller than the preset operating memory, step S309 is executed. If it is detected that the available operating memory of the current downloading device is not less than the preset operating memory, step S308 is executed.
When the available running memory of the downloading device is smaller than the preset running memory, the preset deceleration value corresponding to the preset condition is a second preset deceleration value, and the second preset deceleration value can be set to be 2 in a test.
And S308, detecting whether the residual electric quantity of the current downloading equipment is smaller than the preset electric quantity.
The residual electric quantity of the current downloading equipment is smaller than the preset electric quantity, the preset speed reduction value corresponding to the preset condition is a third preset speed reduction value, and the card section is easily collected due to the fact that the electric quantity has a large influence on the equipment, so that the third preset speed reduction value is relatively large and is set to be 4 relatively better through testing.
Optionally, while considering the remaining power, it may also be detected whether the current state of charge is present, and if so, the concurrency number may not be reduced, or reduced relatively less.
In the embodiment of the present application, since each preset condition is sequentially detected, if it is detected that the remaining power of the current downloading device is not less than the preset power, it is indicated that any preset condition is not satisfied, so that step S310 may be directly executed at this time. If it is detected that the remaining power of the current downloading device is less than the preset power, step S309 needs to be executed first.
Of course, the execution sequence of steps S307 to S308 in the embodiment of the present application is only one optional manner, and other sequences may also be adopted, which also belongs to the protection scope of the present application.
Optionally, in the embodiment of the present application, only the three major influencing factors are mainly targeted, and other preset conditions may also be set as needed.
And S309, subtracting a preset deceleration value corresponding to the met preset condition from the current concurrency number.
And S310, judging whether the current concurrence number is less than 2.
It should be noted that, in order to avoid the situation that the concurrency number is too small, even the concurrency number is 0, in the embodiment of the present application, there is a bottom-entering policy, that is, it is determined whether the current concurrency number is less than 2, and if it is determined that the current concurrency number is not less than 2, step S312 is directly executed. If the current concurrency number is less than 2, step S311 is executed first.
And S311, setting the current concurrency number to be 2.
Since the number of concurrencies is too small, the current number of concurrencies is directly set to the minimum value capable of achieving concurrency, i.e., to 2, and then step S312 is performed.
And S312, downloading the subfiles to be downloaded in the target video file according to the final current concurrency number.
And S313, detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded.
And S314, judging whether the detected network speed of the downloading equipment is changed.
Wherein, when the network speed change of the downloading device is detected, step S315 is executed.
And S315, matching the preset concurrency number corresponding to the current network speed of the downloading equipment.
And S316, determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number.
After step S316 is executed, the process returns to step S303 for the latest current concurrency number.
Another embodiment of the present application provides a video file downloading apparatus, as shown in fig. 4, including:
a receiving unit 401, configured to receive a download request of a target video file.
An initial value determining unit 402, configured to determine an initial concurrency number of the download target video file.
An initializing unit 403, configured to determine an initial concurrency number of the target video file as a current concurrency number.
The first determining unit 404 is configured to determine whether the number of the sub-files to be downloaded in the current target video file is greater than a preset number, or whether the current target video file is in an initial stage of caching the target video file.
An increment unit 405, configured to increase the current concurrence number by a preset acceleration value if it is determined that the number of the subfiles to be downloaded in the target video file is greater than the preset number or the current subfile is in an initial stage of caching of the target video file.
The environment detecting unit 406 is configured to detect whether a current hardware environment of the downloading device meets a preset condition.
The decrement unit 407 is configured to, if it is detected that the current hardware environment of the download device meets the preset condition, subtract a preset speed reduction value corresponding to the met preset condition from the current concurrency number.
And a downloading unit 408, configured to download the subfiles to be downloaded in the target video file with the final current concurrency number.
And the network speed detection unit 409 is used for detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded.
The matching unit 410 is configured to match a preset concurrency number corresponding to the current network speed of the downloading device when detecting that the network speed of the downloading device changes.
The returning unit 411 is configured to determine the preset concurrency number corresponding to the current network speed as a latest current concurrency number, and return to the first determining unit 404 to perform a determination on whether the number of the sub-files to be downloaded in the target video file is greater than the preset number or whether the current number is in an initial stage of caching the target video file.
Optionally, in an apparatus for downloading a video file provided in another embodiment of the present application, an initial value determining unit includes:
and the second judging unit is used for judging whether effective network speed data exists currently.
And the first determining unit is used for determining a preset concurrency number corresponding to the effective network speed data as an initial concurrency number when the effective network speed data is judged to exist currently.
And the network type detection unit is used for detecting the network type currently connected with the downloading equipment when judging that no effective network speed data exists currently.
And the second determining unit is used for determining the first preset initial value as the initial concurrency number when the network type of the current connection of the downloading equipment is the flow network.
And the third determining unit is used for determining the second preset initial value as the initial concurrency number when the network type of the current connection of the downloading equipment is the wireless network. The first preset initial value is smaller than the second preset initial value.
Optionally, in an apparatus for downloading a video file provided in another embodiment of the present application, the first determining unit includes:
and the fourth judging unit is used for judging whether the current sub-files are in the caching stage of the first N sub-files in the target video file. If the current caching stage of the first N sub-files in the target video file is judged, the current caching stage of the target video file is determined.
And the fifth judging unit is used for judging whether the number of the sub files to be downloaded in the current target video file is greater than the preset number or not if the current caching stage of the first N sub files which are not in the target video file is judged.
Optionally, in the above apparatus for downloading a video file, the environment detecting unit includes:
the first detection unit is used for detecting whether the CPU of the current downloading equipment exceeds the frequency. When the CPU of the downloading equipment exceeds the frequency, the preset speed reduction value corresponding to the preset condition is a first preset speed reduction value.
And the second detection unit is used for detecting whether the available operation memory of the current downloading equipment is smaller than the preset operation memory or not when the CPU of the current downloading equipment is detected not to be overfrequency.
When the available running memory of the downloading equipment is smaller than the preset running memory, the preset speed reduction value corresponding to the preset condition is a second preset speed reduction value.
And the third detection unit is used for detecting whether the residual electric quantity of the current downloading equipment is less than the preset electric quantity or not when detecting that the available running memory of the current downloading equipment is not less than the preset running memory. And the residual electric quantity of the current downloading equipment is less than the preset electric quantity, and the preset deceleration value corresponding to the preset condition is a third preset deceleration value.
Optionally, in a downloading apparatus for a video file provided in another embodiment of the present application, the downloading apparatus further includes:
and the sixth judging unit is used for judging whether the current concurrence number is less than 2. And if the current concurrency number is judged to be not less than 2, downloading the subfiles to be downloaded in the target video file by using the final current concurrency number.
And the setting unit is used for setting the current concurrency number to be 2 when the concurrency number is judged to be less than 2.
It should be noted that, for the specific working processes of each unit provided in the foregoing embodiments of the present application, corresponding steps in the foregoing method embodiments may be referred to accordingly, and are not described herein again.
Another embodiment of the present application provides an electronic device, as shown in fig. 5, including:
a memory 501 and a processor 502.
The memory 501 is used for storing programs.
The processor 502 is configured to execute a program stored in the memory 501, and when the program is executed, the program is specifically configured to implement the video file downloading method provided in any of the above embodiments.
Another embodiment of the present application provides a computer storage medium for storing a computer program, and when the computer program is executed, the computer storage medium is used for implementing the method for downloading a video file provided in any one of the above embodiments.
Computer storage media, including permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for downloading a video file, comprising:
receiving a downloading request of a target video file;
determining the initial concurrency number of the downloaded target video file, and determining the initial concurrency number of the target video file as the current concurrency number;
judging whether the number of the sub-files to be downloaded in the target video file is larger than a preset number or not, or whether the current sub-files are in the initial caching stage of the target video file or not;
if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the target video file is currently in the initial caching stage of the target video file, increasing the current concurrency number by a preset speed-up value;
detecting whether the current hardware environment of the downloading equipment meets a preset condition or not;
if the current hardware environment of the downloading equipment is detected to meet a preset condition, subtracting a preset speed reduction value corresponding to the met preset condition from the current concurrency number;
downloading the subfiles to be downloaded in the target video file according to the final current concurrency number;
detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded;
when the network speed change of the downloading equipment is detected, matching a preset concurrency number corresponding to the current network speed of the downloading equipment;
and determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number, and returning to the judgment whether the number of the sub-files to be downloaded in the target video file is greater than the preset number or whether the current sub-files are in the initial caching stage of the target video file or not according to the latest current concurrency number.
2. The method of claim 1, wherein the determining an initial number of concurrencies for downloading the target video file comprises:
judging whether effective network speed data exists at present;
if the effective network speed data exists currently, determining the preset concurrency number corresponding to the effective network speed data as the initial concurrency number;
if the effective network speed data does not exist currently, detecting the network type currently connected with the downloading equipment;
if the network type of the current connection of the downloading equipment is a flow network, determining a first preset initial value as the initial concurrency number;
if the network type of the current connection of the downloading equipment is a wireless network, determining a second preset initial value as the initial concurrent number; wherein the first preset initial value is smaller than the second preset initial value.
3. The method according to claim 1, wherein the determining whether the number of the sub-files to be downloaded in the target video file is greater than a preset number or is currently in an initial stage of caching the target video file comprises:
judging whether the current sub files are in the caching stage of the first N sub files in the target video file; if the current caching stage of the first N sub-files in the target video file is judged, determining the current caching initial stage of the target video file;
and if the current sub-file is not in the caching stage of the first N sub-files in the target video file, judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number.
4. The method according to claim 1, wherein the detecting whether the current hardware environment of the downloading device meets a preset condition comprises:
detecting whether the CPU of the current downloading equipment exceeds the frequency; when the CPU of the downloading equipment exceeds the frequency, the preset speed reduction value corresponding to the preset condition is a first preset speed reduction value;
if the CPU of the current downloading equipment is detected not to be over-frequency, detecting whether the available running memory of the current downloading equipment is smaller than a preset running memory; when the available running memory of the downloading equipment is smaller than a preset running memory, the preset speed reduction value corresponding to the preset condition is a second preset speed reduction value;
if the available operation memory of the current downloading equipment is not smaller than the preset operation memory, detecting whether the residual electric quantity of the current downloading equipment is smaller than the preset electric quantity; and the current residual electric quantity of the downloading equipment is less than a preset electric quantity, and a preset speed reduction value corresponding to the preset condition is a third preset speed reduction value.
5. The method according to claim 1, wherein before downloading the subfiles to be downloaded in the target video file with the final current concurrency number, the method further comprises:
judging whether the current concurrency number is less than 2; if the current concurrency number is judged to be not less than 2, the final current concurrency number is executed to download the subfiles to be downloaded in the target video file;
and if the concurrency number is less than 2, setting the current concurrency number to be 2.
6. An apparatus for downloading a video file, comprising:
a receiving unit, configured to receive a download request of a target video file;
the initial value determining unit is used for determining the initial concurrency number of the downloaded target video file;
the initialization unit is used for determining the initial concurrency number of the target video file as the current concurrency number;
the first judging unit is used for judging whether the number of the sub-files to be downloaded in the current target video file is larger than a preset number or whether the current target video file is in the initial caching stage of the target video file;
the increment unit is used for increasing the current concurrency number by a preset acceleration value if the number of the subfiles to be downloaded in the target video file is judged to be larger than the preset number or the current subfiles are in the initial caching stage of the target video file;
the environment detection unit is used for detecting whether the current hardware environment of the downloading equipment meets a preset condition or not;
the decrement unit is used for subtracting a preset speed reduction value corresponding to the met preset condition from the current concurrency number if the fact that the current hardware environment of the downloading equipment meets the preset condition is detected;
the downloading unit is used for downloading the subfiles to be downloaded in the target video file according to the final current concurrency number;
the network speed detection unit is used for detecting the network speed of the downloading equipment in real time based on the downloading speed of the target video file until all the sub-files in the target video file are downloaded;
the matching unit is used for matching a preset concurrency number corresponding to the current network speed of the downloading equipment when the network speed change of the downloading equipment is detected;
and the return unit is used for determining the preset concurrency number corresponding to the current network speed as the latest current concurrency number, and returning to the first judgment unit to execute the judgment of whether the number of the sub-files to be downloaded in the target video file is greater than the preset number or whether the current sub-files are in the initial caching stage of the target video file according to the latest current concurrency number.
7. The apparatus of claim 6, wherein the initial value determining unit comprises:
the second judging unit is used for judging whether effective network speed data exists currently;
the first determining unit is used for determining the preset concurrency number corresponding to the effective network speed data as the initial concurrency number when the effective network speed data is judged to exist currently;
the network type detection unit is used for detecting the network type currently connected with the downloading equipment when judging that no effective network speed data exists currently;
a second determining unit, configured to determine, when the network type currently connected to the downloading device is a traffic network, a first preset initial value as the initial concurrency number;
a third determining unit, configured to determine a second preset initial value as the initial concurrency number when the network type currently connected to the downloading device is a wireless network; wherein the first preset initial value is smaller than the second preset initial value.
8. The apparatus according to claim 6, wherein the first determining unit comprises:
a fourth judging unit, configured to judge whether the current sub-file is in a caching stage of the first N sub-files in the target video file; if the current caching stage of the first N sub-files in the target video file is judged, determining the current caching initial stage of the target video file;
and the fifth judging unit is used for judging whether the number of the sub files to be downloaded in the target video file is larger than the preset number or not if the current caching stage of the first N sub files which are not in the target video file is judged.
9. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, which when executed is specifically configured to implement the method of downloading a video file according to any of claims 1 to 5.
10. A computer storage medium storing a computer program which, when executed, implements a method of downloading a video file as claimed in any one of claims 1 to 5.
CN202210249312.0A 2022-03-15 2022-03-15 Video file downloading method and device, electronic equipment and storage medium Active CN114338657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210249312.0A CN114338657B (en) 2022-03-15 2022-03-15 Video file downloading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210249312.0A CN114338657B (en) 2022-03-15 2022-03-15 Video file downloading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114338657A true CN114338657A (en) 2022-04-12
CN114338657B CN114338657B (en) 2022-07-12

Family

ID=81033754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210249312.0A Active CN114338657B (en) 2022-03-15 2022-03-15 Video file downloading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114338657B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791985A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Method and device for downloading media stream data
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
WO2017016285A1 (en) * 2015-07-29 2017-02-02 中兴通讯股份有限公司 Method and device for implementing download of multimedia file
CN106550042A (en) * 2016-11-23 2017-03-29 广州优视网络科技有限公司 Multithreading method for down loading and device and computing device
WO2017049722A1 (en) * 2015-09-25 2017-03-30 宇龙计算机通信科技(深圳)有限公司 Resource downloading method, resource downloading system, and terminal
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
US20200186588A1 (en) * 2018-12-06 2020-06-11 Beijing Bytedance Network Technology Co., Ltd. File downloading method, apparatus, and non-transitory computer-readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791985A (en) * 2014-12-22 2016-07-20 深圳Tcl数字技术有限公司 Method and device for downloading media stream data
WO2017016285A1 (en) * 2015-07-29 2017-02-02 中兴通讯股份有限公司 Method and device for implementing download of multimedia file
WO2017049722A1 (en) * 2015-09-25 2017-03-30 宇龙计算机通信科技(深圳)有限公司 Resource downloading method, resource downloading system, and terminal
CN105873022A (en) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 Downloading method and device for mobile terminal
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN106550042A (en) * 2016-11-23 2017-03-29 广州优视网络科技有限公司 Multithreading method for down loading and device and computing device
US20200186588A1 (en) * 2018-12-06 2020-06-11 Beijing Bytedance Network Technology Co., Ltd. File downloading method, apparatus, and non-transitory computer-readable storage medium

Also Published As

Publication number Publication date
CN114338657B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN102831045B (en) Method and device for detecting starting items in terminal equipment
CN107832100B (en) APK plug-in loading method and terminal thereof
CN112767135B (en) Configuration method and device of rule engine, storage medium and computer equipment
CN109582649B (en) Metadata storage method, device and equipment and readable storage medium
US10382551B2 (en) Cloud file processing method and apparatus
CN111272393A (en) Flash lamp detection method and device
CN111931185A (en) Java anti-serialization vulnerability detection method and component
CN114338657B (en) Video file downloading method and device, electronic equipment and storage medium
CN110688360A (en) Distributed file system storage management method, device, equipment and storage medium
CN113676549A (en) Application request distribution method, application gateway, electronic device and storage medium
CN108712365B (en) DDoS attack event detection method and system based on flow log
CN113923002A (en) Computer network intrusion prevention method and device, storage medium and processor
CN113242260A (en) Attack detection method and device, electronic equipment and storage medium
CN108920326A (en) Determine system time-consuming abnormal method, apparatus and electronic equipment
CN112527543A (en) Client starting exception handling method and device, electronic equipment and storage medium
CN113971068A (en) Resource adjusting method, device, equipment and storage medium
CN108628551B (en) Data processing method and device
CN115576698A (en) Network card interrupt aggregation method, device, equipment and medium
CN113839948B (en) DNS tunnel traffic detection method and device, electronic equipment and storage medium
CN114546714B (en) Data backup method, system, device and storage medium
CN110321133B (en) H5 application deployment method and device
US11556649B2 (en) Methods and apparatus to facilitate malware detection using compressed data
CN112764990A (en) Target process monitoring method and device and computer equipment
CN107491287B (en) Instruction execution method and device
CN113037563B (en) Cloud platform network optimization method, device and system and readable 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
GR01 Patent grant
GR01 Patent grant