content distribution method, device and system of content distribution network

文档序号:1784927 发布日期:2019-12-06 浏览:14次 中文

阅读说明:本技术 内容分发网络的内容发布方法、装置和系统 (content distribution method, device and system of content distribution network ) 是由 曾福华 于 2018-05-29 设计创作,主要内容包括:本发明公开了一种内容分发网络的内容发布方法、装置和系统。其中,该方法包括:获取用户待发布的目标内容;向目标CDN节点上传目标内容;在检测到目标内容上传至目标CDN节点之后,发布目标内容。本发明解决了由于CDN用户分布在全网,而OSS存储服务是中心部署,不能对所有区域都提供快速上传链路保障,造成CDN用户上传新资源速度较低的技术问题。(The invention discloses a content distribution method, a device and a system of a content distribution network. Wherein, the method comprises the following steps: acquiring target content to be issued by a user; uploading target content to a target CDN node; and delivering the target content after the target content is detected to be uploaded to the target CDN node. The invention solves the technical problem that the CDN users upload new resources at a lower speed because the CDN users are distributed in the whole network and OSS storage service is centrally deployed and cannot provide a rapid upload link guarantee for all areas.)

1. A content distribution method for a content distribution network, comprising:

Acquiring target content to be issued by a user;

Uploading the target content to a target CDN node;

And after the target content is detected to be uploaded to the target CDN node, delivering the target content.

2. The content delivery method according to claim 1, wherein before uploading the target content to a target CDN node, the method further comprises:

Screening CDN nodes closest to the user network from a plurality of CDN nodes;

And taking the CDN node closest to the user network as the target CDN node.

3. The content delivery method according to claim 1, wherein after detecting the target content uploaded to the target CDN node, the method further comprises: uploading the target content to an Object Storage Server (OSS).

4. the content delivery method according to claim 3, wherein delivering the target content after detecting the target content is uploaded to the target CDN node comprises:

Generating a link corresponding to the target content based on the identifier of the target CDN node;

Embedding a link corresponding to the target content into the target content;

And issuing the target content carrying the corresponding link.

5. The content delivery method according to claim 4, wherein generating the link corresponding to the target content based on the identifier of the target CDN node further comprises: and generating a link corresponding to the target content based on the identifier of the target CDN node and the uploading time, wherein the uploading time is the time when the target content is uploaded to the target CDN node.

6. The content distribution method according to claim 4, wherein after distributing the target content carrying the corresponding link, the method further comprises:

Detecting whether an HTTP request is received, wherein the HTTP request is used for requesting to view the target content;

When the HTTP request is received, analyzing a link corresponding to the target content to determine the uploading time of the target content;

Judging whether the time interval between the current time and the uploading time exceeds a preset time or not;

If the time interval between the current time and the uploading time does not exceed the preset time, returning to the target CDN node to check the target content;

And if the time interval between the current time and the uploading time exceeds the preset time, returning to the Object Storage Server (OSS) to check the target content.

7. The content delivery method according to claim 5, wherein after generating the link corresponding to the target content based on the identifier of the target CDN node and the upload time, the method further comprises: and encrypting the link corresponding to the target content.

8. The content distribution method according to claim 3, wherein after uploading the target content to an Object Storage Server (OSS), the method further comprises: and deleting the target content in the target CDN node.

9. The content distribution method according to claim 3, wherein before uploading the target content to an Object Storage Server (OSS), the method further comprises:

Detecting whether the current network is in the low peak period of the internet;

and if the current network is in the peak period of Internet surfing, executing the step of uploading the target content to an Object Storage Server (OSS).

10. A content distribution apparatus of a content distribution network, comprising:

The device comprises an acquisition unit, a distribution unit and a distribution unit, wherein the acquisition unit is used for acquiring target content to be issued by a user;

The first uploading unit is used for uploading the target content to a target CDN node;

And the delivery unit is used for delivering the target content after the target content is detected to be uploaded to the target CDN node.

11. The content distribution apparatus according to claim 10, wherein said apparatus further comprises:

the screening unit is used for screening CDN nodes closest to the user network from a plurality of CDN nodes before the target content is uploaded to the target CDN nodes;

And the determining unit is used for taking the CDN node closest to the user network as the target CDN node.

12. the content distribution apparatus according to claim 10, wherein said apparatus further comprises: and a second uploading unit, configured to upload the target content to an Object Storage Server (OSS) after detecting that the target content is uploaded to the target CDN node.

13. The content distribution apparatus according to claim 12, wherein the distribution unit includes:

a generating subunit, configured to generate a link corresponding to the target content based on the identifier of the target CDN node;

