CN115473806B - Resource download control method, device, electronic equipment and computer readable medium - Google Patents

Resource download control method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115473806B
CN115473806B CN202210971452.9A CN202210971452A CN115473806B CN 115473806 B CN115473806 B CN 115473806B CN 202210971452 A CN202210971452 A CN 202210971452A CN 115473806 B CN115473806 B CN 115473806B
Authority
CN
China
Prior art keywords
resource
limit value
speed limit
downloading
target
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.)
Active
Application number
CN202210971452.9A
Other languages
Chinese (zh)
Other versions
CN115473806A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210971452.9A priority Critical patent/CN115473806B/en
Publication of CN115473806A publication Critical patent/CN115473806A/en
Application granted granted Critical
Publication of CN115473806B publication Critical patent/CN115473806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a resource downloading control method, a device, electronic equipment and a computer readable medium, and relates to the technical field of computers. The method comprises the following steps: under the condition that a plurality of resource downloading processes exist at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set; and the target resource downloading process controls the downloading speed of the resource to be downloaded according to the acquired priority information and the first speed limit value. According to the method, each resource downloading process can dynamically control the downloading speed by integrating the states of all the current resource downloading processes, so that the business service capability is improved, and the user experience is improved.

Description

Resource download control method, device, electronic equipment and computer readable medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for controlling resource download, an electronic device, and a computer readable medium.
Background
With the development of internet technology, network resources such as audio and video resources are increasingly abundant, users can watch and download through various application software such as video clients, and at the same time, the users can start downloading of a plurality of resources, namely, downloading tasks of network resource data of a plurality of services exist in the application software at the same time.
However, with the increase of services, multiple processes may be used in the application software to perform the downloading tasks of different services at the same time, and the different services may cause a greedy broadband preemption phenomenon, so that the broadband cost is high, and the use experience of the user (for example, the downloading task causes video viewing or live broadcast viewing to be blocked) or the downloading speed of the urgent task is affected.
Disclosure of Invention
To solve the above technical problems or partially solve the above technical problems, embodiments of the present invention provide a method, an apparatus, an electronic device, and a computer readable medium for controlling resource download.
In a first aspect of an embodiment of the present invention, there is provided a resource download control method, including: under the condition that a plurality of resource downloading processes exist in a resource downloading process set at the same time, a target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set to acquire task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set; and the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process.
In a second aspect of the embodiment of the present invention, there is provided a resource download control device, where the device is applied to a target resource download process, where the target resource download process is any one resource download process in a resource download process set, and the device includes: the communication module is used for respectively communicating with each other resource downloading process in the resource downloading process set under the condition that a plurality of resource downloading processes exist in the resource downloading process set at the same time, and acquiring task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed when the resource downloading process downloads the resource to be downloaded; and the speed avoiding module is used for controlling the downloading speed of the resource to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process.
In a third aspect of the embodiment of the present invention, there is provided an electronic device, including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the resource downloading control method according to any embodiment of the invention.
In a fourth aspect of the embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the resource download control method according to any of the embodiments of the present invention.
One embodiment of the above invention has the following advantages or benefits:
under the condition that a plurality of resource downloading processes exist at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading task when downloading the resource to be downloaded; the target resource downloading process controls the downloading speed of the resource to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process, and can dynamically control the downloading speed of each resource downloading process by combining the state of all the current resource downloading processes, thereby improving the service capability of the service, meeting the downloading requirements of different services and improving the user experience.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 schematically shows a schematic diagram of a main flow of a resource download control method according to an embodiment of the present invention;
FIG. 2 schematically illustrates a flowchart of a resource download control method according to another embodiment of the present invention;
FIG. 3 schematically illustrates a sub-flowchart of a resource download control method according to an embodiment of the present invention;
FIG. 4 schematically illustrates a flow chart of a resource download control method according to yet another embodiment of the present invention;
fig. 5 schematically illustrates a structural diagram of a resource download control apparatus according to an embodiment of the present invention;
fig. 6 schematically shows a structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
Fig. 1 schematically illustrates a flowchart of a resource download control method according to an embodiment of the present application, where, as shown in fig. 1, the resource download control method includes:
step 101: under the condition that a plurality of resource downloading processes exist in the resource downloading process set at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading task when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set.
The resources can be various types of resources such as video, audio, pictures, texts, plug-ins and the like which are downloaded through a network. In an alternative embodiment, the user may download the resources through various multimedia application software, and the user may perform a resource downloading operation on a user interaction interface provided by the multimedia application software, where after detecting the resource downloading operation of the user, the multimedia application software creates a resource downloading process corresponding to the resource downloading operation. The resource download process may include an identification of the resource to be downloaded, such as a name of the resource to be downloaded, and may also include a URL (Uniform Resource Locator ) of the resource to be downloaded.
In this embodiment, the priority information of the resource downloading process may be used to indicate the priority of the resource downloading process. The priority information of the resource downloading process may be represented by a high priority, a normal priority, a low priority, or may be represented by a first priority, a second priority, and a third priority. The priority information of the resource downloading process can be flexibly set, and the invention is not limited herein. For example, the priority information of the resource downloading process can be set according to the resources to be downloaded, and different resources correspond to different priority information. The priority information of the resource downloading task can also be set according to the service corresponding to the resource downloading process, namely, the priority information of a plurality of resource downloading processes belonging to different services is different, and the priority information of a plurality of resource downloading processes belonging to the same service is the same. In this embodiment, there may be a one-to-many relationship between the traffic and the resource download process. For a service, there may be multiple resource download processes at the same time under the service, and one resource download process can only belong to one service. The division of the service can be flexibly set according to the application scenario, and the invention is not limited herein. The priority may also be set according to information of the user triggering the resource download process, e.g. the higher the user-triggered resource download process the higher the user level. The first speed limit may be used to indicate a maximum download speed of the resource download process when downloading the resource to be downloaded. The first speed limit value may be flexibly set, and the present invention is not limited thereto. The first speed limit value may correspond to priority information of the resource downloading process, and the higher the priority is, the greater the first speed limit value is. In an alternative embodiment, the first speed limit value may also be set according to the resource to be downloaded, where different resources correspond to different first speed limit values. The first speed limit value can also be set according to the service corresponding to the resource downloading process, namely, different types of service correspond to different first speed limit values. The division of the service can be flexibly set according to the application scenario, and the invention is not limited herein. The first speed limit may also be set according to information of the user triggering the resource download process, e.g. the higher the user level the greater the first speed limit of the user triggered resource download process.
In this embodiment, the target resource downloading process communicates with each other resource downloading process in the resource downloading process set, that is, the task information of each other resource downloading process is obtained through an inter-process communication manner, so that the target resource downloading process can combine the task information of all other resource downloading processes to control the downloading speed of the resource to be downloaded. The process is a running activity of a program in a computer on a certain data set, is a basic unit for the system to allocate and schedule resources, and is a basis of an operating system structure. A process can apply for and own system resources, a dynamic concept, an active entity. Inter-process communication (IPC for short) refers to the interaction between data of two processes.
Step 102: and the target resource downloading process controls the downloading speed of the resources to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process.
In this embodiment, the priority level of each resource downloading process may be determined according to the priority information of each resource downloading process. The higher the priority the more urgent the resource download process. Therefore, under the condition that a plurality of resource downloading processes exist at the same time, the downloading speed of the resource downloading process with high priority is not limited, and the downloading speed of the resource downloading process with low priority is limited, so that the bandwidth is given to the resource downloading process with high priority, the downloading efficiency of the resource downloading process with high priority is improved, and the bandwidth preemption is avoided. In another alternative embodiment, the resource downloading process with high priority may be preferentially executed, then the resource downloading process with low priority is executed, and speed limitation is performed according to the first speed limitation value of the resource downloading process when each resource downloading process is executed.
In the resource downloading control method of the embodiment of the invention, under the condition that a plurality of resource downloading processes exist at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set to acquire the task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set; the target resource downloading process controls the downloading speed of the resource to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process, so that the downloading speed of each resource downloading process can be dynamically adjusted and controlled, the downloading speed avoidance is realized, the occurrence of broadband preemption is avoided, and the user experience is optimized.
Fig. 2 schematically shows a flowchart of a resource download control method according to another embodiment of the present invention. In this embodiment, the service is divided at the service side that provides the resource download service, and the service may be divided into different types, and different priorities and different speed limit values may be set for the different types of services. The priority and speed limit values of different types of traffic can be dynamically adjusted. When a resource downloading process of a certain service is created, the priority and the speed limit value of the service can be used as the priority information and the first speed limit value of the resource downloading process, so that the resource downloading process can be dynamically adjusted and controlled according to the priority information and the first speed limit value, downloading requirements of different services are met, and the use experience of a user is improved. As shown in fig. 2, the resource download control method of the present embodiment includes:
Step 201: and responding to the resource downloading operation of the user, creating a resource downloading process, and setting task parameters of the resource downloading process, wherein the task parameters comprise the identification of a target service corresponding to the resource downloading process.
In this embodiment, the service may be divided into different types according to a certain rule on a service side (such as a service side of the multimedia application software) that provides the resource download service, and the basis for dividing the service may be flexibly set according to the application scenario, which is not limited herein. As an example, the service side providing the video download service may be divided according to service parties of resources, for example, may be divided into a live service, an advertisement service, an online play service, an offline download service, a plug-in download service, and the like. Wherein the plug-in download service provides downloadable plug-ins to users.
The user may perform a downloading operation on a user interface of a multimedia application, such as a client, for example, an operation of downloading a certain video on a user interface of a video client. In this embodiment, the operation of downloading the resource by the user may be used as a trigger event of the resource downloading process, and when the trigger event is detected, the resource downloading process is created according to the trigger event.
When a resource downloading process is created, task parameters of the resource downloading process need to be determined, wherein the task parameters comprise the identification of a target service corresponding to the resource downloading process. The identification of the target service corresponding to the resource downloading process can be determined according to the resource downloading operation of the user (such as the position of the user for downloading operation on the user interaction interface of the client). The identification is used to identify the target service, which may be the ID of the target service. The service priority and the service speed limit value corresponding to the target service can be determined through the identification of the target service, or the type of the target service can be determined through the identification of the target service, so that the service priority and the service speed limit value corresponding to the type of service can be determined. After determining the service priority and the service speed limit value corresponding to the target service, the service priority and the service speed limit value corresponding to the target service can be used as priority information and the first speed limit value of the resource downloading process. In alternative embodiments, the task parameters may also include process creation time, information about the user performing the resource download operation (e.g., user account number), and so forth.
Step 202: determining a target downloading strategy matched with the target service from a plurality of preset downloading strategies according to the task parameters of the resource downloading process, wherein the target downloading strategy comprises the service priority and the service speed limit value of the target service; the service speed limit value is used for indicating the upper limit of the downloading speed of the target service.
In this step, different downloading policies may be configured in advance for different types of services, that is, different service priorities and service speed limit values may be configured for different types of services. The preconfigured download policy may be stored at the cloud server. The downloading policy may be stored in a downloading mapping table of the cloud server, where an ID of each service, a service priority of the service, and a service speed limit value are recorded in the downloading mapping table. The service priority is used to indicate the priority of the service. The traffic limit value is used to indicate an upper download speed limit for the traffic. The pre-configured downloading strategy can be dynamically configured, namely, the downloading strategy can be timely and flexibly adjusted according to the service requirement, so that the method is more practical, the downloading speed is more suitable, and the flexibility and the intelligence of the resource downloading control method in the embodiment of the invention are improved. In this embodiment, according to the identifier of the target service in the resource downloading process, the target downloading policy matched with the target service is determined.
Step 203: and taking the service priority of the target service as priority information of the resource downloading process, and taking the service speed limit value of the target service as a first speed limit value of the resource downloading process.
Step 204: under the condition that a plurality of resource downloading processes exist at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set.
Step 205: and the target resource downloading process controls the downloading speed of the resources to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process.
Step 204 to step 205 are the same as step 101 to step 102 shown in fig. 1, and the present invention is not repeated here.
In the embodiment shown in fig. 2, different service priorities and service speed limit values are configured for different services, so that the downloading requirements of different services can be met. Further, in other embodiments of the present invention, the task priority may be set on the basis of setting the service priority for the resource downloading process, that is, the priority information of the resource downloading process includes the service priority and the task priority. When comparing priority information, the plurality of resource downloading processes compare service priorities first, wherein the service priorities are the same-level resource downloading processes and compare task priorities, namely, the task priorities are compared only under the condition that the service priorities are the same level. The embodiment of the invention realizes finer granularity of regulating and controlling the downloading speed of the resource downloading process by setting the service priority and the task priority for the resource downloading process. For example, the task priority of the different resource downloading process may be set according to the emergency degree of the resource downloading process, the higher the emergency degree is, the higher the priority is, and the priority of the different process may also be set according to the type of the resource to be downloaded. By way of example, task priority may be identified by high, normal, low. The task priority of the resource downloading process can be flexibly set according to the application scene, and the invention is not limited herein. For example, for offline downloading service, since video is stored in the form of video slices at the server, the service is to download slice resources of the video sequentially when downloading video resources, so for the service, the priority of the resource downloading process of the video slice with the front playing order of the resource to be downloaded may be set to high, the priority of the resource downloading process of other video slices may be set to normal, the task priority of the resource downloading process with the picture type of the resource to be downloaded may be set to high, and the task priority of the resource downloading process with the video type of the resource to be downloaded may be set to normal or low.
In the embodiment of the invention, under the condition that the task priority of the resource downloading process is set, each resource downloading process has two layers of priorities: business priority and task priority, and the downloading speed of a plurality of resource downloading processes is regulated and controlled in a fine granularity through the two layers of priorities. Specifically, as shown in fig. 3, the process of adjusting the downloading speeds of the plurality of resource downloading processes according to the service priority and the task priority may include:
step 301: the target resource downloading process determines whether other resource downloading processes with service priority higher than the service priority exist according to the service priority of each other resource downloading process;
step 302: under the condition that other resource downloading processes with service priority higher than the service priority exist, the target resource downloading process updates the first speed limit value according to a preset first reduction ratio to obtain a third speed limit value; taking the third speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value;
step 303: under the condition that no other resource downloading process with service priority higher than the service priority exists, the target resource downloading process determines whether the other resource downloading process with the service priority same with the service priority exists or not;
Step 304: under the condition that the peer-level resource downloading process does not exist, the target resource downloading process does not limit the downloading speed of the resource to be downloaded;
step 305: under the condition that other resource downloading processes with the same service priority level as the service priority level exist, the target resource downloading process takes the other resource downloading processes with the same service priority level as the peer resource downloading process, and determines whether the peer resource downloading process with the task priority level higher than that of the target resource downloading process exists or not;
step 306: under the condition that the same-level resource downloading process with the task priority higher than the task priority exists, the target resource downloading process updates the first speed limit value according to a preset second reduction ratio to obtain a second speed limit value; taking the second speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value;
step 307: in the case that there is no peer resource downloading process with higher task priority than it, the target resource downloading process does not limit the downloading speed of the resource to be downloaded.
In the embodiment of the invention, under the condition that the priority information of the resource downloading process simultaneously comprises the service priority and the task priority, the target resource downloading process firstly judges the service priority of each resource downloading process, and if the service priority is higher than the resource downloading process of the target resource downloading process, the speed avoidance is carried out so as to ensure the downloading efficiency of the resource downloading process with high service priority and avoid preempting the width of the resource downloading process with high service priority; if no resource downloading process with higher service priority than the resource downloading process exists and the service priority and the resource downloading process with the same service priority are in the same level, judging whether the task priority is higher than the resource downloading process exists, and if the task priority is higher than the resource downloading process, performing speed avoidance so as to ensure the downloading efficiency of the resource downloading process with high task priority; if the service priority is higher than the resource downloading process of the target downloading process, and the resource downloading process with the service priority same with the service priority is not present, namely, the service priority of other resource downloading processes is lower than that of the target resource downloading process, the target downloading process resource does not limit the speed of downloading the resource to be downloaded. Based on the above, the following two cases are included when the speed of the target resource downloading process is avoided: first case: the business priority of other resource downloading processes is higher than that of the target resource downloading process (namely, the business emergency degree of other resource downloading processes is higher than that of the target resource downloading process); second case: the task priority of the peer resource downloading process is higher than that of the target resource downloading process (the peer resource downloading process refers to other resource downloading processes with the same service priority as that of the target resource downloading process, and the service emergency degree of the other resource downloading processes is the same as that of the target resource downloading process). The speed limit value of the target resource downloading process under the first condition is lower than the speed limit value under the second condition, namely the maximum downloading speed of the target resource downloading process under the first condition is lower than the maximum downloading speed under the second condition, so that the resource downloading process with high service priority has maximum downloading efficiency and bandwidth under the condition that the resource downloading process with high service priority exists; under the condition that resource downloading processes with the same service priority and different task priorities exist, the downloading efficiency of the resource downloading process with the low task priority is ensured under the condition that the downloading efficiency of the resource downloading process with the high task priority is ensured.
In an alternative embodiment, the task parameters of the resource downloading process further comprise a rating limit value of the resource downloading process, the rating limit value being used for indicating an upper limit of the downloading speed matching the rating of the user. The level limit may be determined by: acquiring account information of a user, determining the grade of the user according to the account information of the user, and determining a grade speed limit value matched with the grade of the user from a plurality of preconfigured grade speed limit values. In this embodiment, different level speed limit values may be set in advance for users of different levels, and the higher the level, the higher the level speed limit value, and the greater the upper limit of the download speed.
After determining the hierarchical speed limit values of the resource downloading processes, each resource downloading process has two speed limit values: traffic speed limit and grade speed limit. And each resource downloading process only needs one speed limit value finally, so that the final speed limit value needs to be determined from the service speed limit value and the grade speed limit value. For example, the smaller speed limit value of the service speed limit value and the grade speed limit value can be used as the first speed limit value of the resource downloading process. After the first speed limit value is determined, the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information of each other resource downloading process and the first speed limit value.
In an alternative embodiment, the task parameters of the resource downloading process further include a network speed limit value of the resource downloading process, where the network speed limit value is used to indicate an upper downloading speed limit that matches the current network state of the user. Wherein the network status is used to indicate the type of network and the bandwidth of the network. In this embodiment, different speed limit values may be set for different networks, where the larger the network bandwidth, the higher the speed limit value.
After determining the network speed limit value of the resource downloading process, the minimum speed limit value of the service speed limit value, the grade speed limit value and the network speed limit value can be used as the first speed limit value of the resource downloading process.
In an alternative embodiment, the method further comprises: and the target resource downloading process acquires the online playing state. The online playing state is used for indicating whether the current playing is smooth or not. The online playing state comprises two states of online playing fluency and online playing blocking. The target resource downloading process can communicate with the multimedia application software to acquire the online playing state of the multimedia application software. As an example, the multimedia application software is a video client, the target resource downloading process is a process of downloading a resource provided by the video client, and the target resource downloading process communicates with the video client to obtain an online playing state of the video client. In an alternative embodiment, the target resource downloading process may also directly communicate with a functional module responsible for online playing service to obtain an online playing state. For example, in the related art, the online playing service is generally downloaded and played at the same time, and then the downloading process of the target resource communicates with the downloading and playing process of the online playing service to obtain the online playing state.
After the target resource downloading process obtains the online playing state, the downloading speed of the resource to be downloaded can be controlled by combining the service priority, the task priority and the online playing state. Specifically, under the condition that the downloading speed of the resource to be downloaded is limited to the target speed limit value according to the service priority and the task priority by the target resource downloading process, whether the target speed limit value is updated or not is determined by the target resource downloading process according to the online playing state, if the target speed limit value is updated, the downloading speed of the resource to be downloaded is limited to the updated target speed limit value, and if the target speed limit value is not updated, the downloading speed of the resource to be downloaded is limited to the original target speed limit value. Further, under the condition that the online playing state is playing stuck, the target resource downloading process determines to update the target speed limit value, updates the target speed limit value according to the third reduction ratio to obtain a fourth speed limit value, and limits the downloading speed of the resource to be downloaded within the fourth speed limit value; and under the condition that the online playing state is smooth, the target resource downloading process determines not to update the target speed limit value, and limits the downloading speed of the resource to be downloaded within the original target speed limit value.
If the target resource downloading process determines that the downloading speed of the resource to be downloaded is not limited according to the service priority and the task priority, the target resource downloading process determines whether to limit the downloading speed of the resource to be downloaded according to the online playing state. Further, the target resource downloading process determines to limit the downloading speed of the resource to be downloaded under the condition that the online playing state is determined to be playing stuck, and updates the first speed limit value according to the fourth reduction ratio to obtain a fifth speed limit value, and limits the downloading speed of the resource to be downloaded within the fifth speed limit value; and the target resource downloading process determines not to limit the downloading speed of the resource to be downloaded under the condition that the online playing state is determined to be smooth.
In the embodiment of the invention, the downloading speed of the resources to be downloaded is controlled by the target resource downloading process in combination with the service priority, the task priority and the online playing state, and if the online playing state is the playing card section, the target resource downloading process limits the downloading speed and gives out the bandwidth to the online playing service, so that the online playing is kept in a smooth state, and the playing quality and the user experience are ensured.
In an alternative embodiment, the third reduction ratio and the fourth reduction ratio are determined according to the following procedure:
counting the number of blocking times in a preset period;
and updating a third reduction ratio and a fourth reduction ratio according to the jamming times, wherein the third reduction ratio and the fourth reduction ratio are positively correlated with the jamming times.
In this embodiment, the third reduction ratio and the fourth reduction ratio are both positively correlated with the number of jams, that is, the third reduction ratio and the fourth reduction ratio increase with the increase of the number of jams, and the more the number of jams, the smaller the target speed limit value of the target downloading process, and the target speed limit value is negatively correlated with the number of jams. The third reduction ratio and the fourth reduction ratio are real numbers within [0,1 ]. Taking the third reduction ratio a=0.1 as an example for illustration, if the online playing service is blocked multiple times in one period (for example, 5 minutes), the target resource downloading process adjusts the third reduction ratio as follows: entering a period when the first time of the clamping occurs, and updating a target speed limit value according to a preset third reduction ratio a, wherein the updated target speed limit value v' =v× (1-0.1) =0.9 v; the second time the jam occurs in this period, the third reduction ratio is increased, for example, from 0.1 to 0.2, the target speed limit value is updated according to the increased third reduction ratio, and the updated target speed limit value v "=v '× (1-0.2) =0.8 v' =0.72 v. Alternatively, when the target speed limit value is updated at the increased third reduction ratio, the updated target speed limit value v "=v× (1-0.2) =0.8 v.
In this embodiment, when the online playing state is that the playing is blocked, the downloading speed is adjusted according to the blocking times, and the larger the blocking times, the smaller the upper limit of the downloading speed is, so that more broadband is given to the online playing service, and the playing experience of the user is further optimized.
In an alternative embodiment, the resource downloading process may be an offline downloading process and a plug-in downloading process, where the offline downloading process is used for downloading multimedia resources such as video, pictures, text, etc. offline downloading refers to that a server replaces a computer user to download data to the server first and then downloads the data from the server to a personal computer. The plug-in download process is used to download various plug-in resources.
In order to make the resource download control method of the embodiment of the present invention clearer, the following description uses multimedia application software as a video client as an example. The video client is provided with a playing module, an offline module and a plug-in module. The playing module is used for providing an online playing service. The offline module is used for providing offline downloading service and creating an offline resource downloading process. The plug-in module is used for providing plug-in downloading service and creating plug-in downloading process. The playing module synchronizes the online playing state to the video client, and the video client synchronizes the online playing state to the offline module and the plug-in module. As shown in fig. 4, the resource download control method of this embodiment includes:
Step 401: the method comprises the steps that an offline module and a plug-in module of a video client side respectively establish a resource downloading process in response to resource downloading operation of a user, and task parameters of the resource downloading process are set. In this embodiment, the parameters of the resource downloading process include: the resource downloading process corresponds to the identification of the target service, the task priority, the grade speed limit value and the network speed limit value.
Wherein the identification of the target service is used to identify the target service. In this embodiment, the services may be divided into different types according to a certain rule on a service side (such as a service side of the multimedia application software) that provides the resource download service. In this embodiment, the services may be divided into an offline download service and a plug-in download service.
The task priority may be used to indicate the priority of the resource download process. The rating limit value is used to indicate an upper download speed limit that matches the rating of the user. The level limit may be determined by: acquiring account information of a user, determining the grade of the user according to the account information of the user, and determining a grade speed limit value matched with the grade of the user from a plurality of preconfigured grade speed limit values. In this embodiment, different level speed limit values may be set in advance for users of different levels, and the higher the level, the higher the level speed limit value. The network speed limit value is used for indicating the upper limit of the downloading speed matched with the current network state of the user. Wherein the network status is used to indicate the type of network and the bandwidth of the network. In this embodiment, different speed limit values may be set for different networks, where the larger the network bandwidth, the higher the speed limit value.
Step 402: each resource downloading process respectively initiates a request to a server so as to acquire a target downloading strategy matched with the target service from the server, wherein the target downloading strategy comprises a service priority and a service speed limit value of the target service; the service speed limit value is used for indicating the upper limit of the downloading speed of the target service.
In this step, different downloading policies may be configured in advance for different types of services, that is, different service priorities and service speed limit values may be configured for different types of services. The preconfigured download policy may be stored at the cloud server. The downloading policy may be stored in a downloading mapping table of the cloud server, where an ID of each service, a service priority of the service, and a service speed limit value are recorded in the downloading mapping table. The service priority is used to indicate the priority of the service. The traffic limit value is used to indicate an upper download speed limit for the traffic. The pre-configured downloading strategy can be dynamically configured, namely, can be timely and flexibly adjusted according to the service requirement. In this embodiment, according to the identifier of the target service in the resource downloading task, a target downloading policy matched with the target service is determined.
Step 403: and the server feeds back the service priority and the service speed limit value of the target service to each resource downloading process.
Step 404: the playing module sends an online playing state notification to the video client to synchronize the online playing state to the video client. The online playing state is used for indicating whether the current playing is smooth or not. The online playing state comprises two states of online playing fluency and online playing blocking.
Step 405: and the video client synchronizes the online playing state to each resource downloading process so that each resource downloading process obtains the online playing state.
Step 406: and the resource downloading processes communicate with each other to acquire task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value.
In the present embodiment, the priority information includes: business priority and task priority. The first speed limit value is the minimum speed limit value among the service speed limit value, the grade speed limit value and the network speed limit value.
Step 407: and each resource downloading process controls the downloading speed of the resources to be downloaded according to the acquired service priority, task priority, first speed limit value and online playing state of each other resource downloading process.
In the process of controlling the downloading speed of the resource to be downloaded according to the acquired service priority, task priority, first speed limit value and online playing state, the target resource downloading process can firstly judge the service priority, and then judge the task priority and the online playing state, and the method specifically can comprise the following cases:
(1) If the online playing state is smooth, the target resource downloading process updates the first speed limit value according to a preset first reduction ratio to obtain a third speed limit value; taking the third speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value;
(2) If the online playing state is playing card, the target resource downloading process updates the first speed limit value according to a preset first reduction ratio to obtain a third speed limit value; the third speed limit value is used as a target speed limit value, the target speed limit value is updated according to the third reduction ratio, a fourth speed limit value is obtained, and the downloading speed of the resource to be downloaded is limited in the fourth speed limit value;
(3) Other resource downloading processes with service priority higher than that of the target resource downloading process do not exist, and other resource downloading processes with service priority same with that of the target resource downloading process do not exist, namely, the service priority of the other resource downloading processes is lower than that of the target resource downloading process, and if the online playing state is smooth, the target resource downloading process does not limit the downloading speed of the resource to be downloaded;
(4) If the online playing state is playing blocking, the target resource downloading process updates the first speed limit value according to the fourth reduction ratio to obtain a fifth speed limit value, and the downloading speed of the resource to be downloaded is limited in the fifth speed limit value;
(5) The method comprises the steps that other resource downloading processes with service priority higher than that of a target resource downloading process do not exist, the service priority and the target resource downloading process are the same-level resource downloading process, the task priority is higher than that of the target resource downloading process, if the online playing state is smooth, the target resource downloading process updates a first speed limit value according to a preset second reduction ratio, and a second speed limit value is obtained; taking the second speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value;
(6) The method comprises the steps that other resource downloading processes with service priority higher than that of a target resource downloading process do not exist, the service priority and the target resource downloading process are the same-level peer resource downloading process, the task priority is higher than that of the target resource downloading process, if the online playing state is playing blocking, the target resource downloading process updates a first speed limit value according to a preset second reduction ratio, and a second speed limit value is obtained; the second speed limit value is used as a target speed limit value, the target speed limit value is updated according to the third reduction ratio, a fourth speed limit value is obtained, and the downloading speed of the resource to be downloaded is limited in the fourth speed limit value;
(7) The method comprises the steps that other resource downloading processes with service priority higher than that of a target resource downloading process do not exist, the service priority and the target resource downloading process are the same-level peer resource downloading process, the peer resource downloading process with task priority higher than that of the target resource downloading process does not exist, the online playing state is smooth in playing, and the target resource downloading process does not limit the downloading speed of the resource to be downloaded;
(8) And if no other resource downloading process with the service priority higher than the target resource downloading process exists, the service priority and the target resource downloading process are the same-level peer resource downloading process, the peer resource downloading process with the task priority higher than the target resource downloading process does not exist, the online playing state is playing blocking, the first speed limit value is updated according to the fourth reduction ratio, a fifth speed limit value is obtained, and the downloading speed of the resource to be downloaded is limited within the fifth speed limit value.
In this embodiment, steps 404-405 may be performed before steps 401-403, or may be performed after step 406, which is not limited in this regard.
According to the resource downloading control method, under the condition that a plurality of resource downloading processes exist at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, so that task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set; the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process, so that the downloading speed of each resource downloading process can be controlled by integrating the states of all the current resource downloading processes, the business service capability is improved, the downloading requirements of different businesses are met, and the user experience is improved.
Fig. 5 schematically illustrates a structural diagram of a resource download control apparatus 500 according to an embodiment of the present invention. The resource download control device 500 may be applied to a target resource download process, which may be any one of a set of resource download processes. As shown in fig. 5, the apparatus 500 includes:
The communication module 501 is configured to, when a plurality of resource downloading processes exist in the resource downloading process set at the same time, communicate with each other resource downloading process in the resource downloading process set, and obtain task information of each other resource downloading process, where the task information includes priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed when the resource downloading process downloads the resource to be downloaded;
and the speed avoiding module 502 controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process.
Optionally, the speed avoidance module is further configured to determine, according to the priority information of each of the other resource downloading processes, whether there is another resource downloading process with a priority higher than that of the target resource downloading process; if the first speed limit value is the target speed limit value, the downloading process of the target resource is controlled to limit the downloading speed of the resource to be downloaded within the target speed limit value; if the resource to be downloaded does not exist, the downloading speed of the resource to be downloaded is not limited by the downloading process of the control target resource.
Optionally, the apparatus further includes a task information determining module configured to: responding to a resource downloading operation of a user, creating a resource downloading process, and determining task parameters of the resource downloading process, wherein the task parameters comprise identifications of target businesses corresponding to the resource downloading process; determining a target downloading strategy matched with the target service from a plurality of preset downloading strategies according to the identification of the target service in the task parameters of the resource downloading process, wherein the target downloading strategy comprises the service priority and the service speed limit value of the target service; the service speed limit value is used for indicating the upper limit of the downloading speed of the target service; and taking the service priority as priority information of the resource downloading task and taking the service speed limit value as a first speed limit value of the resource downloading task.
Optionally, the task parameter further includes a task priority of the resource downloading process;
the task information determination module is further configured to: taking the service priority and the task priority as priority information of the resource downloading task;
the speed avoidance module is further configured to: determining whether other resource downloading processes with service priority higher than the service priority exist according to the service priority of each other resource downloading process;
Under the condition that no other resource downloading process with service priority higher than the service priority exists, determining whether other resource downloading process with service priority same with the service priority exists or not;
under the condition that other resource downloading processes with the same service priority level as the service priority level exist, the other resource downloading processes with the same service priority level as the service priority level are used as peer resource downloading processes, and whether peer resource downloading processes with the task priority level higher than that of the service priority level exist or not is determined;
under the condition that the same-level resource downloading process with the task priority higher than the task priority exists, updating the first speed limit value according to a preset second reduction ratio to obtain a second speed limit value; and taking the second speed limit value as a target speed limit value, and controlling a target resource downloading process to limit the downloading speed of the resource to be downloaded within the target speed limit value.
In an alternative embodiment, the speed avoidance module is further configured to: under the condition that other resource downloading processes with service priority higher than that of the other resource downloading processes exist, updating the first speed limit value according to a preset first reduction ratio to obtain a third speed limit value; taking the third speed limit value as a target speed limit value, and controlling a target resource downloading process to limit the downloading speed of the resource to be downloaded within the target speed limit value; wherein the third speed limit value is smaller than the second speed limit value; under the condition that the peer-level resource downloading process does not exist, controlling the target resource downloading process not to limit the downloading speed of the resource to be downloaded; and under the condition that the peer-level resource downloading process with the task priority higher than the peer-level resource downloading process does not exist, controlling the target resource downloading process not to limit the downloading speed of the resource to be downloaded.
Optionally, the task parameters further include: the resource downloading process comprises a grade speed limit value, wherein the grade speed limit value is used for indicating the upper limit of the downloading speed matched with the grade of the user;
the task information determination module is further configured to: and taking the smaller speed limit value of the service speed limit value and the grade speed limit value as a first speed limit value.
Optionally, the task parameters further include: the network speed limit value of the resource downloading process is used for indicating the upper limit of the downloading speed matched with the current network state of the user;
the task information determination module is further configured to: and taking the minimum speed limit value of the service speed limit value, the grade speed limit value and the network speed limit value as a first speed limit value.
Optionally, the communication module is further configured to: acquiring an online playing state;
the speed avoidance module is further configured to: under the condition that the downloading speed of the resource to be downloaded is controlled to be within the target speed limit value according to the priority information, determining whether to update the target speed limit value according to the online playing state, and controlling the downloading process of the target resource to limit the downloading speed of the resource to be downloaded to be within the updated target speed limit value under the condition of updating the target speed limit value; or under the condition that the downloading speed of the resource to be downloaded is not limited according to the priority information, determining whether the downloading speed of the resource to be downloaded is limited according to the online playing state.
Optionally, the speed avoidance module is further configured to: under the condition that the online playing state is determined to be playing stuck, determining an updated target speed limit value, updating the target speed limit value according to a third reduction ratio to obtain a fourth speed limit value, and controlling a target resource downloading process to limit the downloading speed of the resource to be downloaded within the fourth speed limit value; under the condition that the online playing state is smooth in playing, determining not to update the target speed limit value, and controlling the target resource downloading process to limit the downloading speed of the resources to be downloaded within the target speed limit value; or under the condition that the downloading speed of the resource to be downloaded is not limited according to the priority information and the online playing state is playing cartoon, determining to limit the downloading speed of the resource to be downloaded, updating the first speed limit value according to the fourth reduction ratio to obtain a fifth speed limit value, and controlling the downloading process of the target resource to limit the downloading speed of the resource to be downloaded within the fifth speed limit value; and under the conditions that the downloading speed of the resources to be downloaded is not limited according to the priority information and the online playing state is smooth in playing, controlling the downloading process of the target resources to not limit the downloading speed of the resources to be downloaded.
Optionally, the speed avoidance module is further configured to: counting the number of blocking times in a preset period; and updating the third reduction ratio and the fourth reduction ratio according to the jamming times, wherein the third reduction ratio and the fourth reduction ratio are positively correlated with the jamming times.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the methods provided in the embodiments of the present invention.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
under the condition that a plurality of resource downloading processes exist in the resource downloading process set at the same time, the target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set, task information of each other resource downloading process is obtained, and the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set;
And the target resource downloading process controls the downloading speed of the resources to be downloaded according to the acquired priority information and the first speed limit value of each other resource downloading process.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the resource download control method according to any of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the resource download control method as described in any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (13)

