File deployment method and content distribution network

By counting the used bandwidth of cache nodes and the back-to-source deployment coefficient in the content distribution network, and selecting appropriate target files for real-time deployment, the problem of back-to-source bandwidth fluctuations is solved, and the stability and service quality of the content distribution network are improved.

CN118740932AActive Publication Date: 2024-10-01SHUXING TECH (BEIJING) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411015427.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

When files are deployed in real time in existing content distribution networks, fluctuations in return-to-origin bandwidth lead to reduced cache node service stability and increased bandwidth costs, affecting service quality.

Method used

By counting the used bandwidth of the cache node and the back-to-source deployment coefficient, we determine the amount of file data to be deployed, select appropriate target files for real-time deployment, and accurately control the proportion of back-to-source bandwidth to avoid drastic fluctuations in the cache nodes.

Benefits of technology

It improves the stability and service quality of the content distribution network, reduces bandwidth costs, and ensures the efficiency and reliability of real-time deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740932A_ABST
    Figure CN118740932A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a file deployment method and a content distribution network, the file deployment method is applied to a scheduling unit of the content distribution network, the content distribution network further comprises at least one cache node, and the method comprises the following steps: counting the used bandwidth of the at least one cache node at the current moment; based on the used bandwidth and a back-to-source deployment coefficient, the data volume of the file to be deployed is determined, and the back-to-source deployment coefficient represents the relation between the total service bandwidth of at least one cache node and the back-to-source bandwidth; a target file reaching the data size of the file to be deployed is determined from multiple files of the content distribution network, and the target file is used for being deployed on at least one cache node. The back-to-source bandwidth proportion is accurately controlled, severe fluctuation of cache nodes is avoided, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the technical field of distributed networks, and more particularly to a file deployment method and a content distribution network. Background Art

[0002] With the development of distributed network technology, the Content Delivery Network (CDN), a distributed network service architecture, distributes content files to cache on multiple server nodes. When a client requests to access a content file, the CDN locates the client's request to the cache node, avoiding centralized access to the source node. This effectively controls the load balancing of the content distribution network, improves file access speed and availability, and enhances the reliability and security of the content distribution network.

[0003] At present, in order to ensure the cache hit rate of cache nodes in content distribution networks, it is necessary to deploy files in the content service network from source nodes to cache nodes in real time to complete real-time deployment. The more popular files are deployed in real time, the more conducive it is to improve the cache hit rate of cache nodes.

[0004] However, real-time deployment will generate back-to-source bandwidth between source nodes and cache nodes, which may affect the total service bandwidth of cache nodes in the content distribution network, especially during the peak period of external services, which will cause drastic fluctuations in cache nodes, reduce the stability of the content distribution network, increase bandwidth costs, and reduce the service quality of the content distribution network. Therefore, a high-stability, low-bandwidth cost file deployment method is urgently needed. Summary of the invention

[0005] In view of this, an embodiment of this specification provides a file deployment method. One or more embodiments of this specification also relate to another file deployment method, a file deployment device, another file deployment device, a content distribution network, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.

[0006] According to a first aspect of an embodiment of this specification, a file deployment method is provided, which is applied to a scheduling unit of a content distribution network, wherein the content distribution network further includes at least one cache node, and the method includes:

[0007] Count the bandwidth used by at least one cache node at the current moment;

[0008] Determine the amount of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth;

[0009] A target file having a data volume reaching the to-be-deployed file is determined from a plurality of files in a content distribution network, wherein the target file is used to be deployed on at least one cache node.

[0010] According to a second aspect of an embodiment of this specification, another file deployment method is provided, which is applied to a deployment unit of a content distribution network, wherein the content distribution network further includes a scheduling unit and at least one cache node, and the method includes:

[0011] Receive file information of a target file sent by a scheduling unit, wherein the target file is a file that reaches a data volume of a to-be-deployed file determined from a plurality of files in a content distribution network, the data volume of the to-be-deployed file is determined based on a used bandwidth of at least one cache node at a current moment and a back-to-source deployment coefficient, and the back-to-source deployment coefficient represents a relationship between a total service bandwidth of at least one cache node and a back-to-source bandwidth;

[0012] Based on the file information, the target file is deployed on at least one cache node.

[0013] According to a third aspect of an embodiment of this specification, a file deployment device is provided, which is applied to a scheduling unit of a content distribution network, wherein the content distribution network further includes at least one cache node, and the device includes:

[0014] A statistics module, configured to count the used bandwidth of at least one cache node at a current moment;

[0015] A data volume determination module is configured to determine the volume of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth;

[0016] The file determination module is configured to determine a target file having a data volume of a to-be-deployed file from a plurality of files in a content distribution network, wherein the target file is used to be deployed on at least one cache node.

[0017] According to a fourth aspect of an embodiment of this specification, another file deployment device is provided, which is applied to a deployment unit of a content distribution network, wherein the content distribution network further includes a scheduling unit and at least one cache node, and the device includes:

[0018] a receiving module configured to receive file information of a target file sent by a scheduling unit, wherein the target file is a file determined from a plurality of files in a content distribution network and reaches a data volume of the file to be deployed, the data volume of the file to be deployed is determined based on a used bandwidth of at least one cache node at a current moment and a back-to-source deployment coefficient, and the back-to-source deployment coefficient represents a relationship between a total service bandwidth of at least one cache node and a back-to-source bandwidth;

[0019] The deployment unit is configured to deploy the target file on at least one cache node based on the file information.

[0020] According to a fifth aspect of an embodiment of this specification, there is provided a content distribution network, including a scheduling unit, a deployment unit, and at least one cache node;

[0021] The scheduling unit is used to count the used bandwidth of at least one cache node at the current moment, determine the data volume of the file to be deployed based on the used bandwidth and the back-to-source deployment coefficient, determine a target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network, and send file information of the target file to the deployment unit, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth;

[0022] The deployment unit is used to receive the file information of the target file sent by the scheduling unit, and deploy the target file on at least one cache node based on the file information.

[0023] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:

[0024] Memory and processor;

[0025] The memory is used to store computer programs / instructions, and the processor is used to execute computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the above method are implemented.

[0026] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.

[0027] According to an eighth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0028] An embodiment of the present specification provides a file deployment method, which is applied to a scheduling unit of the entire content distribution network. The method takes into account the relationship between the total service bandwidth and the back-to-source bandwidth of the overall cache node in the content distribution network, determines the back-to-source deployment coefficient, and counts the used bandwidth of the overall cache node at the current moment in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the data volume of the file to be deployed is determined in real time. From multiple files in the content distribution network, a target file that reaches the data volume of the file to be deployed is determined, and the real-time deployment of the target file is completed. The back-to-source bandwidth ratio is accurately controlled, the drastic fluctuation of the cache node is avoided, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a flowchart of a file deployment method;

[0030] Figure 2 It is a structural diagram of a content distribution network;

[0031] Figure 3 is a flowchart of a file deployment method provided by an embodiment of this specification;

[0032] Figure 4 It is a flowchart of a file deployment method provided by an embodiment of this specification;

[0033] Figure 5 is a flowchart of another file deployment method provided by an embodiment of this specification;

[0034] Figure 6 is a flow chart of another file deployment method provided by an embodiment of this specification;