The processing subunit is used for embedding the link corresponding to the target content into the target content;

And the issuing subunit is used for issuing the target content carrying the corresponding link.

14. a content distribution system of a content distribution network, comprising:

the user terminal is used for sending target content to be issued by a user;

A CDN node set which comprises a plurality of CDN nodes, uploads the target content to a target CDN node in the plurality of CDN nodes, releases the target content after detecting that the target content is uploaded to the target CDN node, and uploads the target content to an Object Storage Server (OSS) in an asynchronous mode;

the Object Storage Server (OSS) is used for receiving the target content.

15. The system of claim 14, wherein the system is further configured to, upon receiving an HTTP request, parse a link corresponding to the target content to determine an upload time of the target content; judging whether the time interval between the current time and the uploading time exceeds a preset time or not; if the time interval between the current time and the uploading time does not exceed the preset time, returning to the target CDN node to check the target content; and if the time interval between the current time and the uploading time exceeds the preset time, returning to the Object Storage Server (OSS) to check the target content, wherein the HTTP request is used for requesting to check the target content.

Technical Field

the present invention relates to the technical field of content distribution networks, and in particular, to a content distribution method, device and system for a content distribution network.

Background

With the rapid development of the internet and the unified trend of markets such as global commodity service and the like being more and more obvious, the demand that various internet sites need to be rapidly accessed by global or whole-Network users is more and more strong, and a Content Delivery Network (CDN) service provides internet bottom layer technical support for such scenes.

For most users, the CDN will provide an available site as a source site, and after a site that needs acceleration accesses the CDN service, a user requests to access the CDN node, and if the cache is not hit, the user returns to the source site of the user, obtains content, and caches the content at the CDN node. The mode is influenced by factors such as site service forms, CDN cache strategies, multi-tenant cache resource competition and the like, and still may bring very large bandwidth cost to the user source station. Therefore, the CDN side provides Object Storage Service (OSS) Storage Service instead of the user source station function, and is also favored by many CDN users.

as shown in fig. 1, in a scenario where an OSS storage service is provided on a CDN side, a CDN user generally uploads new content to the OSS storage service periodically, however, an OSS is generally deployed centrally and takes over the task of uploading a large amount of user content, and the uploading time may be long, so that timely overall network delivery of new content on a site is affected.

Disclosure of Invention

The embodiment of the invention provides a content delivery method, a content delivery device and a content delivery system of a content delivery network, which at least solve the technical problem that the speed of uploading new resources by a CDN user is low because CDN users are distributed in the whole network and OSS storage service is centrally deployed and cannot provide a fast uploading link guarantee for all areas.

according to an aspect of an embodiment of the present invention, there is provided a content distribution method for a content distribution network, including: acquiring target content to be issued by a user; uploading the target content to a target CDN node; and after the target content is detected to be uploaded to the target CDN node, delivering the target content.

further, before uploading the target content to a target CDN node, the method further comprises: screening CDN nodes closest to the user network from a plurality of CDN nodes; and taking the CDN node closest to the user network as the target CDN node.

Further, after detecting that the target content is uploaded to the target CDN node, the method further includes: uploading the target content to an Object Storage Server (OSS).

Further, after detecting that the target content is uploaded to the target CDN node, delivering the target content includes: generating a link corresponding to the target content based on the identifier of the target CDN node; embedding a link corresponding to the target content into the target content; and issuing the target content carrying the corresponding link.

Further, based on the identifier of the target CDN node, generating a link corresponding to the target content further includes: and generating a link corresponding to the target content based on the identifier of the target CDN node and the uploading time, wherein the uploading time is the time when the target content is uploaded to the target CDN node.

Further, after the target content carrying the corresponding link is released, the method further includes: detecting whether an HTTP request is received, wherein the HTTP request is used for requesting to view the target content; when the HTTP request is received, analyzing a link corresponding to the target content to determine the uploading time of the target content; judging whether the time interval between the current time and the uploading time exceeds a preset time or not; if the time interval between the current time and the uploading time does not exceed the preset time, returning to the target CDN node to check the target content; and if the time interval between the current time and the uploading time exceeds the preset time, returning to the Object Storage Server (OSS) to check the target content.

Further, after generating a link corresponding to the target content based on the identifier of the target CDN node and the upload time, the method further includes: and encrypting the link corresponding to the target content.

Further, after uploading the target content into an Object Storage Server (OSS), the method further comprises: and deleting the target content in the target CDN node.

further, before uploading the target content to an Object Storage Server (OSS), the method further comprises: detecting whether the current network is in the low peak period of the internet; and if the current network is in the peak period of Internet surfing, executing the step of uploading the target content to an Object Storage Server (OSS).

according to another aspect of the embodiments of the present invention, there is also provided a content distribution apparatus of a content distribution network, including: the device comprises an acquisition unit, a distribution unit and a distribution unit, wherein the acquisition unit is used for acquiring target content to be issued by a user; the first uploading unit is used for uploading the target content to a target CDN node; and the delivery unit is used for delivering the target content after the target content is detected to be uploaded to the target CDN node.

further, the apparatus further comprises: the screening unit is used for screening CDN nodes closest to the user network from a plurality of CDN nodes before the target content is uploaded to the target CDN nodes; and the determining unit is used for taking the CDN node closest to the user network as the target CDN node.

Further, the apparatus further comprises: and a second uploading unit, configured to upload the target content to an Object Storage Server (OSS) after detecting that the target content is uploaded to the target CDN node.

further, the issue unit includes: a generating subunit, configured to generate a link corresponding to the target content based on the identifier of the target CDN node; the processing subunit is used for embedding the link corresponding to the target content into the target content; and the issuing subunit is used for issuing the target content carrying the corresponding link.

according to another aspect of the embodiments of the present invention, there is also provided a content distribution system of a content distribution network, including: a CDN node set which comprises a plurality of CDN nodes, uploads the target content to a target CDN node in the plurality of CDN nodes, releases the target content after detecting that the target content is uploaded to the target CDN node, and uploads the target content to an Object Storage Server (OSS) in an asynchronous mode; the Object Storage Server (OSS) is used for receiving the target content.

further, the system is also used for analyzing the link corresponding to the target content to determine the uploading time of the target content when the HTTP request is received; judging whether the time interval between the current time and the uploading time exceeds a preset time or not; if the time interval between the current time and the uploading time does not exceed the preset time, returning to the target CDN node to check the target content; and if the time interval between the current time and the uploading time exceeds the preset time, returning to the Object Storage Server (OSS) to check the target content, wherein the HTTP request is used for requesting to check the target content.

In the embodiment of the invention, the target content to be sent by a content delivery network CDN user is uploaded to a target CDN node, namely the target content is released, and the target content to be released by the user is obtained; uploading target content to a target CDN node; after the target content is detected to be uploaded to the target CDN node, the target content is released, the problem that the target content is released only after the target content is uploaded to the centrally deployed OSS storage service is avoided, the technical effect of uploading the target content by CDN users is improved, and the technical problem that the CDN users upload new resources at a low speed due to the fact that the CDN users are distributed in the whole network and the OSS storage service is centrally deployed and cannot provide fast uploading link guarantee for all areas is solved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:

FIG. 1 is a schematic diagram of an OSS storage service according to the prior art;

Fig. 2 is a flowchart of a content distribution method of a content distribution network provided according to an embodiment of the present invention;

Fig. 3 is a first flowchart of a content distribution method of an alternative content distribution network provided according to an embodiment of the present invention;

fig. 4 is a second flowchart of a content distribution method of an alternative content distribution network provided according to an embodiment of the present invention;

Fig. 5 is a schematic process diagram of a content distribution method of a content distribution network provided according to an embodiment of the present invention;

Fig. 6 is a schematic diagram of a content distribution apparatus of a content distribution network provided according to an embodiment of the present invention;

FIG. 7 is a schematic diagram of a content distribution system of a content distribution network provided in accordance with an embodiment of the present invention;

fig. 8 is a block diagram of a hardware configuration of a computer terminal according to an embodiment of the present invention; and

Fig. 9 is a block diagram of an alternative computer terminal according to an embodiment of the present invention.

Detailed Description

In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

First, some terms or terms appearing in the description of the embodiments of the present invention are applicable to the following explanations:

The CDN is called a Content Delivery Network, i.e., a Content Delivery Network. The basic idea is to avoid bottlenecks and links possibly influencing data transmission speed and stability on the Internet as far as possible, so that content transmission is faster and more stable. By placing node servers at various positions of the network to form a layer of intelligent virtual network on the basis of the existing internet, the CDN system can redirect the request of a user to a service node closest to the user in real time according to network flow, connection of each node, load condition, distance to the user, response time and other comprehensive information. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user for accessing the website.

The Object Storage Service (OSS) is a cloud Storage Service with high volume, safety, low cost and high reliability. The user can upload and download data at any time, at any place, on any internet device. Based on the OSS, the user can build various multimedia sharing websites, network disks, personal and enterprise data backup and other large-scale data-based services.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据同步播放方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类