1. A resource download control method, comprising:
under the condition that a plurality of resource downloading processes exist in a resource downloading process set at the same time, a target resource downloading process is respectively communicated with each other resource downloading process in the resource downloading process set to acquire task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed of the resource downloading process when downloading the resource to be downloaded, and the target resource downloading process is any one resource downloading process in the resource downloading process set;
the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process;
the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process, and the method comprises the following steps:
The target resource downloading process determines whether other resource downloading processes with higher priority than the target resource downloading process exist according to the priority information of each other resource downloading process;
if the first speed limit value is the target speed limit value, the target resource downloading process takes the first speed limit value as the target speed limit value, and limits the downloading speed of the resource to be downloaded within the target speed limit value;
if not, the downloading speed of the resources to be downloaded is not limited by the target resource downloading process.
2. The method of claim 1, wherein the priority information and the first speed limit of a resource download process in the set of resource download processes are determined according to the following procedure:
responding to a resource downloading operation of a user, creating a resource downloading process, and determining task parameters of the resource downloading process, wherein the task parameters comprise identifications of target businesses corresponding to the resource downloading process;
determining a target downloading strategy matched with the target service from a plurality of preset downloading strategies according to the identification of the target service in the task parameters of the resource downloading process, wherein the target downloading strategy comprises the service priority and the service speed limit value of the target service; the service speed limit value is used for indicating the upper limit of the downloading speed of the target service;
And taking the service priority as priority information of the resource downloading process, and taking the service speed limit value as a first speed limit value of the resource downloading process.
3. The method of claim 2, wherein the task parameters further comprise a task priority of the resource download process;
the step of taking the service priority as the priority information of the resource downloading process comprises the following steps: taking the service priority and the task priority as priority information of the resource downloading process;
the target resource downloading process controls the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process, and the method comprises the following steps:
the target resource downloading process determines whether other resource downloading processes with service priority higher than the service priority exist according to the service priority of each other resource downloading process;
under the condition that no other resource downloading process with service priority higher than the service priority exists, the target resource downloading process determines whether the other resource downloading process with the service priority same with the service priority exists or not;
Under the condition that other resource downloading processes with the same service priority level as the service priority level exist, the target resource downloading process takes the other resource downloading processes with the same service priority level as the same level as the service priority level as the same level resource downloading process, and determines whether the same level resource downloading process with the task priority level higher than the task priority level exists or not;
under the condition that the same-level resource downloading process with higher task priority exists, the target resource downloading process updates the first speed limit value according to a preset second reduction ratio to obtain a second speed limit value; and taking the second speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value.
4. The method of claim 3, wherein the target resource downloading process controls a downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each of the other resource downloading processes, and further comprising:
under the condition that other resource downloading processes with service priority higher than the service priority exist, the target resource downloading process updates the first speed limit value according to a preset first reduction ratio to obtain a third speed limit value; taking the third speed limit value as a target speed limit value, and limiting the downloading speed of the resource to be downloaded within the target speed limit value; wherein the third speed limit value is smaller than the second speed limit value;
Under the condition that the peer-level resource downloading process does not exist, the target resource downloading process does not limit the downloading speed of the resource to be downloaded;
in the case that there is no peer resource downloading process with higher task priority than it, the target resource downloading process does not limit the downloading speed of the resource to be downloaded.
5. The method of claim 4, wherein the task parameters further comprise: the grade speed limit value of the resource downloading process is used for indicating the downloading speed upper limit matched with the grade of the user;
the first speed limit value is determined according to the following process: and taking the smaller speed limit value of the service speed limit value and the grade speed limit value as the first speed limit value.
6. The method of claim 5, wherein the task parameters further comprise: the network speed limit value of the resource downloading process is used for indicating the upper limit of the downloading speed matched with the current network state of the user;
the first speed limit value is determined according to the following process: and taking the minimum speed limit value among the service speed limit value, the grade speed limit value and the network speed limit value as the first speed limit value.
7. The method according to any one of claims 1-6, further comprising: the target resource downloading process obtains an online playing state;
the target resource downloading process limits the downloading speed of the resource to be downloaded within the target speed limit value, and comprises the following steps:
the target resource downloading process determines whether to update the target speed limit value according to the online playing state, and limits the downloading speed of the resource to be downloaded to the updated target speed limit value under the condition of updating the target speed limit value;
the target resource downloading process does not limit the downloading speed of the resource to be downloaded, and comprises the following steps: and the target resource downloading process determines whether to limit the downloading speed of the resource to be downloaded according to the online playing state.
8. The method according to claim 7, wherein the target resource downloading process determines whether to update the target speed limit value according to the online playing state, and limits the downloading speed of the resource to be downloaded to be within the updated target speed limit value if the target speed limit value is updated, including:
the target resource downloading process determines to update the target speed limit value under the condition that the online playing state is determined to be playing stuck, and updates the target speed limit value according to a third reduction ratio to obtain a fourth speed limit value, and limits the downloading speed of the resource to be downloaded to the fourth speed limit value; the target resource downloading process determines not to update the target speed limit value under the condition that the online playing state is smooth in playing, and limits the downloading speed of the resource to be downloaded within the target speed limit value;
The target resource downloading process determines whether to limit the downloading speed of the resource to be downloaded according to the online playing state, and the method comprises the following steps: the target resource downloading process determines to limit the downloading speed of the resource to be downloaded under the condition that the online playing state is determined to be playing stuck, updates the first speed limit value according to a fourth reduction ratio to obtain a fifth speed limit value, and limits the downloading speed of the resource to be downloaded within the fifth speed limit value; and the target resource downloading process determines not to limit the downloading speed of the resource to be downloaded under the condition that the online playing state is determined to be smooth in playing.
9. The method of claim 8, wherein the third reduction ratio and the fourth reduction ratio are determined according to the following procedure:
counting the number of blocking times in a preset period;
and updating the third reduction ratio and the fourth reduction ratio according to the jamming times, wherein the third reduction ratio and the fourth reduction ratio are positively correlated with the jamming times.
10. The method of claim 7, wherein the resource download process in the set of resource download processes comprises an offline download process and a plug-in download process.
11. A resource download control device, wherein the device is applied to a target resource download process, the target resource download process is any one resource download process in a resource download process set, and the device comprises:
the communication module is used for respectively communicating with each other resource downloading process in the resource downloading process set under the condition that a plurality of resource downloading processes exist in the resource downloading process set at the same time, and acquiring task information of each other resource downloading process, wherein the task information comprises priority information and a first speed limit value; the first speed limit value is used for indicating the maximum downloading speed when the resource downloading process downloads the resource to be downloaded;
the speed avoiding module is used for controlling the downloading speed of the resource to be downloaded according to the obtained priority information and the first speed limit value of each other resource downloading process;
the speed avoidance module is used for: determining whether other resource downloading processes with higher priority than the target resource downloading process exist according to the priority information of each other resource downloading process; if the first speed limit value exists, the first speed limit value is used as a target speed limit value, and the downloading speed of the resource to be downloaded is limited within the target speed limit value; if not, the downloading speed of the resources to be downloaded is not limited.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-10.
13. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-10.
CN202210971452.9A 2022-08-12 2022-08-12 Resource download control method, device, electronic equipment and computer readable medium Active CN115473806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210971452.9A CN115473806B (en) 2022-08-12 2022-08-12 Resource download control method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210971452.9A CN115473806B (en) 2022-08-12 2022-08-12 Resource download control method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN115473806A CN115473806A (en) 2022-12-13
CN115473806B true CN115473806B (en) 2023-09-26

Family

ID=84366365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210971452.9A Active CN115473806B (en) 2022-08-12 2022-08-12 Resource download control method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115473806B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383751A (en) * 2008-07-24 2009-03-11 四川长虹电器股份有限公司 Network downloading method
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
CN105159781A (en) * 2015-08-25 2015-12-16 广东欧珀移动通信有限公司 Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal
JP2016110510A (en) * 2014-12-09 2016-06-20 キヤノン株式会社 Information processor and information processing method
CN106604263A (en) * 2016-12-01 2017-04-26 钟苡苇 Downloading method and system based on mobile equipment
CN109101325A (en) * 2017-06-21 2018-12-28 杭州海康威视数字技术股份有限公司 A kind of method for scheduling task, device, system and electronic equipment
CN110300189A (en) * 2019-07-25 2019-10-01 北京达佳互联信息技术有限公司 A kind of resource downloading method, device and electronic equipment
CN110830565A (en) * 2019-10-31 2020-02-21 北京奇艺世纪科技有限公司 Resource downloading method, device, system, electronic equipment and storage medium
WO2021120375A1 (en) * 2019-12-19 2021-06-24 网宿科技股份有限公司 Method and apparatus for downloading resource file
CN113132463A (en) * 2021-03-17 2021-07-16 杭州当虹科技股份有限公司 Distributed large file fast downloading method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862065B (en) * 2018-12-06 2021-09-14 北京字节跳动网络技术有限公司 File downloading method and device and electronic equipment
US11102272B2 (en) * 2019-12-19 2021-08-24 Wangsu Science and Technology Co., Ltd. Method and device for downloading resource file

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383751A (en) * 2008-07-24 2009-03-11 四川长虹电器股份有限公司 Network downloading method
CN103368860A (en) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 Intelligent speed limiting method, device and system
JP2016110510A (en) * 2014-12-09 2016-06-20 キヤノン株式会社 Information processor and information processing method
CN105159781A (en) * 2015-08-25 2015-12-16 广东欧珀移动通信有限公司 Method and apparatus for adjusting network speed of application of intelligent terminal and intelligent terminal
CN106604263A (en) * 2016-12-01 2017-04-26 钟苡苇 Downloading method and system based on mobile equipment
CN109101325A (en) * 2017-06-21 2018-12-28 杭州海康威视数字技术股份有限公司 A kind of method for scheduling task, device, system and electronic equipment
CN110300189A (en) * 2019-07-25 2019-10-01 北京达佳互联信息技术有限公司 A kind of resource downloading method, device and electronic equipment
CN110830565A (en) * 2019-10-31 2020-02-21 北京奇艺世纪科技有限公司 Resource downloading method, device, system, electronic equipment and storage medium
WO2021120375A1 (en) * 2019-12-19 2021-06-24 网宿科技股份有限公司 Method and apparatus for downloading resource file
CN113132463A (en) * 2021-03-17 2021-07-16 杭州当虹科技股份有限公司 Distributed large file fast downloading method and system

Also Published As

Publication number Publication date
CN115473806A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
US11881994B2 (en) Application service configuration system
JP2015038745A (en) Wireless communication device having deterministic control of foreground access of user interface
US11916882B2 (en) Methods and apparatus for controlling and implementing firewalls
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN108683730B (en) Resource scheduling method, service server, client terminal, network system and medium
US11533226B2 (en) Application service configuration system
CN115473806B (en) Resource download control method, device, electronic equipment and computer readable medium
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN113382065A (en) File downloading method, device, system, equipment and storage medium
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
EP3807760B1 (en) Method for installing a virtual network function
CN114077483A (en) Data resource scheduling method, server, system and storage medium
WO2023088362A1 (en) Network traffic processing method and apparatus, and medium and electronic device
CN112291573B (en) Live stream pushing method and device, electronic equipment and computer readable medium
CN111479137B (en) Method and device for providing line address, server and storage medium
CN116032671B (en) Communication method and network system based on hybrid cloud
US20230171149A1 (en) Scalable notification delivery for networked computing environments
US11870672B2 (en) Self-election processes in managed subnets implementing modified swim protocols
CN114490066A (en) Method and device for dynamically adjusting large data cluster resources
CN111695148A (en) Network node self-learning security filtering method and device
CN117793107A (en) Distributed message consumption system, method and device
CN117527782A (en) File transmission method, device, electronic equipment and readable storage medium
CN117439984A (en) User login control method and device and related equipment
CN116708557A (en) Resource allocation method and device, electronic equipment and readable storage medium
CN112615876A (en) Method and device for live broadcasting in conference

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