[0035] Figure 7 is a flowchart of a processing process of a file deployment method applied to audio and video files provided by an embodiment of this specification;

[0036] Figure 8 It is a structural diagram of a file deployment device provided by an embodiment of this specification;

[0037] Fig. 9 It is a structural schematic diagram of another file deployment device provided by an embodiment of this specification;

[0038] Fig.10 It is a structural diagram of a content distribution network provided by an embodiment of this specification;

[0039] Fig.11 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0040] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0041] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.

[0042] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present invention, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0043] In addition, it should be noted that the data involved in one or more embodiments of the present invention are information and data authorized by the user or fully authorized by all parties, and the statistics, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0044] First, the terms involved in one or more embodiments of this specification are explained.

[0045] Content distribution network: A distributed network service architecture that distributes content files to caches on multiple server nodes. When a client requests to access a content file, the content distribution network locates the client's request to the cache node to avoid centralized access to the source node. The content distribution network can be simplified into three modules: scheduling unit, cache node unit, and client. The scheduling unit can be further subdivided into sub-units such as gateway, node management, scheduling point selection, heat aggregation, deployment task generation, and file indexing according to its function.

[0046] Back to source: When a content file requested by a client is not cached on a cache node, the cache node needs to access the source node to request the content file.

[0047] Real-time deployment: In a content distribution network, the process of deploying content files from source nodes to cache nodes in real time so that the next time a client requests access, it can be directly obtained from the cache node, improving response speed and efficiency.

[0048] At present, in order to ensure the cache hit rate of the cache node in the content distribution network, the heat aggregation subunit needs to collect the heat of the files requested in the past heat cycle (usually 1-10 minutes, typical value 5 minutes) in real time (heat = number of file misses), and deploy the files with higher heat in the content service network from the source node to the cache node in real time to complete the real-time deployment. The more hot files deployed in real time, the more conducive it is to improve the cache hit rate of the cache node.

[0049] However, the real-time deployment from source nodes to cache nodes will generate back-to-source bandwidth, which may affect the total service bandwidth of cache nodes in the content distribution network, especially during the peak period of external services, which will cause drastic fluctuations in cache nodes, reduce the stability of the content distribution network, increase bandwidth costs, and reduce the service quality of the content distribution network.

[0050] Figure 1 A schematic diagram of a process of file deployment method is shown, such as Figure 1 As shown:

[0051] start.

[0052] According to the preset update frequency, the file heat of multiple files in the content distribution network in the last heat cycle is counted, and based on the file heat of each file, the multiple files are sorted to generate a file heat list. For example, according to the preset update frequency of once every 3 seconds, the number of file misses of multiple files in the content distribution network in the last 5-minute heat cycle is counted as the file heat, and the multiple files are sorted from large to small according to the file heat of each file to generate a file heat list.

[0053] Read the preset heat threshold of real-time deployment. For example, the heat threshold is preset with half an hour as the preset time frequency.

[0054] Traverse the file heat list and compare the current file heat with the preset real-time deployment heat threshold.

[0055] Whether the file temperature exceeds the temperature threshold.

[0056] If so, the file whose temperature exceeds the temperature threshold is determined as a target file, and the target file is deployed in real time on at least one cache node.

[0057] If not, end immediately.

[0058] Check whether the file heat list traversal is finished.

[0059] If so, end it immediately.

[0060] If not, return to execute the traversal file heat list and compare the current file heat with the preset real-time deployment heat threshold.

[0061] However, the above method has the following problems:

[0062] 1. The distribution of the number of file misses for each file within the preset update frequency will fluctuate dramatically, causing huge changes in file popularity, and it is not linearly related to the total bandwidth of external services, resulting in dramatic fluctuations in the amount of file data deployed in real time, and ultimately causing dramatic fluctuations in the back-to-source bandwidth.

[0063] 2. During a specific period of time (usually the peak period of external services, but the specific time is uncertain), the client will halve the range size of the HTTPRange request, which will cause a significant increase in the query rate per second (QPS) and the absolute value of the number of file misses, which will eventually lead to a significant increase in the number of files that trigger real-time deployment and a significant increase in the back-to-source bandwidth. In other words, external policy changes that are uncontrollable by the client will significantly affect the back-to-source bandwidth and bandwidth cost of the content distribution network.

[0064] Figure 2 A structural diagram of a content distribution network is shown, such as Figure 2 As shown:

[0065] The content distribution network includes a scheduling unit, a source node, at least one cache node and a client, wherein the at least one cache node includes cache node 1, cache node 2, ..., cache node N.

[0066] Based on the above problems, a file deployment method is provided in this specification. This specification also involves another file deployment method, a file deployment device, another file deployment device, a content distribution network, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0067] See also Figure 3 , Figure 3 A flowchart of a file deployment method provided by an embodiment of the present specification is shown. The method is applied to a scheduling unit of a content distribution network. The content distribution network also includes at least one cache node. The method includes the following specific steps:

[0068] Step 302: Count the bandwidth used by at least one cache node at the current moment.

[0069] The scheduling unit is one of the core components of the content distribution network. It is used to determine the target files that need to be deployed on the cache nodes. Optionally, the scheduling unit is also used to receive client access requests for content files and direct them to the corresponding cache nodes. The scheduling unit is subdivided into sub-units such as gateway, node management, scheduling point selection, heat aggregation, deployment task generation, and file indexing. For example, a client in a certain region (IP) requests to access a content file. The scheduling unit selects the nearest or most suitable cache node to respond to this access request based on factors such as geographic location and network conditions. If the content file is not pre-deployed on the selected cache node, the scheduling unit will trigger a real-time deployment operation.

[0070] The cache node is a server node in the cache node unit of the content distribution network that caches content files. It is used to cache content files with high file popularity and respond to client access requests for content files, thereby reducing direct access to the source node and avoiding load imbalance caused by the source node responding to a large number of access requests. For example, in a content distribution network, cache node 1, cache node 2...cache node N are located in different geographical locations, and each cache node caches content files with high file popularity. When a client requests to access a content file, the scheduling unit will select the cache node closest to the client to provide file access services.

[0071] The used bandwidth of the cache node at the current moment is the bandwidth that the cache node has used to process data traffic at the current moment. The used bandwidth of the cache node at the current moment reflects the uplink network load of the cache node at the current moment. The used bandwidth of the cache node at the current moment directly affects the response time of the cache node.

[0072] The used bandwidth of at least one cache node at the current moment is the total bandwidth of the overall cache nodes of the content distribution network that has been used to process data traffic at the current moment. The used bandwidth of at least one cache node at the current moment reflects the uplink network load of the overall cache nodes of the content distribution network at the current moment. The used bandwidth of at least one cache node at the current moment directly affects the response time of the overall cache node and the data traffic throughput of the entire content distribution network. For example, in a content distribution network, there are three cache nodes (cache node 1, cache node 2, cache node 3). At the current moment, the bandwidths used by these three cache nodes are 0.5 Gbps, 0.75 Gbps, and 1 Gbps, respectively. Then, the used bandwidth of at least one cache node at the current moment is 2.25 Gbps.

