CN109274762B - CDN refreshing method and system - Google Patents
CDN refreshing method and system Download PDFInfo
- Publication number
- CN109274762B CN109274762B CN201811232969.6A CN201811232969A CN109274762B CN 109274762 B CN109274762 B CN 109274762B CN 201811232969 A CN201811232969 A CN 201811232969A CN 109274762 B CN109274762 B CN 109274762B
- Authority
- CN
- China
- Prior art keywords
- request
- equipment
- refresh
- refreshing
- refresh request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Abstract
The application relates to a CDN refreshing method and a system, wherein the method comprises the following steps: a central device of the CDN system receives a refreshing request sent by a user and sends the refreshing request to a device of a next level; the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node; an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request; the devices of the CDN system are divided into multiple tiers in advance. According to the method and the device, the equipment of each edge node in the CDN can quickly receive the refreshing request and then execute the refreshing operation; the problem of failure in sending the refresh request caused by directly sending the refresh request to all other devices by one edge device is avoided, and the refresh effect is improved.
Description
Technical Field
The present application relates to the technical field of Content Delivery Networks (CDNs), and in particular, to a CDN refresh method and system.
Background
The Content Delivery Network (CDN) is mainly used for relieving congestion of a backbone network and accelerating the access speed of users. The principle is that CDN edge nodes are utilized to cache resources of a remote source station to the local to accelerate the access speed of a user to the resources. The refresh system in the CDN is configured to refresh out data that is expired or unused at the edge node, so that the edge node is accessed again by the netizen, and the edge node caches new data content obtained from the source station, thereby providing a new data content service to the outside.
In the related art, the refresh system is composed of a refresh center device and a refresh edge device located on a cache server. The refreshing method is that the refreshing central equipment receives refreshing requests submitted by customers, then the refreshing requests are issued to the refreshing edge equipment, the refreshing edge equipment operates the cache software of the edge equipment where the refreshing edge equipment is located to refresh data files required by the refreshing requests, and then the results are fed back to the refreshing central equipment. However, the refreshing method has some defects, the task of sending the refreshing request is concentrated on refreshing the central device, the refreshing central device does not have good network connectivity with all other devices, and once the network from the refreshing central device to the refreshing edge device is unstable, the refreshing central device fails to send the refreshing request to the refreshing edge device, so that partial refreshing failure is finally caused, and the refreshing effect is reduced.
Disclosure of Invention
To overcome, at least to some extent, the problems in the related art, the present application provides a CDN refresh method and system.
According to a first aspect of an embodiment of the present application, a CDN refresh method is provided, including:
a central device of the CDN system receives a refreshing request sent by a user and sends the refreshing request to a device of a next level;
the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node;
an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request;
the devices of the CDN system are divided into multiple tiers in advance.
Optionally, the receiving the refresh request includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Optionally, the method further comprises:
after receiving the refresh request, the device feeds back a signal of obtaining the refresh request to the device of the previous layer;
and after receiving the signal, the device at the upper layer records the device information obtained from the refresh request so as to send the device information.
Optionally, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
Optionally, the edge node comprises a plurality of edge devices;
the method for the edge node of the CDN system to receive the refreshing request and refresh the data file according to the refreshing request comprises the following steps:
any edge device in each edge node receives the refreshing request and sends the refreshing request to other edge devices in the edge nodes;
and after receiving the refreshing request, the other edge devices in each edge node refresh the data file corresponding to the refreshing request.
Optionally, after the refreshing the data file according to the refresh request, the method further includes:
generating a refresh result;
and feeding back the refreshing result to the equipment of the previous level layer by layer until the central equipment receives the refreshing result.
According to a second aspect of the embodiments of the present application, there is provided a CDN refresh system, including:
a plurality of tiers of devices;
the multiple levels of equipment sequentially comprise from top to bottom: a central device, an intermediate device and an edge node;
the intermediate device is at least one level;
the central equipment is used for receiving a refreshing request sent by a user and sending the refreshing request to equipment belonging to the next level of the central equipment in the intermediate equipment;
the intermediate device is used for receiving a refresh request sent by a device of a previous level and sending the refresh request to a device of a next level until the refresh request is sent to the edge node;
the edge node is used for receiving a refresh request sent by equipment of a previous level of the edge node in the intermediate equipment and refreshing the data file according to the refresh request.
Optionally, the receiving, by the intermediate device and/or the edge node, the refresh request specifically includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Optionally, after receiving the refresh request, the intermediate device and/or the edge node is further configured to:
and feeding back a signal for acquiring the refresh request to the equipment of the previous layer, so that the equipment of the previous layer records the equipment information for acquiring the refresh request after receiving the signal, and sending the equipment information.
Optionally, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
According to a third aspect of the embodiments of the present application, there is provided a CDN refresh system, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
a central device of the CDN system receives a refreshing request sent by a user and sends the refreshing request to a device of a next level;
the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node;
an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request;
the devices of the CDN system are divided into multiple tiers in advance.
Optionally, the receiving the refresh request includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Optionally, the processor is further configured to:
after receiving the refresh request, the device feeds back a signal of obtaining the refresh request to the device of the previous layer;
and after receiving the signal, the device at the upper layer records the device information obtained from the refresh request so as to send the device information.
Optionally, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
Optionally, the edge node comprises a plurality of edge devices;
the method for the edge node of the CDN system to receive the refreshing request and refresh the data file according to the refreshing request comprises the following steps:
any edge device in each edge node receives the refreshing request and sends the refreshing request to other edge devices in the edge nodes;
and after receiving the refreshing request, the other edge devices in each edge node refresh the data file corresponding to the refreshing request.
Optionally, after the refreshing the data file according to the refresh request, the processor is further configured to:
generating a refresh result;
and feeding back the refreshing result to the equipment of the previous level layer by layer until the central equipment receives the refreshing result.
According to a fourth aspect of embodiments of the present application, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a controller, enable the controller side to perform a CDN refresh method, the CDN refresh method including:
a central device of the CDN system receives a refreshing request sent by a user and sends the refreshing request to a device of a next level;
the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node;
an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request;
the devices of the CDN system are divided into multiple tiers in advance.
Optionally, the receiving the refresh request includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Optionally, the method further comprises:
after receiving the refresh request, the device feeds back a signal of obtaining the refresh request to the device of the previous layer;
and after receiving the signal, the device at the upper layer records the device information obtained from the refresh request so as to send the device information.
Optionally, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
Optionally, the edge node comprises a plurality of edge devices;
the method for the edge node of the CDN system to receive the refreshing request and refresh the data file according to the refreshing request comprises the following steps:
any edge device in each edge node receives the refreshing request and sends the refreshing request to other edge devices in the edge nodes;
and after receiving the refreshing request, the other edge devices in each edge node refresh the data file corresponding to the refreshing request.
Optionally, after the refreshing the data file according to the refresh request, the method further includes:
generating a refresh result;
and feeding back the refreshing result to the equipment of the previous level layer by layer until the central equipment receives the refreshing result.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
because the devices of the CDN system are divided into a plurality of levels in advance, the central device of the CDN system receives a refresh request sent by a user and sends the refresh request to the device of the next level; the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node; an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request; and because the devices of the adjacent hierarchies have good network connectivity, the refresh request can be quickly sent to the devices of the next hierarchy until the edge node. Therefore, equipment of each edge node can quickly receive the refresh request and then execute the refresh operation; the problem of failure in sending the refresh request caused by directly sending the refresh request to all other devices by one edge device is avoided, and the refresh effect is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a CDN refresh method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a CDN refresh method according to another exemplary embodiment.
Fig. 3 is a schematic structural diagram illustrating a CDN refresh system according to another exemplary embodiment.
Fig. 4 is a schematic structural diagram illustrating a CDN refresh system according to another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of methods and systems consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a CDN refresh method according to an exemplary embodiment.
As shown in fig. 1, the method provided by this embodiment includes the following steps:
step S11, the central device of the CDN system receives the refresh request sent by the user and sends the refresh request to the device of the next level;
step S12, the device of the next level receives the refresh request and sends it to the device of the next level until the refresh request is sent to the edge node;
step S13, the edge node of the CDN system receives the refresh request and refreshes the data file according to the refresh request;
the devices of the CDN system are divided into multiple tiers in advance.
For example, first, a device is selected from devices in the CDN system as a top-level device, that is, a central device, and is used to receive a refresh request sent by a user; the next level device of the central device is a secondary distribution device, any one device in the layer of devices has good network connectivity with the central device, and the set of devices in the layer can be connected to all edge node devices in the whole network. Therefore, the refreshing request is ensured to be quickly sent to the secondary distribution equipment from the central equipment, the secondary distribution equipment can send the refreshing request to all the edge node equipment of the whole network, and the edge node equipment executes the refreshing operation after receiving the refreshing request. All edge nodes of the whole network can obtain the refreshing request; the point that the task of sending the refresh request is concentrated on the central equipment is avoided, and the refresh effect is ensured.
In this embodiment, since the devices of the CDN system are pre-divided into multiple tiers, the central device of the CDN system receives a refresh request sent by a user and sends the request to the device of the next tier; the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node; an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request; and because the devices of the adjacent hierarchies have good network connectivity, the refresh request can be quickly sent to the devices of the next hierarchy until the edge node. Therefore, equipment of each edge node can quickly receive the refresh request and then execute the refresh operation; the problem of failure in sending the refresh request caused by directly sending the refresh request to all other devices by one edge device is avoided, and the refresh effect is improved.
Further, the receiving the refresh request includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Further, the method further comprises:
after receiving the refresh request, the device feeds back a signal of obtaining the refresh request to the device of the previous layer;
and after receiving the signal, the device at the upper layer records the device information obtained from the refresh request so as to send the device information.
In the process that the lower layer device acquires the refresh request from the upper layer device, if the lower layer device already has a device which takes the refresh request to be acquired, the upper layer device returns the device information with the refresh request to the lower layer device, and the lower layer device requests the latest refresh request from other devices in the layer. For example, after receiving a refresh request, a central device (i.e., a first-layer device) sends a request for obtaining the refresh request to the central device, and after receiving the request, the central device sends the refresh request to the device; when a second device on a second layer sends a request for obtaining a refreshing request to a central device, the central device feeds back recorded device information of a first device to the second device, the second device sends the request for obtaining the refreshing request to the first device on the same layer, the first device sends the obtained refreshing request to the second device, the second device feeds back a signal for obtaining the refreshing request to the central device after receiving the refreshing request, and the central device records the device information of the second device after receiving the signal; when a third device on a second layer sends a request for obtaining a refresh request to a central device, the central device feeds back device information of a first device and a second device on the same layer to the third device, the third device selects one device from the first device and the second device according to the device information, sends the request for obtaining the refresh request to the selected device, after receiving the request, the selected device sends the refresh request to the third device, after receiving the refresh request, the third device feeds back a signal that the refresh request has been obtained to the central device, and after receiving the signal, the central device records the device information of the third device; the same is true of the method for obtaining the refresh request by the other devices of the second layer, such as the fourth device and the fifth device of the second layer.
Similarly, the method for sending the refresh request to the third-layer device by the device of the second layer and sending the refresh request to the fourth-layer device by the third-layer device until the edge device receives the refresh request is the same as the above method.
It is understood that, in the case that the number of devices in the next layer is small, the device in the previous layer may directly feed back a specific refresh request to the device that makes a request in the next layer.
Further, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting the device from the devices in the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
The shortest equipment performance is optimal when the refresh request is obtained, and the equipment with the optimal performance is selected to send the refresh request to other equipment on the same layer, so that the sending speed of the refresh request can be improved.
Further, the edge node comprises a plurality of edge devices;
the method for the edge node of the CDN system to receive the refreshing request and refresh the data file according to the refreshing request comprises the following steps:
any edge device in each edge node receives the refreshing request and sends the refreshing request to other edge devices in the edge nodes;
and after receiving the refreshing request, the other edge devices in each edge node refresh the data file corresponding to the refreshing request.
Since the secondary distribution device of the next level of the central device can be connected to all the edge node devices of the whole network, any one device in each edge node can be selected to form a tertiary distribution device, and the rest devices in each edge node form the bottommost device, which is the handler of the final refresh request. The third-level distribution device is used for sending a refresh request to other devices (bottommost devices) in the edge node, and the bottommost devices execute corresponding refresh operations after receiving the refresh request.
It should be noted that the method for sending the refresh request to the bottommost device by the third-level distribution device is the same as the method for sending the refresh request to the second-level distribution device by the central device.
Fig. 2 is a flowchart illustrating a CDN refresh method according to another exemplary embodiment.
As shown in fig. 2, the method provided by this embodiment may include the following steps:
step S11, the central device of the CDN system receives the refresh request sent by the user and sends the refresh request to the device of the next level;
step S12, the device of the next level receives the refresh request and sends it to the device of the next level until the refresh request is sent to the edge node;
step S13, the edge node of the CDN system receives the refresh request and refreshes the data file according to the refresh request;
step S14, generating a refresh result;
and step S15, feeding back the refreshing result to the equipment of the previous level layer by layer until the central equipment receives the refreshing result.
The devices of the CDN system are divided into multiple tiers in advance.
Specifically, in step S15, the reporting of the refresh result is performed periodically from bottom to top layer by layer. The device of one layer will report its immediate next layer and the refresh result fed back from the immediate next layer to its previous layer, up to the central device of the topmost layer. For example, after refreshing a corresponding data file according to a refresh request, the bottommost device generates a refresh result, and then feeds back the refresh result to the third-level distribution device, the third-level distribution device feeds back the refresh result to the second-level distribution device after receiving the refresh result, the second-level distribution device feeds back the refresh result to the central device after receiving the refresh result, and the central device receives the refresh result; thus, the central device can dynamically see the progress of the refresh processing in the entire network.
In the embodiment, not only can the equipment of each edge node quickly receive the refresh request and then execute the refresh operation; the problem of failure in sending the refresh request caused by directly sending the refresh request to all other devices by one edge device is avoided, and the refresh effect is improved. Furthermore, the central device can dynamically see the processing progress of the refreshes in the whole network.
Fig. 3 is a schematic structural diagram illustrating a CDN refresh system according to another exemplary embodiment.
As shown in fig. 3, the system provided in this embodiment includes:
a plurality of tiers of devices;
the multiple levels of equipment sequentially comprise from top to bottom: central device 31, intermediate device 32, and edge nodes 33;
the intermediate device is at least one level;
the central equipment is used for receiving a refreshing request sent by a user and sending the refreshing request to equipment belonging to the next level of the central equipment in the intermediate equipment;
the intermediate device is used for receiving a refresh request sent by a device of a previous level and sending the refresh request to a device of a next level until the refresh request is sent to the edge node;
the edge node is used for receiving a refresh request sent by equipment of a previous level of the edge node in the intermediate equipment and refreshing the data file according to the refresh request.
Further, the receiving, by the intermediate device and/or the edge node, the refresh request specifically includes:
directly receiving a refresh request sent by equipment of a previous layer; alternatively, the first and second electrodes may be,
receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level.
Further, after receiving the refresh request, the intermediate device and/or the edge node is further configured to:
and feeding back a signal for acquiring the refresh request to the equipment of the previous layer, so that the equipment of the previous layer records the equipment information for acquiring the refresh request after receiving the signal, and sending the equipment information.
Further, the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of the device from the devices in the same hierarchy according to the device information specifically includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
For a better understanding of the present application, the operation of the system is described in detail below with reference to fig. 4.
Referring to fig. 4, the present embodiment is described by taking the intermediate device as a hierarchy.
Specifically, the whole CDN refresh system is divided into four levels, the top level is a central device 31, the middle device 32 of the second level is composed of a first device 321, a second device 322, and a third device 323, the third level is composed of one device arbitrarily selected from each of three edge nodes, namely a first edge node 331, a second edge node 332, and a third edge node 333, where the first edge device 3311 in the first edge node 331, the second edge device 3321 in the second edge node 332, and the third edge device 3331 in the third edge node 333 constitute a third level; the fourth level is comprised of the remaining edge devices of each edge node, here fourth edge device 3312, fifth edge device 3313, sixth edge device 3322, seventh edge device 3323, eighth edge device 3332, and ninth edge device 3333, which comprise the devices of the fourth level.
The flow of the refresh request sent from the central device to the second tier device (intermediate device) is as follows:
firstly, central device 31 receives a refresh request sent by a user;
second, the first device 321 in the second layer obtains a refresh request from the central device;
thirdly, the central equipment feeds back a refreshing request to the first equipment;
fourthly, after receiving the refreshing request, the first equipment feeds back a signal of acquiring the refreshing request to the central equipment;
fifthly, after receiving the signal, the central device records the device information of the first device 321;
sixthly, the second device 322 in the second layer obtains a refresh request from the central device;
seventhly, the refresh center feeds back the device information of the device which has acquired the refresh request to the second device, wherein the device information includes the device information of the first device 321;
eighthly, the second device selects a device with the best performance from the devices corresponding to the device information, such as the first device 321, and then sends a request for obtaining the refresh request to the first device 321;
ninth, the first device 321 feeds back a refresh request to the second device 322;
tenth step, after the second device acquires the refresh request, sending a signal that the refresh request has been acquired to the central device;
and step ten, after the central equipment receives the signal, the equipment information of the second equipment is recorded inside.
The third device 323 of the second layer obtains the refresh request in the same manner as above.
The method for sending the refresh request to the third-level device by the second-level device and the method for sending the refresh request to the fourth-level device by the third-level device are the same as the above method.
If there are few devices in the whole network, the flow of sending the refresh request from the previous layer to the next layer is as follows (taking the example of sending the refresh request from the central device to the second layer device):
firstly, central device 31 receives a refresh request sent by a user;
second, the first device 321 of the second hierarchy gets a refresh request to the central device;
thirdly, the central equipment feeds back a refreshing request to the first equipment;
fourth, the second device 322 at the second level obtains a refresh request from the central device;
fifthly, the central device feeds back the refresh request to the second device.
Similarly, the same is true of the method in which the second tier device sends a refresh request to the third tier device, and the third tier device sends a refresh request to the fourth tier device.
It should be noted that, for parts that are not described in detail in this embodiment, reference may be made to the description in the embodiment of the method, and details are not described here again.
In this embodiment, since the devices of the CDN system are pre-divided into multiple tiers, the central device of the CDN system receives a refresh request sent by a user and sends the request to the device of the next tier; the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node; an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request; and because the devices of the adjacent hierarchies have good network connectivity, the refresh request can be quickly sent to the devices of the next hierarchy until the edge node. Therefore, equipment of each edge node can quickly receive the refresh request and then execute the refresh operation; the problem of failure in sending the refresh request caused by directly sending the refresh request to all other devices by one edge device is avoided, and the refresh effect is improved.
With regard to the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in other embodiments, and will not be described in detail here.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a resource signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (8)
1. A CDN refresh method, comprising:
a central device of the CDN system receives a refreshing request sent by a user and sends the refreshing request to a device of a next level; the equipment of the CDN system is divided into a plurality of levels in advance;
the equipment of the next level receives the refreshing request and sends the refreshing request to the equipment of the next level until the refreshing request is sent to the edge node; the receiving the refresh request includes: directly receiving a refresh request sent by equipment of a previous layer; or receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level; if the lower-layer equipment already has equipment to take the refresh request to be acquired, the upper-layer equipment returns equipment information with the refresh request to the lower-layer equipment, and the lower-layer equipment requests the latest refresh request from the equipment of the same layer, so that the equipment of each edge node receives the refresh request and then executes refresh operation;
an edge node of the CDN system receives the refreshing request and refreshes the data file according to the refreshing request;
the devices of the CDN system are divided into multiple tiers in advance.
2. The method of claim 1, further comprising:
after receiving the refresh request, the device feeds back a signal of obtaining the refresh request to the device of the previous layer;
and after receiving the signal, the device at the upper layer records the device information obtained from the refresh request so as to send the device information.
3. The method according to claim 2, wherein the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
4. The method of claim 1, wherein the edge node comprises a plurality of edge devices;
the method for the edge node of the CDN system to receive the refreshing request and refresh the data file according to the refreshing request comprises the following steps:
any edge device in each edge node receives the refreshing request and sends the refreshing request to other edge devices in the edge nodes;
and after receiving the refreshing request, the other edge devices in each edge node refresh the data file corresponding to the refreshing request.
5. The method of claim 1, wherein after refreshing the data file according to the refresh request, the method further comprises:
generating a refresh result;
and feeding back the refreshing result to the equipment of the previous level layer by layer until the central equipment receives the refreshing result.
6. A CDN refresh system, comprising:
a plurality of tiers of devices; the equipment of the CDN system is divided into a plurality of levels in advance;
the multiple levels of equipment sequentially comprise from top to bottom: a central device, an intermediate device and an edge node;
the intermediate device is at least one level;
the central equipment is used for receiving a refreshing request sent by a user and sending the refreshing request to equipment belonging to the next level of the central equipment in the intermediate equipment;
the intermediate device is used for receiving a refresh request sent by a device of a previous level and sending the refresh request to a device of a next level until the refresh request is sent to the edge node; the receiving the refresh request includes: directly receiving a refresh request sent by equipment of a previous layer; or receiving device information sent by a device of a previous level, selecting a device from devices of the same level according to the device information, and receiving a refresh request from the selected device, wherein the device corresponding to the device information is the device of the same level and has received the refresh request sent by the device of the previous level; if the lower-layer equipment already has equipment to take the refresh request to be acquired, the upper-layer equipment returns equipment information with the refresh request to the lower-layer equipment, and the lower-layer equipment requests the latest refresh request from the equipment of the same layer, so that the equipment of each edge node receives the refresh request and then executes refresh operation;
the edge node is used for receiving a refresh request sent by equipment of a previous level of the edge node in the intermediate equipment and refreshing the data file according to the refresh request.
7. The system of claim 6, wherein the intermediate device and/or the edge node, after receiving the refresh request, is further configured to:
and feeding back a signal for acquiring the refresh request to the equipment of the previous layer, so that the equipment of the previous layer records the equipment information for acquiring the refresh request after receiving the signal, and sending the equipment information.
8. The system according to claim 6, wherein the device information includes a duration used by the device that has acquired the refresh request when acquiring the refresh request;
the selecting of devices among devices of the same hierarchy according to the device information includes:
comparing the time lengths;
the device with the smallest duration for obtaining the refresh request is selected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232969.6A CN109274762B (en) | 2018-10-22 | 2018-10-22 | CDN refreshing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232969.6A CN109274762B (en) | 2018-10-22 | 2018-10-22 | CDN refreshing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109274762A CN109274762A (en) | 2019-01-25 |
CN109274762B true CN109274762B (en) | 2021-10-29 |
Family
ID=65194726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811232969.6A Active CN109274762B (en) | 2018-10-22 | 2018-10-22 | CDN refreshing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109274762B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464624A (en) * | 2020-03-30 | 2020-07-28 | 北京金山云网络技术有限公司 | Content refreshing method and device for CDN (content delivery network) and electronic equipment |
CN114024984B (en) * | 2021-09-27 | 2024-01-05 | 阿里巴巴(中国)有限公司 | Resource refreshing method, device and equipment for Content Delivery Network (CDN) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137006A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Data transmission method and equipment in CDN (Content Delivery Network) |
CN104301741A (en) * | 2014-09-26 | 2015-01-21 | 北京奇艺世纪科技有限公司 | Data live broadcast system and method |
CN106790617A (en) * | 2016-12-30 | 2017-05-31 | 北京邮电大学 | Collaborative content cache control system and method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1298878A1 (en) * | 2001-09-26 | 2003-04-02 | Telefonaktiebolaget L M Ericsson (Publ) | Hierarchical caching in telecommunication networks |
US8412823B1 (en) * | 2009-03-27 | 2013-04-02 | Amazon Technologies, Inc. | Managing tracking information entries in resource cache components |
CN102055799B (en) * | 2010-12-09 | 2014-02-12 | 北京世纪互联宽带数据中心有限公司 | Content refreshing system |
US8832111B2 (en) * | 2010-12-30 | 2014-09-09 | Facebook, Inc. | Distributed cache for graph data |
CN104348888B (en) * | 2013-08-09 | 2017-09-26 | 中国电信股份有限公司 | Contents construction distribution method, content delivery network node and system |
CN105868234A (en) * | 2015-12-07 | 2016-08-17 | 乐视云计算有限公司 | Update method and device of caching data |
CN111064780B (en) * | 2017-03-01 | 2023-04-18 | 贵州白山云科技股份有限公司 | Multitask content updating method, device, equipment and medium |
CN108416016A (en) * | 2018-03-05 | 2018-08-17 | 北京云端智度科技有限公司 | A kind of CDN is by prefix caching sweep-out method and system |
CN108632388A (en) * | 2018-05-15 | 2018-10-09 | 聚好看科技股份有限公司 | A kind of loading method and device of paged content |
-
2018
- 2018-10-22 CN CN201811232969.6A patent/CN109274762B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137006A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Data transmission method and equipment in CDN (Content Delivery Network) |
CN104301741A (en) * | 2014-09-26 | 2015-01-21 | 北京奇艺世纪科技有限公司 | Data live broadcast system and method |
CN106790617A (en) * | 2016-12-30 | 2017-05-31 | 北京邮电大学 | Collaborative content cache control system and method |
Also Published As
Publication number | Publication date |
---|---|
CN109274762A (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8839049B2 (en) | Dynamically allocating multitier applications based upon application requirements and performance reliability of resources | |
CN110896355B (en) | Network slice selection method and device | |
KR102376713B1 (en) | Composite partition functions | |
WO2020042427A1 (en) | Reconciliation method and apparatus based on data fragments, computer device, and storage medium | |
CN106453457A (en) | Multi-priority service instance distribution in cloud computing platform | |
CN103797463A (en) | Method and apparatus for assignment of virtual resources within a cloud environment | |
CN103607424B (en) | Server connection method and server system | |
CN110244901B (en) | Task allocation method and device and distributed storage system | |
CN107211003B (en) | Distributed storage system and method for managing metadata | |
CN105229591A (en) | Overall situation polymerization NameSpace is created in order to storage administration | |
CN109274762B (en) | CDN refreshing method and system | |
CN107172391A (en) | Distributed video memory management method and system based on Hadoop framework | |
US11394683B2 (en) | Domain name resolution method and apparatus based on a plurality of availability zones AZ | |
EP3331218A1 (en) | Method and device for leveling load of distributed database | |
CN106953926A (en) | A kind of method for routing and device | |
CN106790610B (en) | Cloud system message distribution method, device and system | |
CN107800744B (en) | Service request forwarding method, device and system | |
US11163741B2 (en) | Table connection method in distributed database system and distributed database system | |
CN116319839A (en) | Bucket cross-pool access method and equipment for distributed storage system | |
CN113055448B (en) | Metadata management method and device | |
CN106712990B (en) | Service arrangement method and system | |
US10193790B2 (en) | Systems and methods for an intelligent, distributed, autonomous, and scalable resource discovery, management, and stitching | |
CN109327520B (en) | Method and device for establishing connection between terminal and server node | |
CN110046040B (en) | Distributed task processing method and system and storage medium | |
EP3707610B1 (en) | Redundant data storage using different compression processes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |