Cache preheating method for content delivery network and related device

By dividing the cache node server into different preheating areas and setting different preheating times, the problem of excessive bandwidth usage in traditional cache preheating technology is solved, and regionalized precise cache preheating is achieved, which improves preheating efficiency and system stability.

CN119544490APending Publication Date: 2025-02-28AGRICULTURAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411742642.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In traditional cache preheating technology, the cache node server preheats the entire area at the same time during the high concurrent preheating process, resulting in excessive instantaneous bandwidth usage.

Method used

By dividing the cache node servers that have preheating requirements for preheating resources into different preheating areas and setting different preheating times, avoiding cache preheating in the entire area at the same time, and realizing regionalized precise cache preheating.

Benefits of technology

It effectively avoids the problem of excessive instantaneous bandwidth usage, realizes regionalized and precise cache preheating of cache node servers, and improves preheating efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544490A_ABST
    Figure CN119544490A_ABST
Patent Text Reader

Abstract

The invention discloses a cache preheating method of a content delivery network and a related device, a CDN management end obtains a network address of a to-be-preheated resource, M cache node servers in N cache node servers are determined according to the network address, the M cache node servers are cache node servers having preheating requirements for the to-be-preheated resource, and the M cache node servers have preheating requirements for the to-be-preheated resource. The N cache node servers are cache node servers connected with a CDN management end, the M cache node servers are divided into at least two preheating areas, different preheating time is set for the preheating areas, and when the preheating time is up, the N cache node servers are cached; and sending the network address to the cache node server of the preheating area corresponding to the preheating time, thereby avoiding the situation that the cache node server having preheating requirements on the to-be-preheated resources performs cache preheating in the whole area at the same time, and preventing the instantaneous bandwidth occupation from being too high. Regional accurate cache preheating of the cache node server is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communications, and in particular to a cache preheating method and related devices for a content distribution network. Background Art

[0002] As a network infrastructure, the Content Delivery Network (CDN) builds cache node server clusters distributed in different physical areas to alleviate backbone network bandwidth and greatly improve the carrying capacity of the communication network. When the CDN receives the user's first request, the cache node server has not yet stored the cache file of the requested content, and the request needs to be forwarded to the source station to pull the resource. When there are new resources on the source station, and the resource will be accessed in large quantities in a short period of time, if the cache preheating operation is not performed, it may cause high concurrency and centralized return to the source of hot resources. Requests will be forwarded back to the source station in large quantities in a short period of time, affecting the stability of the source station service and causing great delays in user access to hot resources.

[0003] At present, traditional cache preheating technology sorts out the Uniform Resource Locator (URL) of the resources that need to be preheated, and simulates users accessing the URLs of the resources that need to be preheated to each CDN cache node server in advance. After receiving the simulated user request, the cache node server returns to the source station to pull the resources and cache them, thereby realizing early resource preheating.

[0004] However, in the high-concurrency preheating process of the cache node servers of the traditional cache preheating technology, the cache node servers are preheated in the entire area at the same time, and the instantaneous bandwidth occupancy is high. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a cache preheating method and device for a content distribution network, which avoids the situation where cache node servers that have preheating requirements for preheating resources perform cache preheating in the entire region at the same time, prevents excessive instantaneous bandwidth occupancy, and realizes regionalized and precise cache preheating of cache node servers.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In a first aspect, the present application provides a cache preheating method for a content delivery network, characterized in that the method is executed by a content delivery network CDN management terminal, and the method includes:

[0008] Get the network address of the resource to be preheated;

[0009] Determine M cache node servers among N cache node servers according to the network address, the M cache node servers are cache node servers that have a preheating requirement for the to-be-preheated resources, and the N cache node servers are cache node servers connected to the CDN management end;

[0010] Dividing the M cache node servers into at least two preheating areas;

[0011] Setting different preheating times for the preheating zones;

[0012] When the preheating time is reached, the network address is sent to the cache node server in the preheating area corresponding to the preheating time.

[0013] Optionally, setting different preheating times for the preheating zones includes:

[0014] Obtaining traffic usage parameters of the CDN;

[0015] Determine the low traffic usage period according to the traffic usage parameters of the CDN;

[0016] The preheating time is determined during the valley period.

[0017] Optionally, the preheating area includes at least K cache node servers, where K is an integer greater than or equal to 1.

[0018] In a second aspect, the present application provides a cache preheating device for a content distribution network, characterized in that the device is configured in a content distribution network CDN management terminal, and the device includes:

[0019] An acquisition unit, the acquisition unit is used to acquire a network address of a resource to be preheated;

[0020] a determining unit, the determining unit being configured to determine, according to the network address, M cache node servers among the N cache node servers, the M cache node servers being cache node servers that have a preheating requirement for the resource to be preheated, and the N cache node servers being cache node servers connected to the CDN management end;

[0021] A division unit, the division unit is used to divide the M cache node servers into at least two preheating areas;

[0022] A setting unit, the setting unit is used to set different preheating times for the preheating zones;

[0023] A sending unit, wherein the sending unit is configured to send the network address to a cache node server in the preheating area corresponding to the preheating time when the preheating time is reached.

[0024] In a third aspect, the present application provides a cache preheating method for a content distribution network, characterized in that the method is executed by the cache node server, and the method includes:

[0025] receiving the network address;

[0026] The simulated virtual terminal sends a preheating request to itself as a requester of the resource to be preheated, wherein the preheating request includes the network address;

[0027] Pull the resource to be preheated corresponding to the network address from the application source station;

[0028] By storing the complete resources to be preheated locally, cache preheating for the resources to be preheated is completed.

[0029] Optionally, the method further comprises:

[0030] Adding an indication mark to the preheating request, the indication mark is used to indicate the target data amount allowed to be cached by the requesting party, and the target data amount is smaller than the data amount of the resource to be preheated;

[0031] After storing the complete resources to be preheated locally, storing the resources to be preheated corresponding to the preheating request into the memory of the cache node server;

[0032] When the data amount of the resource to be preheated stored in the memory reaches the target data amount, the resource to be preheated is stopped from being stored in the memory of the cache node server.

[0033] Optionally, the method further comprises:

[0034] When the cache node server completes cache preheating for the resource to be preheated, the preheating completion result is fed back to the CDN management end.

[0035] In a fourth aspect, the present application provides a cache preheating device for a content distribution network, characterized in that the device is configured in a cache node server, and the device includes:

[0036] A receiving unit, the receiving unit is used to receive the network address;

[0037] A sending unit, the sending unit is used to simulate a virtual terminal as a requester of the resource to be preheated to send a preheating request to itself, wherein the preheating request includes the network address;

[0038] A pulling unit, the pulling unit is used to pull the resource to be preheated corresponding to the network address from the application source station;

[0039] A completion unit, the completion unit is used to complete cache preheating for the resource to be preheated by locally storing the complete resource to be preheated.

[0040] In a fifth aspect, the present application provides an electronic device, the electronic device comprising:

[0041] Memory for storing computer programs or computer instructions;

[0042] A processor is used to execute a computer program or computer instruction stored in the memory, so that the electronic device executes the method as described in the first aspect or the third aspect.

[0043] In a sixth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, wherein the computer instructions instruct a computer to execute the method described in the first aspect or the third aspect.

[0044] It can be seen from the above technical solutions that the present application has the following beneficial effects:

[0045] The technical solution of the present application obtains the network address of the resource to be preheated, determines M cache node servers among N cache node servers according to the network address, the M cache node servers are cache node servers that have preheating requirements for the resource to be preheated, and the N cache node servers are cache node servers connected to the CDN management end, and divides the M cache node servers into at least two preheating areas. When the preheating time is reached, the network address of the resource to be preheated is sent to the cache node server in the preheating area corresponding to the preheating time. By dividing the cache node servers that have preheating requirements for the resource to be preheated into different preheating areas, and setting different preheating times for the preheating areas, it is avoided that the cache node servers that have preheating requirements for the resource to be preheated perform cache preheating in all areas at the same time, prevents excessive instantaneous bandwidth occupancy, and realizes regionalized precise cache preheating of the cache node servers. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0047] Figure 1 A schematic diagram of a process flow of a cache preheating method for a content distribution network in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of a process flow of a cache preheating method for a content distribution network in an embodiment of the present application;

[0049] Figure 3This is a CDN architecture diagram in an embodiment of the present application;

[0050] Figure 4 This is an interactive schematic diagram of a cache preheating process in an embodiment of the present application;

[0051] Figure 5 This is a schematic diagram of the structure of a cache preheating device for a content distribution network in an embodiment of the present application;

[0052] Figure 6 It is a structural schematic diagram of a cache preheating device of a content distribution network in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0054] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0055] First, some technical terms involved in the embodiments of the present application are introduced.

[0056] CDN: An intelligent virtual network built on the existing network, using a distributed cache server cluster architecture. It distributes user requests to nearby cache node servers to reduce the service pressure of the source station, save back-to-source bandwidth, and improve user access quality.

[0057] Cache node server: A distributed cache server to which user requests are first loaded.

[0058] Cache preheating: When a user requests resources from a cache node for the first time, the cache node will fetch the resources from the origin. Cache preheating means that the cache node caches files in advance, so that the user does not need to fetch files from the origin for the first request.

[0059] Origin site: The application source site that accesses the content distribution network service. The origin site stores the resources to be preheated.

[0060] URL: The unique address of a standard resource on the Internet.

[0061] The advent of the mobile Internet era has led to an explosive growth in image and video data, and the carrying capacity of communication networks has been put to the test. As a network infrastructure, the content distribution network has greatly improved the carrying capacity of communication networks by establishing cache node server clusters distributed in different physical areas to alleviate the backbone network bandwidth. The emergence of the content distribution network effectively solves the problem of network congestion, distributes content to fast and stable cache servers close to the target users, provides users with a high-quality access experience, and greatly reduces the pressure of request return to the source, provides throttling protection for the source station service, and reduces the concurrency pressure and bandwidth pressure of the source station. When the content distribution network receives the user's first request, the cache node server does not yet have a cache file for the requested content, and the request needs to be forwarded to the source station to pull resources. When there are new resources on the source station and the resource will have a large number of accesses in a short period of time, if the content distribution network cache preheating operation is not performed, it may cause high concurrency and centralized return to the source of hot resources. Requests will be forwarded back to the source station in a large number in a short period of time, affecting the stability of the source station service and causing great delays in user access to hot resources.

[0062] As a basic network service, content distribution network has been integrated into all walks of life. Behind any Internet service, there may be content distribution network to provide acceleration support. Major manufacturers provide content distribution network support services to reduce the pressure on access application source stations. However, when a hot resource that will be accessed in large quantities at the same time is first launched, users request to access the new resource in a short period of time from the CDN cache node server. A large number of cache node servers have not yet cached the resource and initiate high-concurrency back-to-source requests to the source station, causing huge pressure on the source station. The cache preheating solution has become an important issue to deal with this situation. The standard cache preheating solution often sorts out the URL of the resource to be preheated first, and then simulates the user to access the URL of the resource to be preheated from each CDN cache node server in advance through other servers. The server that simulates the user to initiate the preheating request and the server that caches the preheated resource are not the same server. Finally, after receiving the simulated user request, the cache node server goes back to the source to pull the resource and cache it, realizing the preheating of the resource in advance. However, in the high-concurrency preheating process of the cache node server of the traditional cache preheating technology, the cache node server preheats the entire region at the same time, and the instantaneous bandwidth occupancy is high.

[0063] In view of this, the present application proposes a cache preheating method and device based on a content distribution network. By dividing the cache node servers that have preheating requirements for resources to be preheated into different preheating areas, and setting different preheating times for the preheating areas, it avoids the situation where the cache node servers that have preheating requirements for resources to be preheated perform cache preheating in all areas at the same time, thereby preventing the instantaneous bandwidth from being occupied too high.

[0064] Exemplary Methods

[0065] In order to make the technical solution of the present application clearer and easier to understand, the method provided by the present application is introduced below in conjunction with specific embodiments.

[0066] Figure 3 This is a CDN architecture diagram for an embodiment of the present application. The CDN has multiple layers of cache nodes, which are distributed in various regions to provide content distribution services to users in various regions, allowing users to access resources nearby and improve content delivery speed and quality. The CDN management end controls all cache nodes, directly connects to cache nodes at all levels, and sends instructions for unified scheduling and control of cache nodes.

[0067] In this embodiment, the CDN management terminal is the execution entity, see Figure 1 , Figure 1 A schematic diagram of a process flow of a cache preheating method for a content distribution network provided in an embodiment of the present application, the method specifically comprises the following steps:

[0068] S101: Obtain the network address of the resource to be preheated.

[0069] The resource to be preheated is the resource stored in the application source station. When the content distribution network receives the user's first request for the resource to be preheated, the cache node server has not yet stored the cache file of the preheating request, and needs to forward the request to the source station to pull the resource to be preheated. The network address is the address of the resource to be preheated, usually a URL. The resource to be preheated can be found according to the network address of the resource to be preheated.

[0070] S102: Determine M cache node servers among N cache node servers according to the network address.

[0071] The N cache node servers are cache node servers connected to the CDN management end, and the M cache node servers are the M cache node servers among the N cache node servers that have preheating requirements for the resources to be preheated. The cache node servers can determine whether there is a preheating requirement for the resource based on the network address of the resource to be preheated, and determine the M cache node servers among the N cache node servers that have preheating requirements for the resources to be preheated based on the network address.

[0072] S103: Divide the M cache node servers into at least two preheating areas.

[0073] The M cache node servers are divided into different preheating areas, and the area where the cache node servers that have preheating requirements for preheating resources are located is the preheating area.

[0074] In a possible implementation, the preheating area includes at least K cache node servers, where K is an integer greater than or equal to 1.

[0075] The preheating area is the area where the cache node servers that have preheating requirements for the preheating resources are located, so the number of cache node servers in the preheating area cannot be 0, and must be an integer greater than or equal to 1. According to the number of cache node servers that have preheating requirements for the preheating resources contained in each preheating area, the cache node servers that have preheating requirements for the preheating resources can be divided into multiple preheating areas.

[0076] By dividing the cache node servers that have preheating requirements for resources to be preheated into multiple regions, each region contains at least one cache node server that has preheating requirements for resources to be preheated, avoiding full preheating of cache node servers in all regions, and realizing regionalized precise cache preheating of cache node servers.

[0077] S104: Setting different preheating times for the preheating zones.

[0078] After M cache node servers that have preheating requirements for resources to be preheated are divided into multiple preheating areas, different preheating times are set for the preheating areas. The preheating time is the time for the CDN management end to send the network address of the resource to be preheated to the cache node server that has preheating requirements for resources to be preheated.

[0079] In a possible implementation, in order to prevent cache preheating from being performed during peak traffic usage periods and affecting normal business services, the preheating time is set during low traffic usage periods. This application provides a specific implementation of a cache preheating method for a content distribution network, see A101-A103:

[0080] A101: Get the traffic usage parameters of CDN.

[0081] A102: Determine the low traffic usage period based on the CDN traffic usage parameters.

[0082] A103: Determine the warm-up time during off-peak hours.

[0083] The traffic usage parameters of CDN can indicate the traffic usage of CDN. The traffic usage parameters of CDN include the peak period and the trough period of traffic usage of CDN, from which the trough period of traffic usage is determined, and the preheating time is determined during the trough period. When the preheating time is reached, the network address of the resource to be preheated is sent to the cache node server in the preheating area corresponding to the preheating time, and the preheating time is set during the trough period of traffic usage to avoid preheating during the peak period of traffic usage, thereby realizing controllable cache preheating time, preheating the cache during the trough period of traffic usage, and avoiding the impact of cache preheating traffic consumption on normal business services.

[0084] S105: When the preheating time is reached, the network address is sent to the cache node server in the preheating area corresponding to the preheating time.

[0085] The CDN management end generates a preheating task that sends the network address to the cache node server in the preheating area corresponding to the preheating time based on the network address of the resource to be preheated, the preheating time, and the preheating area corresponding to the preheating time. The preheating task is delayed according to the preheating time and will not be executed until the preheating time is reached. When the preheating time is reached, the CDN management end sends the network address of the resource to be preheated to the cache node server in the preheating area corresponding to the preheating time. The design of delaying the execution of the preheating task according to the preheating time avoids the situation where the preheating task is submitted and executed immediately during the peak traffic usage period.

[0086] It can be seen that the embodiment of the present application provides a cache preheating method for a content distribution network. The technical solution of the present application obtains the network address of the resource to be preheated, determines M cache node servers among N cache node servers according to the network address, the M cache nodes are cache node servers that have preheating requirements for the resource to be preheated, and the N cache node servers are cache node servers connected to the CDN management end. The M cache node servers are divided into at least two preheating areas, and different preheating times are set for the preheating areas. When the preheating time is reached, the network address of the resource to be preheated is sent to the cache node server in the preheating area corresponding to the preheating time. By dividing the cache node servers that have preheating requirements for the resource to be preheated into different preheating areas and setting different preheating times for the preheating areas, it is avoided that the cache node servers that have preheating requirements for the resource to be preheated perform cache preheating in all areas at the same time, prevents excessive instantaneous bandwidth occupancy, and realizes regionalized precise cache preheating of the cache node servers.

[0087] Figure 4 This is an interactive schematic diagram of a cache preheating process in an embodiment of the present application. The CDN management end determines a cache node server that has a preheating requirement for a resource to be preheated based on the network address of the resource to be preheated. When the preheating time is reached, the cache node is designated as a cache node server in a preheating area corresponding to the preheating time. The preheating instruction includes the network address of the resource to be preheated. The CDN management end sends the network address of the resource to be preheated to the cache node server in the preheating area corresponding to the preheating time. After receiving the preheating instruction including the network address of the resource to be preheated, the cache node server simulates a virtual terminal as a request direction for the resource to be preheated and sends a preheating request to itself. The preheating request includes the network address of the resource to be preheated. The cache node server pulls the resource to be preheated corresponding to the network address from the source station, and completes cache preheating for the resource to be preheated by locally storing the complete resource to be preheated.

[0088] In this embodiment, the cache node server is used as the execution subject, see Figure 2 , Figure 2A schematic diagram of a process flow of a cache preheating method for a content distribution network provided in an embodiment of the present application, the method specifically comprises the following steps:

[0089] S201: Receive a network address.

[0090] S202: The simulated virtual terminal sends a preheating request to itself as a requester of the resource to be preheated.

[0091] S203: Pull the resources to be preheated corresponding to the network address from the application source station.

[0092] S204: Complete cache preheating for the resources to be preheated by locally storing the complete resources to be preheated.

[0093] After the CDN management end sends the network address to the cache node server in the preheating area corresponding to the preheating time, the cache node server in the preheating area corresponding to the preheating time receives the network address of the resource to be preheated, and the cache node server locally constructs a preheating request similar to the real terminal, simulating the preheating request behavior of other terminals to simulate the virtual terminal as the requester of the resource to be preheated to initiate a preheating request, and the preheating request includes the network address of the resource to be preheated. At this time, the server simulating the virtual terminal to initiate the preheating request and the server for cache preheating of the resource to be preheated are the same server, both of which are cache node servers. The preheating requests are executed in a queue manner, and the preheating request includes the network address of the resource to be preheated. After receiving the preheating request, the cache node server pulls the resource to be preheated corresponding to the network address from the application source station according to the network address, and completes the cache preheating of the resource to be preheated by storing the complete resource to be preheated locally.

[0094] The cache node server that has a preheating demand for the resources to be preheated initiates a preheating request by simulating a virtual terminal as the request direction of the resources to be preheated, and uses the existing architecture to initiate the preheating request without occupying other server resources, thereby reducing server resource consumption.

[0095] In a possible implementation, in order to prevent the cache node server from simulating a virtual terminal to initiate a preheating request to itself and corresponding to the to-be-preheated resources being accumulated in the memory, thereby affecting the memory usage and the normal service of the cache node server, the present application provides a specific implementation of a cache preheating method for a content distribution network, see B101-B103:

[0096] B101: Add an indicator to the preheat request.

[0097] B102: After storing the complete resources to be preheated locally, the resources to be preheated corresponding to the preheating request are stored in the memory of the cache node server.

[0098] B103: When the data amount of the resources to be preheated stored in the memory reaches the target data amount, stop storing the resources to be preheated in the memory of the cache node server.

[0099] The indicator added to the preheating request is used to indicate the target amount of data that the requester is allowed to cache. The target amount of data is less than the amount of data of the resource to be preheated. For example, the Range request header can be set to 0-1 bytes, that is, the target amount of data that the requester is allowed to cache is 1 byte. After the cache node server stores the complete resources to be preheated locally, since the cache node server simulates the virtual terminal to initiate a preheating request to itself, the resources to be preheated corresponding to the preheating request are stored in the memory of the cache node server. When the amount of data of the resources to be preheated stored in the memory of the cache node server as the requester by the simulated virtual terminal reaches the target amount of data allowed to be cached, the resources to be preheated are stopped from being stored in the memory of the cache node server.

[0100] By adding an indicator in the preheating request, the amount of data of the resources to be preheated stored in the memory of the cache node server that simulates the virtual terminal as the requester of the resources to be preheated is limited, thereby avoiding the accumulation of return data of the preheating request initiated by the cache server to itself in the memory, affecting the memory usage and the normal service of the cache node server.

[0101] In a possible implementation, when the cache node server completes cache preheating for the resource to be preheated, the preheating completion result is fed back to the CDN management end.

[0102] When the cache node server completes cache preheating for the resource to be preheated, the cache node server feeds back the preheating completion result to the CDN management end. The CDN management end receives the preheating completion result from each cache node server, and the cache preheating ends.

[0103] Exemplary Devices

[0104] Figure 5 A cache preheating device for a content distribution network provided in an embodiment of the present application is configured in a CDN management terminal, and includes:

[0105] An acquisition unit 501, wherein the acquisition unit 501 is used to acquire a network address of a resource to be preheated;

[0106] A determining unit 502, the determining unit 502 is used to determine M cache node servers among N cache node servers according to the network address, the M cache node servers are cache node servers that have a preheating requirement for the to-be-preheated resource, and the N cache node servers are cache node servers connected to the CDN management end;

[0107] A division unit 503, wherein the division unit 503 is used to divide the M cache node servers into at least two preheating areas;

[0108] A setting unit 504, the setting unit 504 is used to set different preheating times for the preheating areas;

[0109] The sending unit 505 is configured to send the network address to the cache node server in the preheating area corresponding to the preheating time when the preheating time is reached.

[0110] It can be seen that the embodiment of the present application provides a cache preheating device for a content distribution network, wherein the acquisition unit 501 acquires the network address of the resource to be preheated, the determination unit 502 determines M cache node servers among N cache node servers according to the network address, the M cache nodes are cache node servers that have preheating requirements for the resource to be preheated, and the N cache node servers are cache node servers connected to the CDN management end, the division unit 503 divides the M cache node servers into at least two preheating areas, the setting unit 504 sets different preheating times for the preheating areas, and the sending unit 505 sends the network address of the resource to be preheated to the cache node server in the preheating area corresponding to the preheating time when the preheating time is reached. By dividing the cache node servers that have preheating requirements for the resource to be preheated into different preheating areas and setting different preheating times for the preheating areas, it is avoided that the cache node servers that have preheating requirements for the resource to be preheated perform cache preheating in all areas at the same time, and the instantaneous bandwidth is prevented from being occupied too high, thereby realizing regionalized and precise cache preheating of the cache node servers.

[0111] As a possible implementation manner, the setting unit 504 is specifically configured to:

[0112] Obtaining traffic usage parameters of the CDN;

[0113] Determine the low traffic usage period according to the traffic usage parameters of the CDN;

[0114] The preheating time is determined during the valley period.

[0115] As a possible implementation manner, the preheating area includes at least K cache node servers, where K is an integer greater than or equal to 1.

[0116] Figure 6 A cache preheating device for a content distribution network provided in an embodiment of the present application is configured in a cache node server, and includes:

[0117] A receiving unit 601, the receiving unit is used to receive the network address;

[0118] A sending unit 602, the sending unit is used to simulate a virtual terminal as a requester of the resource to be preheated to send a preheating request to itself, wherein the preheating request includes the network address;

[0119] A pulling unit 603, the pulling unit is used to pull the resource to be preheated corresponding to the network address from the application source station;

[0120] The completion unit 604 is used to complete cache preheating for the resource to be preheated by locally storing the complete resource to be preheated.

[0121] It can be seen that the embodiment of the present application provides a cache preheating device for a content distribution network. After the CDN management terminal sends the network address to the cache node server in the preheating area corresponding to the preheating time, the receiving unit 601 of the cache node server in the preheating area corresponding to the preheating time receives the network address of the resource to be preheated. The sending unit 602 cache node server simulates the virtual terminal as the request direction of the resource to be preheated to send a preheating request to itself. The preheating request is executed in a queue. The preheating request contains the network address of the resource to be preheated. After the cache node server receives the preheating request, the pulling unit 603 pulls the resource to be preheated corresponding to the network address from the application source station according to the network address. By storing the complete resource to be preheated locally, the completion unit 604 of the cache node server in the preheating area corresponding to the preheating time completes the cache preheating for the resource to be preheated. The cache node server that has a preheating requirement for the resource to be preheated initiates a preheating request to itself by simulating a virtual terminal as the request direction of the resource to be preheated, and initiates the preheating request using the existing architecture, without occupying other server resources, thereby reducing server resource consumption.

[0122] In a possible implementation, the device further includes an adding unit, a storage unit, and a stopping unit:

[0123] The adding unit is used to add an indication mark to the preheating request, wherein the indication mark is used to indicate a target data amount that the requesting party is allowed to cache, and the target data amount is smaller than the data amount of the resource to be preheated;

[0124] The storage unit is used to store the resource to be preheated corresponding to the preheating request into the memory of the cache node server after storing the complete resource to be preheated locally;

[0125] The stopping unit is used for stopping storing the resources to be preheated into the memory of the cache node server when the data amount of the resources to be preheated stored in the memory reaches the target data amount.

[0126] In a possible implementation manner, the device further includes a feedback unit, configured to:

[0127] When the cache node server completes cache preheating for the resource to be preheated, the preheating completion result is fed back to the CDN management end.

[0128] The present application provides an electronic device, the electronic device comprising:

[0129] Memory for storing computer programs or computer instructions;

[0130] The processor is used to execute the computer program or computer instruction stored in the memory, so that the electronic device executes the method provided by the above embodiment.

[0131] The present application provides a computer-readable storage medium, which is used to store a computer program so that the computer program executes the method provided by the above embodiment. It can be seen from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0132] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, in which the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0133] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A cache preheating method for a content distribution network, characterized in that: The method is performed by a content delivery network CDN management terminal, and the method includes: Get the network address of the resource to be preheated; Determine M cache node servers among N cache node servers according to the network address, the M cache node servers are cache node servers that have a preheating requirement for the to-be-preheated resources, and the N cache node servers are cache node servers connected to the CDN management end; Dividing the M cache node servers into at least two preheating areas; Setting different preheating times for the preheating zones; When the preheating time is reached, the network address is sent to the cache node server in the preheating area corresponding to the preheating time.

2. The method according to claim 1, characterized in that The step of setting different preheating times for the preheating zones includes: Obtaining traffic usage parameters of the CDN; Determine the low traffic usage period according to the traffic usage parameters of the CDN; The preheating time is determined during the valley period.

3. The method according to claim 1, characterized in that The preheating area includes at least K cache node servers, where K is an integer greater than or equal to 1.

4. A cache preheating device for a content distribution network, characterized in that: The device is configured in a content distribution network CDN management terminal, and the device includes: An acquisition unit, the acquisition unit is used to acquire a network address of a resource to be preheated; a determining unit, the determining unit being configured to determine, according to the network address, M cache node servers among the N cache node servers, the M cache node servers being cache node servers that have a preheating requirement for the resource to be preheated, and the N cache node servers being cache node servers connected to the CDN management end; A division unit, the division unit is used to divide the M cache node servers into at least two preheating areas; A setting unit, the setting unit is used to set different preheating times for the preheating zones; A sending unit, wherein the sending unit is configured to send the network address to a cache node server in the preheating area corresponding to the preheating time when the preheating time is reached.

5. A cache preheating method for a content distribution network, characterized in that: The method is performed by the cache node server, and the method includes: receiving the network address; The simulated virtual terminal sends a preheating request to itself as a requester of the resource to be preheated, wherein the preheating request includes the network address; Pull the resource to be preheated corresponding to the network address from the application source station; By storing the complete resources to be preheated locally, cache preheating for the resources to be preheated is completed.

6. The method according to claim 5, characterized in that The method further comprises: Adding an indication mark to the preheating request, the indication mark is used to indicate the target data amount allowed to be cached by the requesting party, and the target data amount is smaller than the data amount of the resource to be preheated; After storing the complete resources to be preheated locally, storing the resources to be preheated corresponding to the preheating request into the memory of the cache node server; When the data amount of the resource to be preheated stored in the memory reaches the target data amount, the resource to be preheated is stopped from being stored in the memory of the cache node server.

7. The method according to claim 5, characterized in that The method further comprises: When the cache node server completes cache preheating for the resource to be preheated, the preheating completion result is fed back to the CDN management end.

8. A cache preheating device for a content distribution network, characterized in that: The device is configured in a cache node server, and the device includes: A receiving unit, the receiving unit is used to receive the network address; A sending unit, the sending unit is used to simulate a virtual terminal as a requester of the resource to be preheated to send a preheating request to itself, wherein the preheating request includes the network address; A pulling unit, the pulling unit is used to pull the resource to be preheated corresponding to the network address from the application source station; A completion unit, the completion unit is used to complete cache preheating for the resource to be preheated by locally storing the complete resource to be preheated.

9. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs or computer instructions; A processor, configured to execute a computer program or computer instruction stored in the memory, so that the electronic device executes the method as claimed in any one of claims 1 to 3 or claims 5 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises computer instructions for instructing a computer to execute the method according to any one of claims 1 to 3 or claims 5 to 7.

Citation Information

Patent Citations

  • Resource file preheating method and central management system

    CN110661862A

  • Distribution method and system for PCDN network pre-cache resources and computer equipment

    CN115002132A

  • Resource preheating method, device and equipment of CDN (Content Delivery Network) and storage medium

    CN117834730A