[0073] The count of the used bandwidth of at least one cache node at the current moment may be determined by directly counting the used bandwidth of each cache node at the current moment, or may be reversely determined by counting the available bandwidth of each cache node at the current moment, which is not limited here.

[0074] For example, a content distribution network of a certain content social platform includes a scheduling unit, 20 cache nodes, and source nodes storing popular audio and video files. On the scheduling unit, the used bandwidth of the 20 cache nodes at the current moment is monitored: 0.5Gbps, 0.7Gbps...1Gbps, and the TotalUpWidth of the used bandwidth of the 20 cache nodes at the current moment is 15Gbps.

[0075] The used bandwidth of the overall cache node at the current moment is counted in real time, providing a data basis for the subsequent real-time determination of the amount of file data to be deployed.

[0076] Step 304: Determine the amount of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth.

[0077] The back-to-source deployment coefficient is a quantitative coefficient that is quantified and characterizes the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth. The back-to-source deployment coefficient determines the ratio between the overall real-time deployed bandwidth and the total service bandwidth of the overall cache node at the current moment. The back-to-source deployment coefficient is used to control the content distribution network to dynamically adjust the bandwidth usage of real-time deployment, ensuring that the bandwidth of real-time deployment does not excessively occupy the total service bandwidth of the cache node, thereby avoiding affecting the normal service performance of the cache node. The back-to-source deployment coefficient can be automatically adjusted based on time, geographic location (such as provincial operators) and other factors. For example, there are three cache nodes in the content distribution network, the service bandwidth of each cache node is 5Gbps, the total service bandwidth of the three cache nodes is 15Gbps, and the theoretically allowed total back-to-source bandwidth is 1.5Gbps. Then the back-to-source deployment coefficient is set to 0.1 (ie 10%) to ensure that the normal service of the cache node is not affected.

[0078] The amount of data of files to be deployed is the total amount of data of content files that can be deployed from the source node to at least one cache node at the current moment. The amount of data of files to be deployed is a constraint condition for real-time deployment operations, ensuring that real-time deployment operations do not exceed the total service bandwidth limit of the cache node. The amount of data of files to be deployed can be adjusted dynamically to adapt to the load of cache nodes in different time periods. For example, if the amount of data of files to be deployed is set to 250MB, a total of 250MB of content files can be deployed at the current moment. Once it exceeds 250MB, real-time deployment will be restricted.

[0079] The total service bandwidth of a cache node is the total bandwidth used by a single cache node to process data traffic. For example, if the total service bandwidth of a cache node is 5 Gbps, it means that the cache node can transmit a maximum of 5 Gbps of data traffic at the same time.

[0080] The total service bandwidth of at least one cache node is the total bandwidth used by the entire cache node of the content distribution network to process data traffic. For example, the content distribution network includes three cache nodes, each of which has a total service bandwidth of 5 Gbps, and the total service bandwidth of the three cache nodes is 15 Gbps, which means that the entire cache node of the content distribution network can simultaneously transmit a maximum of 15 Gbps of data traffic.

[0081] The back-to-source bandwidth of a cache node is the bandwidth used by a single cache node to process data traffic to deploy files from the source node to the cache node. The back-to-source bandwidth of any cache node can be automatically adjusted based on time, geographic location (such as provincial operators), etc. For example, the service bandwidth of each cache node is 5Gbps, and the total back-to-source bandwidth theoretically allowed for each cache node is 0.5Gbps to ensure that the normal service of each cache node is not affected.

[0082] The back-to-source bandwidth of at least one cache node is the total bandwidth used by the overall cache node of the content distribution network to process data traffic to deploy files from the source node to the cache node. The back-to-source bandwidth of at least one cache node can be automatically adjusted based on time, geographical location (such as provincial operators), etc. For example, there are three cache nodes in the content distribution network, each with a service bandwidth of 5Gbps, and the total service bandwidth of the three cache nodes is 15Gbps. In theory, the total back-to-source bandwidth allowed on each cache node is 0.5Gbps, and the total back-to-source bandwidth allowed on the three cache nodes is 1.5Gbps, to ensure that the normal service of the overall cache node is not affected.

[0083] Before determining the amount of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, the method further includes: reading a predetermined back-to-source deployment coefficient.

[0084] Based on the used bandwidth and the back-to-source deployment coefficient, the amount of file data to be deployed is determined. An optional calculation formula is shown in Formula 1:

[0085] DeployTotalBytes=TotalUpWidth×DeployAlpha Formula 1

[0086] Among them, DeployTotalBytes represents the amount of file data to be deployed, TotalUpWidth represents the used bandwidth, and DeployAlpha represents the back-to-source deployment coefficient.

[0087] It should be noted that Formula 1 does not limit the method of determining the amount of file data to be deployed, and other calculation formulas for conventional transformations such as proportional transformation, increasing or decreasing constants, increasing or decreasing variables, and function transformation are also within the scope of protection of this application. For example, proportional transformation is shown in Formula 2:

[0088] DeployTotalBytes=A× (TotalUpWidth×DeployAlpha) Formula 2

[0089] Where A is a constant.

[0090] For another example, the transformation of increasing or decreasing constants is shown in Formula 3:

[0091] DeployTotalBytes=TotalUpWidth×DeployAlpha±B Formula 3

[0092] Where B is a constant.

[0093] For another example, the transformation of increasing and decreasing variables is shown in Formula 4:

[0094] DeployTotalBytes=TotalUpWidth×DeployAlpha±F(TotalUpWidth, DeployAlpha)

[0095] Formula 4

[0096] Among them, F (TotalUpWidth, DeployAlpha) represents the conventional function transformation of the used bandwidth and / or the back-to-source deployment coefficient.

[0097] DeployTotalBytes=F(TotalUpWidth×DeployAlpha) Formula 5

[0098] Wherein, F (TotalUpWidth×DeployAlpha) is a function transformation of the used bandwidth multiplied by the back-source deployment coefficient, for example, a trigonometric function, an exponential function, a logarithmic function, a power function, and the like.

[0099] Exemplarily, the predetermined back-to-source deployment coefficient DeployAlpha is read, and Formula 1 is used to determine the file data volume to be deployed DeployTotalBytes: 1.5GB based on statistics of the used bandwidth TotalUpWidth of 20 cache nodes at the current moment: 15Gbps and the back-to-source deployment coefficient DeployAlpha: 0.1.

[0100] The relationship between the total service bandwidth and the back-to-source bandwidth of the overall cache node in the content distribution network is taken into consideration, and the back-to-source deployment coefficient is determined. The used bandwidth of the overall cache node at the current moment is counted in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the amount of file data to be deployed is determined in real time, providing constraint support for the subsequent precise control of the back-to-source bandwidth ratio.

[0101] Step 306: Determine a target file having a data volume that reaches the to-be-deployed file from a plurality of files in the content distribution network, wherein the target file is used to be deployed on at least one cache node.

[0102] The multiple files of the content distribution network are multiple content files that can be accessed by clients in the content distribution network. These files include but are not limited to various types of content such as text, pictures, audio, video, etc. Files can be static (for example, web pages, pictures, etc.) or dynamically generated (for example, streaming videos). Files may already exist on certain cache nodes or may only exist on source nodes. For example, on a video sharing platform, all videos, pictures and other media files uploaded by users constitute multiple content files of the content distribution network.

[0103] The target file is a content file that needs to be deployed in real time at present, and needs to be deployed from the source node to at least one cache node. The target file can be one content file or multiple content files, which is not limited here. The selection of the target file can be based on the file heat (i.e., the number of file misses) of multiple files in the content distribution network. For example, from multiple files in the content distribution network, the target file with the highest file heat and the data volume of the file to be deployed is determined. The selection of the target file can also be based on the file size of multiple files in the content distribution network. For example, from multiple files in the content distribution network, the target file with the largest file size and the data volume of the file to be deployed is determined. The selection of the target file can also be based on the file type of multiple files in the content distribution network. For example, from multiple files in the content distribution network, a target file of a specific file type and the data volume of the file to be deployed is determined. The selection of the target file can also be based on the user behavior prediction of the client. For example, from multiple files in the content distribution network, based on the user behavior prediction of the client, the target file that reaches the data volume of the file to be deployed is determined. The selection of the target file can also be based on the geographic location information of the client and at least one cache node. For example, from multiple files in the content distribution network, based on the geographic location information of the client and at least one cache node in a specific area, a target file that reaches the data volume of the file to be deployed is determined.

[0104] Determining the target file that reaches the data volume of the files to be deployed can be done in one go. For example, 4 files are determined in one go. The file data volume of the 4 files reaches the data volume of the files to be deployed, and the 4 files are determined as the target files. Determining the target file that reaches the data volume of the files to be deployed can also be done in a cumulative manner. For example, first determine 1 file, the file data volume of the file does not reach the data volume of the files to be deployed, and then determine another file. The file data volume of the 2 files reaches the data volume of the files to be deployed, and the 2 files are determined as the target files.

[0105] For example, 300 target files with the highest file popularity and reaching the file data volume to be deployed DeployTotalBytes (1.5GB) are determined from 30,000 files in the content distribution network, and the deployment unit triggers in real time the deployment of the 300 target files from the source nodes to 20 cache nodes.

[0106] In the embodiments of the present specification, a scheduling unit applied to the entire content distribution network considers the relationship between the total service bandwidth of the overall cache node in the content distribution network and the back-to-source bandwidth, determines the back-to-source deployment coefficient, and counts the used bandwidth of the overall cache node at the current moment in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the data volume of the file to be deployed is determined in real time, and the target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network, and the real-time deployment of the target file is completed, and the back-to-source bandwidth ratio is accurately controlled, thereby avoiding drastic fluctuations in the cache node, improving the stability of the content distribution network, reducing bandwidth costs, and improving the service quality of the content distribution network.

[0107] In an optional embodiment of the present specification, before step 306, the following specific steps are also included:

[0108] Get the file popularity of multiple files in the content distribution network;

[0109] Correspondingly, step 306 includes the following specific steps:

[0110] Based on the file popularity of each file, a target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network.

[0111] The file heat of a file is the number of times the file misses in a specific time period, that is, the file is requested but cannot be accessed in the cache node, and needs to be retrieved from the source node. File heat reflects the probability of a file being requested for access. Generally speaking, the higher the file heat, the higher the probability that the file will be requested again in the future. Generally speaking, the lower the file heat, the lower the probability that the file will be requested again in the future. File heat is an indicator to measure the access request of content files in the content distribution network, and is used to determine which files should be deployed on the cache node first. File heat can be calculated by counting the number of file misses, which can be collected by the heat aggregation subunit. For example, in a 5-minute cycle, file A is requested 100 times, of which 20 times it cannot be accessed on the cache node, which means that the file heat of file A in this cycle is 20. File B is requested 200 times in the same cycle, of which 50 times it cannot be accessed on the cache node, then the file heat of file B is 50. The file heat of file B is higher than that of file A.

[0112] An optional way to obtain the file heat of multiple files in a content distribution network is to count the number of file misses of multiple files in the content distribution network to obtain the file heat of multiple files. The number of file misses of multiple files may be actively uploaded by at least one cache node or actively collected by a heat aggregation subunit, which is not limited here.

[0113] Based on the file popularity of each file, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network. An optional method is: based on the file popularity of each file, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network from high to low.

[0114] For example, the number of misses of 30,000 files in the content distribution network within a specific time period is counted to obtain the file heat of the 30,000 files. Based on the file heat of the 30,000 files, 300 target files that reach the file data volume to be deployed DeployTotalBytes (1.5GB) are determined from high to low, and the deployment unit triggers in real time to deploy the source nodes where the 300 target files are located to 20 cache nodes.

[0115] In the embodiments of this specification, by deploying high-heat files, the cache hit rate is improved and the back-to-source requests are reduced. The back-to-source bandwidth is reasonably allocated to avoid bandwidth waste during peak hours. Deploying high-heat files on cache nodes shortens the response time of access requests, provides faster content access speed, and improves the service quality of the content distribution network.

[0116] In an optional embodiment of the present specification, obtaining the file popularity of multiple files in a content distribution network according to a preset update frequency includes the following specific steps:

[0117] According to the preset update frequency, the file popularity of multiple files in the content distribution network in the previous popularity cycle is counted.

[0118] The preset update frequency is the time interval of real-time deployment in the content distribution network. The preset update frequency is the periodic time unit in which the content distribution network regularly checks and updates key indicators such as file popularity. For example, once every 3 seconds.

[0119] The heat cycle is a pre-set statistical cycle for counting file heat. The number of file misses for multiple files is counted during the heat cycle to evaluate the file heat. The determination of the heat cycle can be adjusted according to the needs of the actual application. A shorter heat cycle can reflect changes in file heat more quickly and is suitable for dealing with sudden hot events; while a longer heat cycle can better smooth short-term fluctuations and reduce the impact of noise, and is suitable for scenarios with higher stability. For example, the heat cycle can be set between 1 minute and 10 minutes, and the typical heat cycle is 5 minutes. This means that the system will count the number of file misses every 5 minutes and update the file heat of multiple files in the content distribution network accordingly.

[0120] According to a preset update frequency, the file heat of multiple files in the content distribution network in the previous heat cycle is counted. An optional method is: according to a preset update frequency, the number of file misses of multiple files in the content distribution network in the previous heat cycle is counted to obtain the file heat of multiple files.

[0121] Correspondingly, based on the used bandwidth and the back-to-source deployment coefficient, the amount of file data to be deployed is determined. An optional method is to determine the amount of file data to be deployed corresponding to the preset update frequency based on the used bandwidth and the back-to-source deployment coefficient.

[0122] For example, according to a preset update frequency (once every 3 seconds), the number of times that 30,000 files in the content distribution network are not hit in the last heat cycle (5 minutes) is counted to obtain the file heat of the 30,000 files.

[0123] In the embodiments of the present specification, by introducing a preset update frequency, the file heat of multiple files in the content distribution network is periodically obtained, and by setting a suitable heat period, the file heat of multiple files in the content distribution network is periodically obtained, which smooths the short-term fluctuations of file heat to a certain extent, reduces the abnormal changes in file heat due to random factors, and controls the back-to-source bandwidth ratio in real time, stably and accurately, avoids real-time and drastic fluctuations of cache nodes, improves the stability of the content distribution network, reduces real-time bandwidth costs, and improves the service quality of the content distribution network.

[0124] In an optional embodiment of the present specification, after obtaining the file popularity of multiple files in the content distribution network, the following specific steps are also included:

[0125] Based on the file popularity of each file, multiple files are sorted to generate a file popularity list;

[0126] Based on the popularity of each file, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network, including:

[0127] Based on the order of the file popularity list, a target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network.

[0128] The file heat list is a sequential list generated by sorting the file heat of multiple files in the content distribution network. The files recorded in the list are arranged from high to low according to the file heat. For example, in a content distribution network, there are four files: file A, file B, file C, and file D. The number of file misses in the last heat cycle (for example, 5 minutes) is 100, 200, 50, and 150 times respectively. Based on the file heat of each file, multiple files are sorted to generate a file heat list as shown in Table 1:

[0129] file name File miss count File popularity File B 200 200 File D 150 150 File A 100 100 File C 50 50

[0130] Table 1

[0131] Based on the order of the file popularity list, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network. An optional method is: based on the order of the file popularity list, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network from high to low.

[0132] Exemplarily, based on the file heat of 30,000 files, the 30,000 files are sorted to generate a file heat list L. Based on the order of the file heat list L, 300 target files that reach the file data volume to be deployed DeployTotalBytes (1.5GB) corresponding to the preset update frequency are determined from high to low, and the deployment unit triggers in real time to deploy the source nodes where the 300 target files are located to 20 cache nodes.

[0133] In the embodiments of the present specification, multiple files are sorted based on the file popularity of each file, and a file popularity list is dynamically generated. The file popularity list is used to control the back-to-source bandwidth ratio in real time, flexibly, and accurately, thereby avoiding real-time and drastic fluctuations of cache nodes, improving the stability of the content distribution network, reducing real-time bandwidth costs, and improving the service quality of the content distribution network.

[0134] In an optional embodiment of the present specification, before step 304, the following specific steps are also included:

[0135] Obtaining the total service bandwidth and back-to-source bandwidth of at least one cache node at a preset time interval;

[0136] Based on the relationship between the total service bandwidth and the back-to-source bandwidth, the back-to-source deployment coefficient is determined.

[0137] The preset time interval is a time period used to control the back-to-source bandwidth ratio in the content distribution network. The preset time interval can be set according to the needs of the actual application scenario to adapt to different patterns of network traffic, especially the difference between the peak period and the off-peak period of external services. The preset time interval is used to automatically adjust the back-to-source deployment coefficient according to different time periods to optimize the use of the back-to-source bandwidth. For example, during the peak period of external services, the back-to-source deployment coefficient may be reduced to reduce the use of the back-to-source bandwidth and avoid affecting the normal service performance of the cache node; while during the off-peak period of external services, the back-to-source deployment coefficient can be appropriately increased to use more bandwidth for real-time back-to-source deployment of files. For example, the back-to-source deployment coefficient is set to different values ​​at a half-hour granularity to distinguish between the peak period of external services and the off-peak period of external services, so as to facilitate the reduction of the back-to-source bandwidth during the peak period of external services and the relaxation of the back-to-source bandwidth during the off-peak period of external services.

[0138] Based on the relationship between the total service bandwidth and the back-to-source bandwidth, the back-to-source deployment coefficient is determined. An optional method is to determine the back-to-source deployment coefficient based on the ratio between the total service bandwidth and the back-to-source bandwidth.

[0139] Exemplarily, at a preset time interval (half an hour), the total service bandwidth and the back-to-source bandwidth of 20 cache nodes are obtained, and based on the ratio between the total service bandwidth and the back-to-source bandwidth, the back-to-source deployment coefficient DeployTotalBytes is determined.

[0140] In the embodiments of the present specification, the back-to-source deployment coefficient is determined according to the preset time interval, which effectively distinguishes the real-time deployment requirements at different time intervals. This helps to maintain the stable operation of the cache node, reduce the drastic fluctuations of the cache node during the peak period of external services, improve the stability of the content distribution network, reduce bandwidth costs, and improve the service quality of the content distribution network.

[0141] In an optional embodiment of this specification, step 306 includes the following specific steps:

[0142] Obtaining a first file from a plurality of files in a content distribution network and determining the first file as a target file;

[0143] Identify whether the file data volume of the target file reaches the file data volume to be deployed;

[0144] If not, obtain a second file from multiple files in the content distribution network, determine that the second file is the target file, return to the step of identifying whether the file data volume of the target file reaches the data volume of the file to be deployed, and if so, determine the target file that reaches the data volume of the file to be deployed.

[0145] The first file is a content file that is first selected in the process of determining the data volume of the file to be deployed, and is used to check whether its file data volume meets the requirements of the data volume of the file to be deployed. The first file is selected from multiple files in the content distribution network, and the selection basis can be file popularity, file size, file type or other relevant factors. For example, the data volume of the file to be deployed is 1.5GB, and the first file with the highest file popularity is selected from the 30,000 files in the content distribution network, and its file size is 100MB, then this file is the first file. Since its file data volume does not reach the data volume of the file to be deployed, it is necessary to continue to accumulate the data volume of other files.

[0146] The second file is the next content file selected from multiple files in the content distribution network when the first file fails to meet the data volume of the files to be deployed. The selection of the second file is similar to that of the first file, and is also based on factors such as file popularity, file size, and file type. It is used to further accumulate the file data volume until the file data volume to be deployed is reached. For example, after the first file, another file with higher file popularity is selected, and its file size is 200MB, then this file is the second file. At this time, the total file data volume of the first file and the second file is 300MB, which still does not reach the 1.5GB file data volume to be deployed, so it is necessary to continue to accumulate more file data.

[0147] Exemplarily, a first file is obtained from 30,000 files in a content distribution network and is determined to be a target file, the file data volume of the first file is 1 GB, and it is identified that the file data volume of the target file does not reach the data volume of files to be deployed DeployTotalBytes (1.5 GB); a second file is obtained from 29,999 files in the content distribution network, the file data volume of the second file is 600 MB, and the second file is determined to be a target file, and in order to return to the step of identifying that the file data volume of the target file reaches the data volume of files to be deployed, a target file that reaches the data volume of files to be deployed is determined.

[0148] In the embodiments of this specification, the back-to-source bandwidth is effectively controlled in an accumulation manner, unnecessary file deployment is avoided in a timely manner, sudden and drastic fluctuations in cache nodes are avoided, the pressure on source nodes is reduced, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved.

[0149] In an optional embodiment of the present specification, the content distribution network further includes a deployment unit;

[0150] Correspondingly, after step 306, the following specific steps are also included:

[0151] The file information of the target file is sent to the deployment unit, so that the deployment unit deploys the target file on at least one cache node based on the file information.

[0152] The deployment unit is one of the core components of the content distribution network, which is used to deploy files from the source node to the cache node. The deployment unit is one of the key links in achieving content distribution, ensuring that the cache node caches the latest and hottest content files to improve the cache hit rate and reduce back-to-source requests.

[0153] The file information of the target file includes metadata information such as file ID, file size, and file path, which is used to enable the deployment unit to obtain the target file from the source node, determine the appropriate cache node for the target file, and deploy the target file on the cache node. For example, the file information of the target file includes: file ID: the unique identifier of the file FILE12345; file size: the actual size of the file 5MB; file path: the full path of the file on the source node / content / videos / FILE12345.mp4.

[0154] For example, a content distribution network of a certain content social platform further includes a deployment unit. Metadata information such as file ID, file size, and file path of 300 target files is sent to the deployment unit, so that the deployment unit deploys the target files on 20 cache nodes based on the metadata information.

[0155] In the embodiments of this specification, real-time deployment is triggered by sending file information of the target file to the deployment unit, thereby achieving real-time deployment accurately and precisely.

[0156] Figure 4 A schematic diagram of a file deployment method provided by an embodiment of this specification is shown. Figure 4 As shown:

[0157] start.

[0158] According to the preset update frequency, the file heat of multiple files in the content distribution network in the last heat cycle is counted, and based on the file heat of each file, the multiple files are sorted to generate a file heat list. For example, according to the preset update frequency of once every 3 seconds, the number of file misses of multiple files in the content distribution network in the last 5-minute heat cycle is counted as the file heat, and the multiple files are sorted from large to small according to the file heat of each file to generate a file heat list.

[0159] Statistics on the bandwidth used by at least one cache node at the current moment.

[0160] Read the predetermined back-to-source deployment coefficient. For example, the back-to-source deployment coefficient is predetermined with half an hour as the preset time frequency.

[0161] The amount of file data to be deployed is determined based on the used bandwidth and the back-to-source deployment coefficient. For example, the amount of file data to be deployed is the amount of file data that can be deployed at most in the sending cycle corresponding to the current preset update frequency.

[0162] The file heat of each file in the file heat list is traversed, and a target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network. For example, the data volume of the file to be deployed is a termination condition for traversing the file heat list.

[0163] The file information of the target file is sent to the deployment unit, so that the deployment unit deploys the target file on at least one cache node based on the file information.

[0164] Finish.

[0165] See also Figure 5 , Figure 5 A flowchart of another file deployment method provided by an embodiment of the present specification is shown. The method is applied to a deployment unit of a content distribution network. The content distribution network also includes a scheduling unit and at least one cache node. The method includes the following specific steps:

[0166] Step 502: Receive file information of a target file sent by a scheduling unit, wherein the target file is a file determined from multiple files in a content distribution network to reach a data volume of the file to be deployed, and the data volume of the file to be deployed is determined based on a used bandwidth of at least one cache node at a current moment and a back-to-source deployment coefficient, and the back-to-source deployment coefficient represents a relationship between a total service bandwidth of at least one cache node and a back-to-source bandwidth.

[0167] Step 504: Deploy the target file on at least one cache node based on the file information.

[0168] Based on the file information, the target file is deployed on at least one cache node. An optional manner is: based on the file information, the target file is deployed from the source node to at least one cache node.

[0169] For example, a content distribution network of a certain content social platform includes a deployment unit, a scheduling unit, 20 cache nodes, and a source node storing popular audio and video files. The deployment unit receives metadata information such as file ID, file size, and file path of 300 target files sent by the scheduling unit, and deploys the 300 target files from the source node to the 20 cache nodes based on the metadata information.

[0170] The technical solution of the embodiment of this specification is different from the above Figure 3 The technical solutions of the embodiments of the specification of the present invention belong to the same concept. For details not described in detail in the embodiments of the present specification, please refer to the above Figure 3 Description of the technical solution of the embodiment of the specification.

[0171] In the embodiments of the present specification, the relationship between the total service bandwidth of the overall cache node in the content distribution network and the back-to-source bandwidth is considered in advance on the scheduling unit of the entire content distribution network, and the back-to-source deployment coefficient is determined. The used bandwidth of the overall cache node at the current moment is counted in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the data volume of the file to be deployed is determined in real time, and the target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network. On the deployment unit of the content distribution network, file information of the target file sent by the scheduling unit is received, and based on the file information, the real-time deployment of the target file is completed on at least one cache node, the back-to-source bandwidth ratio is accurately controlled, the drastic fluctuation of the cache node is avoided, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved.

[0172] In an optional embodiment of the present specification, the content distribution network further includes a source node;

[0173] Correspondingly, step 504 includes the following specific steps:

[0174] Based on the file information, obtain the target file from the source node;

[0175] Deploy the target file to at least one cache node.

[0176] Exemplarily, based on metadata information such as file IDs, file sizes, and file paths of the 300 target files, 300 target files are obtained from the source node, and the 300 target files are deployed to 20 cache nodes.

[0177] In the embodiments of this specification, the target file is obtained from the source node based on the file information of the target file and deployed on at least one cache node, thereby realizing centralized management of files on the source node and automatically deploying them to each cache node, reducing the complexity of cache file management.

[0178] The technical solution of the embodiment of this specification is different from the above Figure 3 The technical solutions of the embodiments of the specification of the present invention belong to the same concept. For details not described in detail in the embodiments of the present specification, please refer to the above Figure 3 Description of the technical solution of the embodiment of the specification.

[0179] Figure 6 FIG. 1 shows a flow chart of another file deployment method provided by an embodiment of the present specification, such as Figure 6 As shown:

[0180] On the scheduling unit, statistics are collected on the bandwidth used by at least one cache node at the current moment.

[0181] On the scheduling unit, the data volume of the file to be deployed is determined based on the used bandwidth and the back-to-source deployment coefficient, and a target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network.

[0182] On the scheduling unit, the file information of the target file is sent to the deployment unit.

[0183] On the deployment unit, the target file is deployed on at least one cache node based on the file information.

[0184] On the client, send an access request to the cache node.

[0185] On the client, receive the target file fed back by the cache node.

[0186] The following combination Figure 7 , taking the application of the file deployment method provided in this specification to audio and video files as an example, the above file deployment method is further explained. Figure 7A flowchart of a processing process of a file deployment method for audio and video files provided by an embodiment of the present specification is shown. The method is applied to a scheduling unit of a content distribution network of a content social platform. The content distribution network also includes a deployment unit, a source node storing audio and video files, and 100 cache nodes for caching audio and video files, including the following specific steps:

[0187] Step 702: Obtain the total service bandwidth and back-to-source bandwidth of 100 cache nodes at preset half-hour intervals.

[0188] Step 704: Based on the relationship between the total service bandwidth of the 100 cache nodes and the back-to-source bandwidth, determine the back-to-source deployment coefficient for each time interval.

[0189] Step 706: According to the preset update frequency of once every 3 seconds, the file popularity of 80,000 audio and video files in the content distribution network in the last 5-minute popularity period is counted.

[0190] Step 708: Based on the file heat of the 80,000 audio and video files, the 80,000 audio and video files are sorted to generate a file heat list.

[0191] Step 710: Count the bandwidth used by 100 cache nodes at the current moment.

[0192] Step 712: Read the back-to-source deployment coefficient of the time interval at the current moment.

[0193] Step 714: Based on the used bandwidth and the back-to-source deployment coefficient, determine the amount of file data to be deployed in the period corresponding to the preset update frequency.

[0194] Step 716: Based on the order of the file popularity list, 400 target audio and video files that reach the data volume of the files to be deployed are determined from the 80,000 audio and video files.

[0195] Step 718: Send the file information of the 400 target audio and video files to the deployment unit, so that the deployment unit deploys the 400 target audio and video files on the 100 cache nodes based on the file information.

[0196] In the embodiments of this specification, it is possible to achieve that the back-to-source bandwidth is only linearly proportional to the real-time external total bandwidth of the cache node while the back-to-source deployment coefficient is configured to remain unchanged, thereby accurately controlling the back-to-source bandwidth ratio within the period corresponding to the preset update frequency. It can effectively prevent uncontrollable external policy changes such as halving the range of the client's HTTP Range request from having a significant impact on the back-to-source bandwidth and cost. Under the premise that the cache cleaning algorithm accurately cleans the lowest-heat files, it minimizes the occupancy of server node resources such as CPU, memory, and disk IO, thereby reducing the impact on the performance of the deployment unit and the external service unit, effectively avoiding drastic fluctuations in the cache nodes, improving the stability of the content distribution network, reducing bandwidth costs, and improving the service quality of the content distribution network.

[0197] Corresponding to the above method embodiment, this specification also provides a file deployment device embodiment, Figure 8 FIG. 1 shows a schematic diagram of the structure of a file deployment device provided by an embodiment of the present specification. Figure 8 As shown, the device is applied to a scheduling unit of a content distribution network, the content distribution network also includes at least one cache node, and the device includes:

[0198] A statistics module 802 is configured to count the used bandwidth of at least one cache node at a current moment;

[0199] The data volume determination module 804 is configured to determine the data volume of the file to be deployed based on the used bandwidth and the back-to-source deployment coefficient, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth;

[0200] The file determination module 806 is configured to determine a target file having a data volume of a file to be deployed from a plurality of files in the content distribution network, wherein the target file is used to be deployed on at least one cache node.

[0201] Optionally, the device further comprises: a file heat acquisition module configured to acquire file heats of a plurality of files in the content distribution network;

[0202] Correspondingly, the file determination module 806 is further configured to determine, based on the file popularity of each file, a target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network.

[0203] Optionally, the file heat acquisition module is further configured to: count the file heats of multiple files in the content distribution network in the last heat cycle according to a preset update frequency.

[0204] Optionally, the device further comprises: a list generating module configured to sort the plurality of files based on the file heat of each file and generate a file heat list;

[0205] Correspondingly, the file determination module 806 is further configured to determine, based on the order of the file popularity list, a target file that reaches the data volume of the file to be deployed from the multiple files in the content distribution network.

[0206] Optionally, the device also includes: a coefficient determination module, configured to obtain the total service bandwidth and the back-to-source bandwidth of at least one cache node at a preset time interval; and determine the back-to-source deployment coefficient based on the relationship between the total service bandwidth and the back-to-source bandwidth.

[0207] Optionally, the file determination module 806 is further configured to: obtain a first file from multiple files in the content distribution network and determine that the first file is a target file; identify whether the file data volume of the target file reaches the data volume of the file to be deployed; if not, obtain a second file from multiple files in the content distribution network and determine that the second file is the target file, return to the step of identifying whether the file data volume of the target file reaches the data volume of the file to be deployed, and if so, determine the target file that reaches the data volume of the file to be deployed.

[0208] Optionally, the content distribution network further comprises a deployment unit;

[0209] Correspondingly, the device further includes: an information sending module configured to send file information of the target file to the deployment unit, so that the deployment unit deploys the target file on at least one cache node based on the file information.

[0210] In the embodiments of the present specification, a scheduling unit applied to the entire content distribution network considers the relationship between the total service bandwidth of the overall cache node in the content distribution network and the back-to-source bandwidth, determines the back-to-source deployment coefficient, and counts the used bandwidth of the overall cache node at the current moment in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the data volume of the file to be deployed is determined in real time, and the target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network, and the real-time deployment of the target file is completed, and the back-to-source bandwidth ratio is accurately controlled, thereby avoiding drastic fluctuations in the cache node, improving the stability of the content distribution network, reducing bandwidth costs, and improving the service quality of the content distribution network.

[0211] The above is a schematic scheme of a file deployment device of this embodiment. It should be noted that the technical scheme of the file deployment device and the technical scheme of the above file deployment method belong to the same concept, and the details not described in detail in the technical scheme of the file deployment device can be referred to the description of the technical scheme of the above file deployment method.

[0212] Corresponding to the above method embodiment, this specification also provides a file deployment device embodiment, Fig. 9FIG. 2 shows a schematic diagram of the structure of another file deployment device provided by an embodiment of the present specification. Fig. 9 As shown, the device is applied to a deployment unit of a content distribution network, the content distribution network further includes a scheduling unit and at least one cache node, and the device includes:

[0213] The receiving module 902 is configured to receive file information of a target file sent by a scheduling unit, wherein the target file is a file that reaches the data volume of the file to be deployed determined from multiple files in a content distribution network, and the data volume of the file to be deployed is determined based on the used bandwidth of at least one cache node at a current moment and a back-to-source deployment coefficient, and the back-to-source deployment coefficient represents the relationship between the total service bandwidth of at least one cache node and the back-to-source bandwidth;

[0214] The deployment module 904 is configured to deploy the target file on at least one cache node based on the file information.

[0215] Optionally, the content distribution network further includes a source node;

[0216] Correspondingly, the deployment module 904 is further configured to: obtain the target file from the source node based on the file information; and deploy the target file to at least one cache node.

[0217] In the embodiments of the present specification, the relationship between the total service bandwidth of the overall cache node in the content distribution network and the back-to-source bandwidth is considered in advance on the scheduling unit of the entire content distribution network, and the back-to-source deployment coefficient is determined. The used bandwidth of the overall cache node at the current moment is counted in real time. Based on the used bandwidth and the back-to-source deployment coefficient, the data volume of the file to be deployed is determined in real time, and the target file that reaches the data volume of the file to be deployed is determined from multiple files in the content distribution network. On the deployment unit of the content distribution network, file information of the target file sent by the scheduling unit is received, and based on the file information, the real-time deployment of the target file is completed on at least one cache node, the back-to-source bandwidth ratio is accurately controlled, the drastic fluctuation of the cache node is avoided, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved.

[0218] The above is a schematic scheme of another file deployment device of this embodiment. It should be noted that the technical scheme of the file deployment device and the technical scheme of the above file deployment method belong to the same concept, and the details not described in detail in the technical scheme of the file deployment device can be referred to the description of the technical scheme of the above file deployment method.

[0219] Corresponding to the above method embodiment, this specification also provides a content distribution network embodiment, Fig.10 FIG. 1 shows a schematic diagram of a content distribution network structure provided by an embodiment of the present specification. Fig.10As shown, the content distribution network includes a scheduling unit 1002, a deployment unit 1004 and at least one cache node 1006;

[0220] The scheduling unit 1002 is used to count the used bandwidth of at least one cache node 1006 at the current moment, determine the data volume of the file to be deployed based on the used bandwidth and the back-to-source deployment coefficient, determine the target file that reaches the data volume of the file to be deployed from multiple files in the content distribution network, and send the file information of the target file to the deployment unit 1004, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of the at least one cache node 1006 and the back-to-source bandwidth;

[0221] The deployment unit 1004 is configured to receive file information of a target file sent by the scheduling unit 1002 , and deploy the target file on at least one cache node 1006 based on the file information.

[0222] In the embodiments of the present specification, on the scheduling unit of the entire content distribution network, the relationship between the total service bandwidth of the overall cache node in the content distribution network and the back-to-source bandwidth is considered, the back-to-source deployment coefficient is determined, the used bandwidth of the overall cache node at the current moment is counted in real time, and the amount of file data to be deployed is determined in real time based on the used bandwidth and the back-to-source deployment coefficient, and the target file that reaches the amount of file data to be deployed is determined from multiple files in the content distribution network, and the file information of the target file sent by the scheduling unit is received on the deployment unit of the content distribution network, and based on the file information, the real-time deployment of the target file is completed on at least one cache node, the back-to-source bandwidth ratio is accurately controlled, the drastic fluctuation of the cache node is avoided, the stability of the content distribution network is improved, the bandwidth cost is reduced, and the service quality of the content distribution network is improved.

[0223] The above is a schematic solution of a content distribution network of this embodiment. It should be noted that the technical solution of the content distribution network and the technical solution of the above-mentioned file deployment method belong to the same concept, and the details not described in detail in the technical solution of the content distribution network can be referred to the description of the technical solution of the above-mentioned file deployment method.

[0224] Fig.11 The structure block diagram of a computing device provided by an embodiment of the present specification is shown. The components of the computing device 1100 include but are not limited to a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130, and the database 1150 is used to store data.

[0225] The computing device 1100 also includes an access device 1140, which enables the computing device 1100 to communicate via one or more networks 1160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).

[0226] In one embodiment of the present specification, the above components of the computing device 1100 and Fig.11 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.11 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0227] The computing device 1100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1100 may also be a mobile or stationary server.

[0228] The processor 1120 is used to execute the following computer program / instruction, which implements the steps of the above-mentioned file deployment method when executed by the processor.

[0229] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned file deployment method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned file deployment method.

[0230] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the above-mentioned file deployment method when executed by a processor.

[0231] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned file deployment method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned file deployment method.

[0232] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned file deployment method when executed by a processor.

[0233] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the above-mentioned file deployment method belong to the same concept, and the details not described in detail in the technical solution of the computer program product can be referred to the description of the technical solution of the above-mentioned file deployment method.

[0234] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0235] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the contents contained in the computer readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer readable media do not include electric carrier signals and telecommunication signals.

[0236] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0237] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0238] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A file deployment method, characterized in that: A scheduling unit applied to a content distribution network, wherein the content distribution network further comprises at least one cache node, and the method comprises: Counting the bandwidth used by the at least one cache node at the current moment; Determine the amount of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of the at least one cache node and the back-to-source bandwidth; A target file having a data volume reaching the to-be-deployed file is determined from a plurality of files in the content distribution network, wherein the target file is used to be deployed on the at least one cache node.

2. The method according to claim 1, characterized in that Before determining the target file reaching the data volume of the to-be-deployed file from the plurality of files in the content distribution network, the method further includes: Obtaining file popularity of multiple files in the content distribution network; The step of determining, from the plurality of files in the content distribution network, a target file having a data volume reaching the to-be-deployed file volume comprises: Based on the file popularity of each file, a target file reaching the data volume of the file to be deployed is determined from multiple files in the content distribution network.

3. The method according to claim 2, characterized in that The obtaining of file popularity of a plurality of files in the content distribution network comprises: According to a preset update frequency, the file heat of multiple files in the content distribution network in the last heat cycle is counted.

4. The method according to claim 2, characterized in that: After acquiring the file popularity of the plurality of files in the content distribution network, the method further includes: Based on the file popularity of each file, the plurality of files are sorted to generate a file popularity list; The step of determining, based on the file popularity of each file, a target file having a data volume of the file to be deployed from a plurality of files in the content distribution network includes: Based on the order of the file popularity list, a target file having the data volume reaching the to-be-deployed file is determined from a plurality of files in the content distribution network.

5. The method according to any one of claims 1 to 4, characterized in that: Before determining the amount of file data to be deployed based on the used bandwidth and the back-to-source deployment coefficient, the method further includes: Obtaining the total service bandwidth and the back-to-source bandwidth of the at least one cache node at a preset time interval; Based on the relationship between the total service bandwidth and the back-to-source bandwidth, a back-to-source deployment coefficient is determined.

6. The method according to any one of claims 1 to 4, characterized in that: The step of determining, from the plurality of files in the content distribution network, a target file having a data volume reaching the to-be-deployed file volume comprises: Acquire a first file from a plurality of files in the content distribution network and determine that the first file is a target file; Identify whether the file data volume of the target file reaches the file data volume to be deployed; If not, obtain a second file from multiple files in the content distribution network, and determine that the second file is the target file, return to the step of identifying whether the file data volume of the target file reaches the data volume of the file to be deployed, and if so, determine the target file that reaches the data volume of the file to be deployed.

7. The method according to any one of claims 1 to 4, characterized in that: The content distribution network also includes a deployment unit; After determining the target file reaching the data volume of the file to be deployed from the plurality of files in the content distribution network, the method further includes: The file information of the target file is sent to the deployment unit, so that the deployment unit deploys the target file on the at least one cache node based on the file information.

8. A file deployment method, characterized in that: A deployment unit applied to a content distribution network, wherein the content distribution network further comprises a scheduling unit and at least one cache node, and the method comprises: Receive file information of a target file sent by the scheduling unit, wherein the target file is a file that reaches a data volume of a to-be-deployed file determined from a plurality of files in the content distribution network, the data volume of the to-be-deployed file is determined based on a used bandwidth of the at least one cache node at a current moment and a back-to-source deployment coefficient, the back-to-source deployment coefficient representing a relationship between a total service bandwidth of the at least one cache node and a back-to-source bandwidth; Based on the file information, the target file is deployed on the at least one cache node.

9. The method according to claim 8, characterized in that The content distribution network also includes a source node; The deploying the target file on the at least one cache node based on the file information includes: Based on the file information, obtaining the target file from the source node; Deploy the target file to the at least one cache node.

10. A content distribution network, characterized in that: It includes a scheduling unit, a deployment unit and at least one cache node; The scheduling unit is configured to count the used bandwidth of the at least one cache node at the current moment, determine the data volume of the file to be deployed based on the used bandwidth and the back-to-source deployment coefficient, determine a target file that reaches the data volume of the file to be deployed from multiple files of the content distribution network, and send file information of the target file to the deployment unit, wherein the back-to-source deployment coefficient represents the relationship between the total service bandwidth of the at least one cache node and the back-to-source bandwidth; The deployment unit is configured to receive file information of a target file sent by the scheduling unit, and deploy the target file on the at least one cache node based on the file information.

Citation Information

Patent Citations

  • Edge routing node and method for prefetching content from multisource by edge routing node

    CN103023768A

  • Node data deployment method, deployment node, system and medium

    CN110839069A

  • Resource pre-distribution method and device

    CN111064997A

  • Optimization method for distributed cache capacity expansion and shrinkage of content distribution network

    CN111917853A

  • Content distribution network bandwidth scheduling method, device and equipment

    CN113014422A