CN102137143A - Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems - Google Patents
Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems Download PDFInfo
- Publication number
- CN102137143A CN102137143A CN2010105382786A CN201010538278A CN102137143A CN 102137143 A CN102137143 A CN 102137143A CN 2010105382786 A CN2010105382786 A CN 2010105382786A CN 201010538278 A CN201010538278 A CN 201010538278A CN 102137143 A CN102137143 A CN 102137143A
- Authority
- CN
- China
- Prior art keywords
- content
- network element
- media store
- store network
- file list
- 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.)
- Granted
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明实施例涉及内容分发网络领域,公开了一种基于内容分发网络的内容注入方法及相关设备、系统。其中,一种基于内容分发网络的内容注入方法包括:第二媒体存储网元接收第一媒体存储网元发送的内容文件列表,该内容文件列表由第一媒体存储网元在接收到内容提供设备注入的内容时发送,该内容文件列表用于第二媒体存储网元验证内容文件列表对应的内容是否完整;第二媒体存储网元根据上述内容文件列表验证第一媒体存储网元存储的内容是否完整,若是,则从第一媒体存储网元中复制内容并存储;若否,则通知内容提供设备重新注入内容至第一媒体存储网元。本发明实施例可以提高内容提供设备注入内容的安全性。
The embodiment of the present invention relates to the field of content distribution network, and discloses a content injection method based on content distribution network and related equipment and system. Wherein, a content injection method based on a content distribution network includes: the second media storage network element receives the content file list sent by the first media storage network element, and the content file list is received by the first media storage network element from the content providing device When the injected content is sent, the content file list is used by the second media storage network element to verify whether the content corresponding to the content file list is complete; the second media storage network element verifies whether the content stored by the first media storage network element is based on the above content file list Complete, if yes, copy the content from the first media storage network element and store it; if not, notify the content providing device to re-inject the content into the first media storage network element. The embodiment of the present invention can improve the security of the content injected by the content providing device.
Description
技术领域technical field
本发明涉及内容分发网络领域,尤其涉及一种基于内容分发网络的内容注入方法及相关设备、系统。The present invention relates to the field of content distribution network, in particular to a content injection method based on content distribution network and related equipment and system.
背景技术Background technique
内容分发网络(Content Delivery Network,CDN)是一种新型的网络构建方式,其特点是采用分布式缓存技术,就近为用户提供视频、音频、图片以及文档等服务,可以极大地提高服务质量,并且节约网络带宽资源。Content Delivery Network (CDN) is a new type of network construction method, which is characterized by the use of distributed caching technology to provide users with services such as video, audio, pictures, and documents nearby, which can greatly improve service quality, and Save network bandwidth resources.
在CDN中一般包括三类网元,分别是媒体控制(Media Control,MC)网元、媒体存储(Media Storage,MS)网元以及媒体交换(Media Switch,MX)网元。如图1所示的CDN中,MS网元用于存储内容提供设备(ContentProvider,CP)注入的内容,MS允许内容提供设备直接注入内容;MC网元用于实现内容控制和路由功能;MX网元用于实现内容交换功能,一般距离用户终端(User Equipment,UE)较近,并直接提供内容给UE。其中,每类网元均可能有多个实体,并组成云的方式对外提供服务。Generally, CDN includes three types of network elements, namely media control (Media Control, MC) network elements, media storage (Media Storage, MS) network elements, and media switching (Media Switch, MX) network elements. In the CDN shown in Figure 1, the MS network element is used to store the content injected by the content provider device (ContentProvider, CP), and the MS allows the content provider device to directly inject content; the MC network element is used to implement content control and routing functions; the MX network element The element is used to implement the content exchange function, and is generally closer to the user terminal (User Equipment, UE), and directly provides content to the UE. Among them, each type of network element may have multiple entities, and form a cloud to provide external services.
在CDN中一般会在至少二个MS中存储内容提供设备注入的同一份内容,达到容灾的目的,以提高内容存储的可靠性。其中,MS支持内容注入和内容复制功能。内容复制的优先级一般较低,在特殊场景(比如内容提供设备注入内容的数据量大、网络质量不好等)下,内容注入完成到内容复制耗时较长,在这段时间内,一旦MS1发生故障,将会导致新注入的内容丢失,影响内容提供设备对CDN的满意度。Generally, in a CDN, at least two MSs will store the same content injected by the content providing device to achieve the purpose of disaster recovery and improve the reliability of content storage. Among them, MS supports content injection and content replication functions. The priority of content replication is generally low. In special scenarios (such as the large amount of data injected by the content provider device, poor network quality, etc.), it takes a long time from the completion of content injection to content replication. During this period, once Failure of MS1 will result in the loss of newly injected content, which will affect the satisfaction of the content providing equipment with the CDN.
发明内容Contents of the invention
本发明实施例所要解决的技术问题是提供一种基于内容分发网络的内容注入方法及相关设备、系统,用于提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。The technical problem to be solved by the embodiments of the present invention is to provide a content injection method based on a content distribution network and related equipment and systems, which are used to improve the security of the content injected by the content providing equipment and improve the satisfaction of the content providing equipment to the CDN.
一种基于内容分发网络的内容注入方法,包括:A content injection method based on a content distribution network, comprising:
第二媒体存储网元接收第一媒体存储网元发送的内容文件列表,所述内容文件列表由所述第一媒体存储网元在接收到内容提供设备注入的内容时发送,所述内容文件列表用于所述第二媒体存储网元验证所述内容文件列表对应的内容是否完整;The second media storage network element receives the content file list sent by the first media storage network element, the content file list is sent by the first media storage network element when receiving the content injected by the content providing device, the content file list Used for the second media storage network element to verify whether the content corresponding to the content file list is complete;
所述第二媒体存储网元根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整,若是,则从所述第一媒体存储网元中复制所述内容并存储;若否,则通知所述内容提供设备重新注入内容至所述第一媒体存储网元。The second media storage network element verifies whether the content stored in the first media storage network element is complete according to the content file list, and if so, copies the content from the first media storage network element and stores it; if If not, notify the content providing device to re-inject content into the first media storage network element.
一种基于内容分发网络的内容注入方法,包括:A content injection method based on a content distribution network, comprising:
媒体控制网元接收第一媒体存储网元发送的内容文件列表,所述内容文件列表由所述第一媒体存储网元在接收到内容提供设备注入的内容时发送,所述内容文件列表用于所述媒体控制网元验证所述内容文件列表对应的内容是否完整;The media control network element receives the content file list sent by the first media storage network element, the content file list is sent by the first media storage network element when receiving the content injected by the content providing device, and the content file list is used for The media control network element verifies whether the content corresponding to the content file list is complete;
所述媒体控制网元根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整,若是,则通知第二媒体存储网元从所述第一媒体存储网元中复制所述内容并存储;若否,则通知所述内容提供设备重新注入内容至所述第一媒体存储网元。The media control network element verifies whether the content stored in the first media storage network element is complete according to the content file list, and if so, notifies the second media storage network element to copy the content from the first media storage network element. and store the content; if not, notify the content providing device to re-inject the content into the first media storage network element.
一种基于内容分发网络的媒体存储网元,包括:A content distribution network-based media storage network element, including:
接收模块,用于接收第一媒体存储网元发送的内容文件列表,所述内容文件列表由所述第一媒体存储网元在接收到内容提供设备注入的内容时发送,所述内容文件列表用于验证所述内容文件列表对应的内容是否完整;The receiving module is configured to receive the content file list sent by the first media storage network element, the content file list is sent by the first media storage network element when receiving the content injected by the content providing device, and the content file list is used To verify whether the content corresponding to the content file list is complete;
验证模块,用于根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整;A verification module, configured to verify whether the content stored in the first media storage network element is complete according to the content file list;
复制模块,用于在所述验证模块的验证结果为是时,从所述第一媒体存储网元中复制所述内容并存储;a copy module, configured to copy and store the content from the first media storage network element when the verification result of the verification module is yes;
通知模块,用于在所述验证模块的验证结果为否时,通知所述内容提供设备重新注入内容至所述第一媒体存储网元。A notification module, configured to notify the content providing device to re-inject content into the first media storage network element when the verification result of the verification module is negative.
一种基于内容分发网络的媒体控制网元,包括:A content distribution network-based media control network element, including:
接收单元,用于接收第一媒体存储网元发送的内容文件列表,所述内容文件列表由所述第一媒体存储网元在接收到内容提供设备注入的内容时发送,所述内容文件列表用于验证所述内容文件列表对应的内容是否完整;The receiving unit is configured to receive the content file list sent by the first media storage network element, the content file list is sent by the first media storage network element when receiving the content injected by the content providing device, and the content file list is used To verify whether the content corresponding to the content file list is complete;
验证单元,用于根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整;A verification unit, configured to verify whether the content stored in the first media storage network element is complete according to the content file list;
第一通知单元,用于在所述验证单元的验证结果为是时,通知第二媒体存储网元从所述第一媒体存储网元中复制所述内容并存储;A first notification unit, configured to notify a second media storage network element to copy and store the content from the first media storage network element when the verification result of the verification unit is yes;
第二通知单元,用于在所述验证单元的验证结果为否时,通知所述内容提供设备重新注入内容至所述第一媒体存储网元。The second notification unit is configured to notify the content providing device to re-inject content into the first media storage network element when the verification result of the verification unit is negative.
一种基于内容分发网络的内容注入系统,包括:A content injection system based on a content distribution network, comprising:
第一媒体存储网元、第二媒体存储网元和内容提供设备;a first media storage network element, a second media storage network element and a content providing device;
所述内容提供设备,用于注入内容至所述第一媒体存储网元;The content providing device is configured to inject content into the first media storage network element;
所述第一媒体存储网元,用于接收所述内容提供设备注入的内容,并发送内容文件列表至所述第二媒体存储网元,所述内容文件列表用于所述第二媒体存储网元验证所述内容文件列表对应的内容是否完整;The first media storage network element is configured to receive the content injected by the content providing device, and send a content file list to the second media storage network element, and the content file list is used in the second media storage network meta-verify whether the content corresponding to the content file list is complete;
所述第二媒体存储网元,用于接收所述第一媒体存储网元发送的内容文件列表,根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整,若是,则从所述第一媒体存储网元中复制所述内容并存储;若否,则通知所述内容提供设备重新注入内容至所述第一媒体存储网元。The second media storage network element is configured to receive the content file list sent by the first media storage network element, and verify whether the content stored in the first media storage network element is complete according to the content file list, and if so, then Copy and store the content from the first media storage network element; if not, notify the content providing device to re-inject the content into the first media storage network element.
一种基于内容分发网络的内容注入系统,包括:A content injection system based on a content distribution network, comprising:
第一媒体存储网元、第二媒体存储网元、内容提供设备和媒体控制网元;a first media storage network element, a second media storage network element, a content providing device and a media control network element;
所述内容提供设备,用于注入内容至所述第一媒体存储网元;The content providing device is configured to inject content into the first media storage network element;
所述第一媒体存储网元,用于接收所述内容提供设备注入的内容,并发送内容文件列表至所述媒体控制网元,所述内容文件列表用于所述媒体控制网元验证所述内容文件列表对应的内容是否完整;The first media storage network element is configured to receive the content injected by the content providing device, and send a content file list to the media control network element, and the content file list is used by the media control network element to verify the Whether the content corresponding to the content file list is complete;
所述媒体控制网元,用于接收所述第一媒体存储网元发送的内容文件列表,根据所述内容文件列表验证所述第一媒体存储网元存储的内容是否完整,若是,则通知所述第二媒体存储网元从所述第一媒体存储网元中复制所述内容并存储;若否,则通知所述内容提供设备重新注入内容至所述第一媒体存储网元;The media control network element is configured to receive the content file list sent by the first media storage network element, and verify whether the content stored in the first media storage network element is complete according to the content file list, and if so, notify the The second media storage network element copies the content from the first media storage network element and stores it; if not, notifies the content providing device to re-inject the content into the first media storage network element;
所述第二媒体存储网元,用于根据所述媒体控制网元的通知,从所述第一媒体存储网元中复制所述内容并存储。The second media storage network element is configured to copy and store the content from the first media storage network element according to the notification of the media control network element.
本发明实施例中,第二媒体存储网元接收到第一媒体存储网元发送的内容文件列表后,可以根据内容文件列表验证第一媒体存储网元存储的内容是否完整,如果是,则从第一媒体存储网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一媒体存储网元;此外,本发明实施例中,媒体控制网元也可以接收第一媒体存储网元发送的内容文件列表,并内容文件列表验证第一媒体存储网元存储的内容是否完整,如果是,则通知第二媒体存储网元从第一媒体存储网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一媒体存储网元;从而,本发明实施例可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。In the embodiment of the present invention, after the second media storage network element receives the content file list sent by the first media storage network element, it can verify whether the content stored by the first media storage network element is complete according to the content file list, and if so, then from The content is copied and stored in the first media storage network element; otherwise, the content providing device is notified to re-inject the content into the first media storage network element; in addition, in the embodiment of the present invention, the media control network element can also receive the first media storage network element The content file list sent, and the content file list to verify whether the content stored in the first media storage network element is complete, if yes, notify the second media storage network element to copy the content from the first media storage network element and store it; otherwise, notify The content providing device re-injects the content into the first media storage network element; thus, the embodiments of the present invention can improve the security of content injected by the content providing device, and improve the content providing device's satisfaction with the CDN.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为现有的一种CDN的示意图;FIG. 1 is a schematic diagram of an existing CDN;
图2为现有的一种基于CDN的内容注入方法的流程示意图;FIG. 2 is a schematic flow diagram of an existing CDN-based content injection method;
图3为本发明实施例中提供的一种基于CDN的内容注入方法的一个实施例流程示意图;FIG. 3 is a schematic flowchart of an embodiment of a CDN-based content injection method provided in an embodiment of the present invention;
图4为本发明实施例中提供的一种基于CDN的内容注入方法的另一个实施例流程示意图;FIG. 4 is a schematic flowchart of another embodiment of a CDN-based content injection method provided in an embodiment of the present invention;
图5为本发明实施例中提供的一种基于CDN的内容注入方法的另一个实施例流程示意图;FIG. 5 is a schematic flowchart of another embodiment of a CDN-based content injection method provided in the embodiment of the present invention;
图6为本发明实施例中提供的一种基于CDN的内容注入方法的又一个实施例流程示意图;FIG. 6 is a schematic flowchart of another embodiment of a CDN-based content injection method provided in the embodiment of the present invention;
图7为本发明实施例中提供的一种基于CDN的MS网元的结构示意图;FIG. 7 is a schematic structural diagram of a CDN-based MS network element provided in an embodiment of the present invention;
图8为本发明实施例中提供的另一种基于CDN的MS网元的结构示意图;FIG. 8 is a schematic structural diagram of another CDN-based MS network element provided in an embodiment of the present invention;
图9为本发明实施例中提供的一种基于CDN的MC网元的结构示意图;FIG. 9 is a schematic structural diagram of a CDN-based MC network element provided in an embodiment of the present invention;
图10为本发明实施例中提供的另一种基于CDN的MC网元的结构示意图;FIG. 10 is a schematic structural diagram of another CDN-based MC network element provided in an embodiment of the present invention;
图11为本发明实施例中提供的一种基于CDN的内容注入系统的结构示意图;FIG. 11 is a schematic structural diagram of a CDN-based content injection system provided in an embodiment of the present invention;
图12为本发明实施例中提供的另一种基于CDN的内容注入系统的结构示意图。FIG. 12 is a schematic structural diagram of another CDN-based content injection system provided in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例中提供一种基于CDN的内容注入方法及相关设备、系统,用于提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。The embodiment of the present invention provides a CDN-based content injection method and related equipment and system, which are used to improve the security of the content injected by the content providing equipment and improve the satisfaction of the content providing equipment to the CDN.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在介绍本发明实施例提供的基于CDN的内容注入方法及相关设备、系统之前,首先介绍一下现有的基于CDN的内容注入方法。请参阅图2,图2为现有的一种基于CDN的内容注入方法的流程示意图。如图2所示的内容注入方法中,在步骤201由MS1网元接收内容提供设备注入的内容,并在注入完成后向内容提供设备返回成功响应;在步骤202由MS1网元将新注入的内容复制到MS2网元,或由MS2网元主动到MS1网元来复制新注入的内容,以提高内容存储的可靠性。Before introducing the CDN-based content injection method and related equipment and systems provided by the embodiments of the present invention, first introduce the existing CDN-based content injection method. Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of an existing CDN-based content injection method. In the content injection method shown in Figure 2, in step 201, the MS1 network element receives the content injected by the content providing device, and returns a successful response to the content providing device after the injection is completed; in step 202, the newly injected content is sent by the MS1 network element The content is copied to the MS2 network element, or the MS2 network element actively copies the newly injected content to the MS1 network element, so as to improve the reliability of content storage.
上述方法中,由于内容复制的优先级一般较低,在内容提供设备注入内容的数据量大或网络质量不好等情况下,内容注入完成到内容复制耗时较长,在这段时间内,一旦MS1网元发生故障,上述方法将会导致新注入的内容丢失,影响内容提供设备对CDN的满意度。In the above method, since the priority of content replication is generally low, in the case of a large amount of data injected by the content provider device or poor network quality, it takes a long time from the completion of content injection to content replication. During this period, Once the MS1 network element fails, the above method will cause the loss of the newly injected content, which will affect the satisfaction of the content providing equipment to the CDN.
实施例一:Embodiment one:
请参阅图3,图3为本发明实施例一提供的一种基于CDN的内容注入方法流程示意图。其中,该内容注入方法可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a CDN-based content injection method provided by Embodiment 1 of the present invention. Wherein, the content injection method may include the following steps:
301、第二MS网元接收第一MS网元发送的内容文件列表,其中,该内容文件列表由第一MS网元在接收到内容提供设备注入的内容时发送,该内容文件列表用于第二MS网元验证内容文件列表对应的内容是否完整;301. The second MS network element receives the content file list sent by the first MS network element, wherein the content file list is sent by the first MS network element when receiving the content injected by the content providing device, and the content file list is used by the first MS network element 2. The MS network element verifies whether the content corresponding to the content file list is complete;
本实施例中,内容提供设备注入的内容可以是视频、音频、图片以及文档等等。In this embodiment, the content injected by the content providing device may be video, audio, picture, document and so on.
本实施例中,为了验证内容是否完整,上述的内容文件列表至少需要包括内容名称、内容大小以及内容类型。当然,上述的内容文件列表还可以包括其他的信息,例如当内容注入设备注入的内容是视频时,为了验证视频是否完整,上述的内容文件列表还可以包括内容的视频编解码类型、内容的视频帧速率等等。In this embodiment, in order to verify whether the content is complete, the above-mentioned content file list needs to include at least the content name, content size and content type. Of course, the above-mentioned content file list may also include other information. For example, when the content injected by the content injection device is a video, in order to verify whether the video is complete, the above-mentioned content file list may also include the video codec type of the content, the video codec of the content frame rate and more.
其中,上述的内容文件列表可以由内容提供设备注入第一MS网元。一个实施例中,内容提供设备可以将上述的内容文件列表和内容一起注入第一MS网元,再由第一MS网元将上述的内容文件列表发送给第二MS网元;另一个实施例中,内容提供设备可以先将上述的内容文件列表注入第一MS网元,然后再将内容注入第一MS网元,由第一MS网元将上述的内容文件列表发送给第二MS网元;或者内容提供设备可以先将内容注入第一MS网元,然后再将上述的内容文件列表注入第一MS网元,由第一MS网元将上述的内容文件列表发送给第二MS网元。Wherein, the above content file list may be injected into the first MS network element by the content providing device. In one embodiment, the content providing device may inject the above-mentioned content file list and content together into the first MS network element, and then the first MS network element sends the above-mentioned content file list to the second MS network element; another embodiment , the content providing device may first inject the above-mentioned content file list into the first MS network element, and then inject the content into the first MS network element, and the first MS network element sends the above-mentioned content file list to the second MS network element ; Or the content providing device can first inject the content into the first MS network element, and then inject the above-mentioned content file list into the first MS network element, and send the above-mentioned content file list to the second MS network element by the first MS network element .
对于内容提供设备而言,在其生成某一个内容之后,可以接收用户输入的用于验证该内容是否完整的信息(例如内容名称、内容大小以及内容类型等),然后根据用户输入的信息生成类似于配置文件列表的内容文件列表,并存储该内容与生成的内容文件列表的对应关系。For a content providing device, after generating a certain content, it can receive information input by the user for verifying whether the content is complete (such as content name, content size, content type, etc.), and then generate a similar The content file list based on the configuration file list, and store the corresponding relationship between the content and the generated content file list.
其中,上述的内容文件列表也可以由第一MS网元在接收到内容提供设备注入的内容后自行生成,并发送给第二MS网元,本发明实施例不作限定。Wherein, the above-mentioned content file list may also be generated by the first MS network element after receiving the content injected by the content providing device, and sent to the second MS network element, which is not limited in the embodiment of the present invention.
对于第一MS网元而言,在接收到内容提供设备注入的内容之后,可以接收用户输入的用于验证对该内容是否完整的信息(例如内容名称、内容大小以及内容类型等),然后根据用户输入的信息自动生成类似于配置文件列表的内容文件列表,并存储该内容与生成的内容文件列表的对应关系。For the first MS network element, after receiving the content injected by the content providing device, it can receive the information (such as content name, content size and content type, etc.) input by the user for verifying whether the content is complete, and then according to The information input by the user automatically generates a content file list similar to the configuration file list, and stores the corresponding relationship between the content and the generated content file list.
为了便于理解本发明实施例中提及的内容文件列表,下面举例进行说明。In order to facilitate understanding of the content file list mentioned in the embodiment of the present invention, an example is given below for illustration.
举例一:假设内容提供设备生成的内容为电影《AAA》,则内容提供设备可以接收用户输入的用于验证电影《AAA》是否完整的信息,例如用户输入的用于验证电影《AAA》是否完整的信息可以包括:电影《AAA》名称、电影《AAA》大小(一般指多少Mbit或Gbit)以及电影《AAA》类型等等,然后根据用户输入的信息自动生成类似于配置文件列表的内容文件列表,并存储电影《AAA》与生成的内容文件列表的对应关系。其中,内容提供设备生成的内容文件列表可以如表1所示:Example 1: Assuming that the content generated by the content providing device is the movie "AAA", the content providing device can receive the information input by the user to verify whether the movie "AAA" is complete, for example, the information input by the user to verify whether the movie "AAA" is complete The information can include: the name of the movie "AAA", the size of the movie "AAA" (generally refers to how many Mbit or Gbit), and the type of the movie "AAA", etc., and then automatically generate a list of content files similar to the list of configuration files according to the information entered by the user , and store the corresponding relationship between the movie "AAA" and the generated content file list. Wherein, the list of content files generated by the content providing device may be as shown in Table 1:
表1Table 1
其中,表1所述的内容文件列表中,还包括了用户输入的用于验证电影《AAA》是否完整的出品公司、制片地区、导演、编剧以及文件后缀、视频比特率、视频编解码类型等信息。表1仅仅是为了便于理解本发明实施例中提及的内容文件列表而列举的一个具体例子,本领域技术人员应当明白,为了验证内容提供设备生成的电影《AAA》是否完整,表1所示的内容文件列表还可以包含其他的信息,例如可读性等等。本发明实施例中,用于验证内容是否完整的内容文件列表至少需要包括内容名称、内容大小以及内容类型;本发明实施例不对内容文件列表进一步包括的其他信息种类进行限定。Among them, the content file list described in Table 1 also includes the production company, production area, director, screenwriter and file suffix, video bit rate, and video codec type input by the user to verify whether the movie "AAA" is complete. and other information. Table 1 is only a specific example listed for the convenience of understanding the list of content files mentioned in the embodiments of the present invention. Those skilled in the art should understand that in order to verify whether the movie "AAA" generated by the content providing device is complete, as shown in Table 1 The list of content files can also contain other information, such as readability and so on. In the embodiment of the present invention, the content file list used to verify whether the content is complete needs to include at least the content name, content size, and content type; the embodiment of the present invention does not limit the types of other information further included in the content file list.
举例二:假设内容提供设备注入第一MS网元的内容为歌曲《BBB》,则第一MS网元接收到内容提供设备注入的歌曲《BBB》之后,可以接收用户输入的用于验证歌曲《BBB》是否完整的信息,例如用户输入的用于验证歌曲《BBB》是否完整的信息可以包括:歌曲《BBB》名称、歌曲《BBB》大小(一般指多少Mbit)以及歌曲《BBB》类型等等,然后根据用户输入的信息自动生成类似于配置文件列表的内容文件列表,并存储歌曲《BBB》与生成的内容文件列表的对应关系。其中,内容提供设备生成的内容文件列表可以如表2所示:Example 2: Assuming that the content that the content providing device injects into the first MS network element is the song "BBB", after the first MS network element receives the song "BBB" injected by the content providing device, it can receive the song "BBB" input by the user for verification. Information on whether BBB is complete, for example, the information input by the user to verify whether the song "BBB" is complete may include: the name of the song "BBB", the size of the song "BBB" (generally how many Mbits) and the type of the song "BBB", etc. , and then automatically generate a content file list similar to the configuration file list according to the information input by the user, and store the corresponding relationship between the song "BBB" and the generated content file list. Wherein, the list of content files generated by the content providing device may be as shown in Table 2:
表2Table 2
其中,表2仅仅是为了便于理解本发明实施例中提及的内容文件列表而列举的一个具体例子,本领域技术人员应当明白,为了验证内容提供设备生成的歌曲《BBB》是否完整,表2所示的内容文件列表还可以包含其他的用于验证歌曲《BBB》是否完整的信息,例如可读性等等。Wherein, Table 2 is only a specific example listed for the convenience of understanding the list of content files mentioned in the embodiments of the present invention. Those skilled in the art should understand that in order to verify whether the song "BBB" generated by the content providing device is complete, Table 2 The shown content file list may also contain other information for verifying whether the song "BBB" is complete, such as readability and so on.
302、第二MS网元根据上述内容文件列表验证第一MS网元存储的内容是否完整,若是,则从第一MS网元中复制内容并存储;若否,则通知内容提供设备重新注入内容至第一MS网元。302. The second MS network element verifies whether the content stored in the first MS network element is complete according to the above content file list, if yes, copy the content from the first MS network element and store it; if not, notify the content providing device to re-inject the content to the first MS network element.
一个可选的实施方式中,第二MS网元根据上述内容文件列表验证第一MS网元存储的内容是否完整可以为:In an optional implementation manner, the second MS network element verifies whether the content stored in the first MS network element is complete according to the above content file list may be:
A、第二MS网元发送验证请求消息至第一MS网元网元;A. The second MS network element sends a verification request message to the first MS network element;
B、第二MS网元接收第一MS网元发送的第二内容文件列表,其中,第二内容文件列表由第一MS网元在接收到上述的验证请求消息后根据当前存储的内容生成;B. The second MS network element receives the second content file list sent by the first MS network element, wherein the second content file list is generated by the first MS network element according to the currently stored content after receiving the above-mentioned verification request message;
C、第二MS网元验证上述的内容文件列表与第二内容文件列表是否相同,若是,则确认第一MS网元存储的内容完整;若否,则确认第一MS网元存储的内容不完整。C. The second MS network element verifies whether the above-mentioned content file list is the same as the second content file list, and if so, confirms that the content stored in the first MS network element is complete; if not, then confirms that the content stored in the first MS network element is not whole.
以上述例子进行说明,假设内容提供设备注入第一MS网元的内容为电影《AAA》,内容提供设备注入第一MS网元的或者第一MS网元自行生成的用于验证电影《AAA》是否完整的内容文件列表可以如表1所示,第一MS网元将用于表1所示的内容文件列表发送给第二MS网元;第二MS网元发送验证请求消息至第一MS网元,第一MS网元接收到第二MS网元发送的验证请求消息后,根据当前存储的内容生成第二内容文件列表,并发送给第二MS网元;第二MS网元验证表1所示的内容文件列表与第二内容文件列表是否相同,如果是,则确认第一MS网元存储的内容完整,如果否,则确认第一MS网元存储的内容不完整。例如,如果第二MS网元验证的表1所示的内容文件列表中用于验证电影《AAA》是否完整的信息与第二内容文件列表中用于验证电影《AAA》是否完整的信息完全相同,则说明第一MS网元存储的电影《AAA》完整,第二MS网元可以从第一MS网元中复制电影《AAA》并存储;反之,如果第二MS网元验证的表1所示的内容文件列表中用于验证电影《AAA》是否完整的信息与第二内容文件列表中用于验证电影《AAA》是否完整的信息有一项或多项不相同,则说明第一MS网元存储的电影《AAA》不完整(可能发生异常导致不完整),需要通知内容提供设备重新注入电影《AAA》至第一MS网元。Using the above example to illustrate, assume that the content that the content providing device injects into the first MS network element is the movie "AAA", and the content that the content providing device injects into the first MS network element or that the first MS network element generates for verification of the movie "AAA" Whether the complete content file list can be as shown in Table 1, the first MS network element sends the content file list shown in Table 1 to the second MS network element; the second MS network element sends a verification request message to the first MS Network element, after receiving the verification request message sent by the second MS network element, the first MS network element generates a second content file list according to the currently stored content, and sends it to the second MS network element; the second MS network element verification table Whether the content file list shown in 1 is the same as the second content file list, if yes, confirm that the content stored in the first MS network element is complete; if not, confirm that the content stored in the first MS network element is incomplete. For example, if the information used to verify whether the movie "AAA" is complete in the content file list shown in Table 1 verified by the second MS network element is exactly the same as the information used to verify whether the movie "AAA" is complete in the second content file list , it means that the movie "AAA" stored by the first MS network element is complete, and the second MS network element can copy and store the movie "AAA" from the first MS network element; otherwise, if the second MS network element verifies the movie "AAA" If one or more of the information used to verify whether the movie "AAA" is complete in the displayed content file list is different from the information used to verify whether the movie "AAA" is complete in the second content file list, it means that the first MS network element The stored movie "AAA" is incomplete (abnormality may cause incompleteness), and the content providing device needs to be notified to re-inject the movie "AAA" into the first MS network element.
其中,若第二MS网元验证表1所示的内容文件列表中用于验证电影《AAA》是否完整的信息与第二内容文件列表中用于验证电影《AAA》是否完整的信息有一项或多项不相同,则说明第一MS网元存储的电影《AAA》不完整。因为表1所示的内容文件列表生成后,用于验证电影《AAA》是否完整的信息是固定不变的,如果第二内容文件列表中用于验证电影《AAA》是否完整的信息存在一项或多项与表1所示的信息不同,则只能说明是电影《AAA》发送了异常,导致电影《AAA》不完整。Wherein, if the second MS network element verifies that the information used to verify whether the movie "AAA" is complete in the content file list shown in Table 1 and the information used to verify whether the movie "AAA" is complete in the second content file list have one or If multiple items are different, it means that the movie "AAA" stored by the first MS network element is incomplete. Because after the content file list shown in Table 1 is generated, the information used to verify whether the movie "AAA" is complete is fixed, if there is an item of information used to verify whether the movie "AAA" is complete in the second content file list If one or more pieces of information are different from the information shown in Table 1, it can only indicate that the movie "AAA" sent an exception, resulting in the incompleteness of the movie "AAA".
本发明实施例中,第二MS网元可以依次读取表1所示的内容文件列表中的每一项信息,并依次将读取的每一项信息与第二内容文件列表中对应的信息进行比较,若比较结果均相同,则表示第一MS网元存储的内容完整,第二MS网元可以从第一MS网元中复制内容并存储;反之,若比较结果有不相同的,则表示第一MS网元存储的内容不完整,第二MS网元可以通知内容提供设备重新注入内容至第一MS网元。In the embodiment of the present invention, the second MS network element can sequentially read each item of information in the content file list shown in Table 1, and sequentially compare each item of information read with the corresponding information in the second content file list If the comparison results are the same, it means that the content stored in the first MS network element is complete, and the second MS network element can copy and store the content from the first MS network element; otherwise, if the comparison results are different, then It means that the content stored in the first MS network element is incomplete, and the second MS network element may notify the content providing device to re-inject the content into the first MS network element.
在特殊场景下,例如内容提供设备注入内容的数据量较大、网络质量不好等,会导致第二MS网元从第一MS网元中复制内容的时间较长,因此可能会出现这样的情况,即第二MS网元根据内容文件列表在复制内容之前验证到第一MS网元中存储的内容完整,但是在第二MS网元开始复制内容时或者在复制内容的过程中,第一MS网元中存储的内容发生了异常,导致第一MS网元中存储的内容不完整。在这样的情况下,为了进一步提高内容存储的安全性,第二MS网元从第一MS网元中复制内容并存储之后,还应该根据内容文件列表验证从第一MS网元中复制并存储的内容是否完整,若是,则保持存储从第一MS网元中复制的内容;若否,则通知内容提供设备重新注入内容至第一MS网元。In special scenarios, such as a large amount of data injected by the content provider device, poor network quality, etc., it will take a long time for the second MS network element to copy the content from the first MS network element, so such a situation may occur The situation, that is, the second MS network element verifies that the content stored in the first MS network element is complete before copying the content according to the content file list, but when the second MS network element starts to copy the content or in the process of copying the content, the first MS network element The content stored in the MS network element is abnormal, resulting in incomplete content stored in the first MS network element. In this case, in order to further improve the security of content storage, after the second MS network element copies and stores the content from the first MS network element, it should also verify the copy and store from the first MS network element according to the content file list Whether the content of the content is complete, if yes, keep storing the copied content from the first MS network element; if not, notify the content providing device to re-inject the content into the first MS network element.
本发明实施例中,第二MS网元验证到第一MS网元存储的内容完整时,可以主动到第一MS网元中复制内容并存储;也可以通知第一MS网元,由第一MS网元复制内容并发送至第二MS网元存储。In the embodiment of the present invention, when the second MS network element verifies that the content stored in the first MS network element is complete, it can take the initiative to copy and store the content in the first MS network element; it can also notify the first MS network element, and the first MS network element The MS network element copies the content and sends it to the second MS network element for storage.
本发明实施例中,第二MS网元可以采用以下任意一种方式来通知内容提供设备重新注入内容至第一MS网元:In the embodiment of the present invention, the second MS network element may use any of the following methods to notify the content providing device to re-inject content into the first MS network element:
方式一:第二MS网元向内容提供设备发送通知消息,该通知消息用于指示内容提供设备重新注入内容至第一MS网元;Mode 1: the second MS network element sends a notification message to the content providing device, and the notification message is used to instruct the content providing device to re-inject content into the first MS network element;
方式二:第二MS网元向第一MS网元发送通知消息,该通知消息用于指示第一MS网元告知内容提供设备重新注入内容。Mode 2: The second MS network element sends a notification message to the first MS network element, where the notification message is used to instruct the first MS network element to notify the content providing device to re-inject the content.
其中,第二MS网元或第一MS网元可以通过互联网与内容提供设备之间进行交互,这是本领域公知常识,本发明实施例不作赘述。Wherein, the second MS network element or the first MS network element can interact with the content providing device through the Internet, which is common knowledge in the field, and will not be described in this embodiment of the present invention.
上述实施例中,第二MS网元可以在内容提供设备的内容成功注入第一MS网元到第二MS网元开始从第一MS网元复制内容这段时间内根据内容文件列表验证第一MS网元存储的内容是否完整,如果是,则可以从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。In the above-mentioned embodiment, the second MS network element can verify the first MS network element according to the content file list during the period when the content of the content providing device is successfully injected into the first MS network element and the second MS network element starts copying content from the first MS network element. Whether the content stored in the MS network element is complete, if yes, copy the content from the first MS network element and store it; otherwise, notify the content providing device to re-inject the content into the first MS network element; thus, the injection of the content providing device can be improved. The security of content improves the satisfaction of content providing equipment with CDN.
另外,本发明实施例提供的内容注入方法中,内容提供设备可以在内容成功注入第一MS网元之后,启动下一次内容注入任务,而无需等待第二MS网元从第一MS网元中复制内容之后再启动下一次内容注入任务。由于内容复制的耗时是比较长的,而且内容复制任务的优先级一般也是较低的,如果内容提供设备在第二MS网元从第一MS网元中复制内容之后再启动下一次内容注入任务的话,将会降低内容提供设备注入内容的效率。因此,本发明实施例提供的内容注入方法可以提高内容提供设备注入内容至第一MS网元的效率,提高内容提供设备的客户满意度。In addition, in the content injection method provided by the embodiment of the present invention, the content providing device can start the next content injection task after the content is successfully injected into the first MS network element, without waiting for the second MS network element to receive from the first MS network element. After copying the content, start the next content injection task. Since content duplication takes a relatively long time, and the priority of the content duplication task is generally low, if the content providing device starts the next content injection after the second MS network element duplicates the content from the first MS network element task, it will reduce the efficiency of the content providing device to inject content. Therefore, the content injection method provided by the embodiment of the present invention can improve the efficiency of the content providing device injecting content into the first MS network element, and improve the customer satisfaction of the content providing device.
另外,本发明实施例提供的内容注入方法中,仅需要暴露1个MS给内容提供设备注入内容即可,而不需要同时暴露多个MS网元给内容提供设备注入内容。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In addition, in the content injection method provided by the embodiment of the present invention, it is only necessary to expose one MS to inject content to the content providing device, instead of exposing multiple MS network elements to inject content to the content providing device at the same time. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例二:Embodiment two:
请参阅图4,图4为本发明实施例二中提供的一种基于CDN的内容注入方法流程示意图。其中,该内容注入方法可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of a CDN-based content injection method provided in Embodiment 2 of the present invention. Wherein, the content injection method may include the following steps:
401、内容提供设备获取第一MS网元的地址,并注入内容至第一MS网元;401. The content providing device acquires the address of the first MS network element, and injects content into the first MS network element;
本发明实施例中,内容提供设备注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device may be video, audio, picture, document and so on.
402、第一MS网元接收到内容提供设备注入的内容时,发送内容文件列表至第二MS网元,其中,该内容文件列表用于第二MS网元验证内容文件列表对应的内容是否完整;402. When the first MS network element receives the content injected by the content providing device, send the content file list to the second MS network element, wherein the content file list is used by the second MS network element to verify whether the content corresponding to the content file list is complete ;
其中,上述的内容文件列表可以由内容提供设备注入第一MS网元,也可以由第一MS网元在接收到内容提供设备注入的内容后自行生成。Wherein, the above-mentioned content file list may be injected into the first MS network element by the content providing device, or may be generated by the first MS network element after receiving the content injected by the content providing device.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
403、第二MS网元接收第一MS网元发送的内容文件列表,并根据上述内容文件列表验证第一MS网元存储的内容是否完整,若是,则执行步骤404;若否,则执行405;403. The second MS network element receives the content file list sent by the first MS network element, and verifies whether the content stored in the first MS network element is complete according to the above content file list, if yes, execute step 404; if not, execute step 405 ;
其中,第二MS网元根据上述内容文件列表验证第一MS网元存储的内容是否完整的实现方式在上述实施例一中已经给与详细介绍,本实施例不作复述。Wherein, the implementation manner of the second MS network element verifying whether the content stored in the first MS network element is complete according to the above content file list has been introduced in detail in the first embodiment above, and will not be repeated in this embodiment.
404、第二MS网元从第一MS网元中复制内容并存储;404. The second MS network element copies and stores the content from the first MS network element;
本发明实施例中,第二MS网元验证到第一MS网元存储的内容完整时,可以主动到第一MS网元中复制内容并存储;也可以通知第一MS网元,由第一MS网元复制内容并发送至第二MS网元存储。In the embodiment of the present invention, when the second MS network element verifies that the content stored in the first MS network element is complete, it can take the initiative to copy and store the content in the first MS network element; it can also notify the first MS network element, and the first MS network element The MS network element copies the content and sends it to the second MS network element for storage.
作为一种可选的实施方式,第二MS网元从第一MS网元中复制内容并存储之后,可以将第一MS网元发送的内容文件列表删除。As an optional implementation manner, after the second MS network element copies and stores the content from the first MS network element, it may delete the content file list sent by the first MS network element.
405、第二MS网元通知内容提供设备重新注入内容至第一MS网元。405. The second MS network element notifies the content providing device to re-inject content into the first MS network element.
其中,在验证到第一MS网元存储的内容不完整时,首先需要对第一MS网元存储的内容进行恢复,然后第二MS网元才进行内容复制和存储,这样才能最大程度地确保第二MS网元复制和存储的内容是正常的。Among them, when it is verified that the content stored in the first MS network element is incomplete, it is first necessary to restore the content stored in the first MS network element, and then the second MS network element performs content copying and storage, so as to ensure maximum The content copied and stored by the second MS network element is normal.
本实施例中,上述的步骤404与步骤405是并列的,没有先后顺序的限制。In this embodiment, the above-mentioned step 404 and step 405 are parallel, and there is no restriction on the sequence.
本发明实施例中,第二MS网元可以采用实施例一中描述的任意一种方式来通知内容提供设备重新注入内容至第一MS网元。In this embodiment of the present invention, the second MS network element may use any of the methods described in Embodiment 1 to notify the content providing device to re-inject content into the first MS network element.
作为一种可选的实施方式,如果存在第三MS网元,而且第三MS网元预先存储了内容提供设备注入的同一份内容,则第二MS网元在验证到第一MS网元中存储的内容不完整时,可以优先通知第一MS网元从第三MS网元中恢复内容提供设备注入的同一份内容,如果第一MS网元从第三MS网元中恢复内容失败,则第二MS网元可以通知内容提供设备重新注入内容至第一MS网元。As an optional implementation manner, if there is a third MS network element, and the third MS network element pre-stores the same content injected by the content providing device, the second MS network element When the stored content is incomplete, the first MS network element can be preferentially notified to restore the same content injected by the content providing device from the third MS network element. If the first MS network element fails to restore the content from the third MS network element, then The second MS network element may notify the content providing device to re-inject content into the first MS network element.
本发明实施例中,为了进一步提高内容存储的安全性,第二MS网元从第一MS网元中复制内容并存储之后,进一步根据内容文件列表验证从第一MS网元中复制并存储的内容是否完整,若是,则保持存储从第一MS网元中复制的内容;若不一致,则通知内容提供设备重新注入内容至第一MS网元,进一步地,第二MS网元可以删除存储的不一致的内容。In the embodiment of the present invention, in order to further improve the security of content storage, after the second MS network element copies and stores the content from the first MS network element, it further verifies the contents copied and stored from the first MS network element according to the content file list. Whether the content is complete, if so, keep storing the content copied from the first MS network element; if not, notify the content providing device to re-inject the content into the first MS network element, and further, the second MS network element can delete the stored inconsistent content.
在CDN中,为了保证内容存储的可靠性,内容提供设备注入的同一份内容一般会在多个MS网元进行存储,但由于复制内容的滞后性等原因,可能会导致多个MS网元存储的内容提供设备注入的同一份内容不一致,所以MC网元需要验证(可定期发起验证,也可以人工随时发起验证)多个MS网元中存储的内容提供设备注入的同一份内容是否一致,如果不一致,则通知存储内容不一致的MS网元启动复制或删除过程,以保证存储内容的标识信息一致。In CDN, in order to ensure the reliability of content storage, the same content injected by the content providing device is generally stored in multiple MS network elements, but due to the lag of copying content, it may cause multiple MS network elements to store Therefore, the MC network element needs to verify whether the same content injected by the content providing device stored in multiple MS network elements is consistent (the verification can be initiated periodically or manually at any time). Inconsistent, notify the MS network element with inconsistent stored content to start a copy or delete process, so as to ensure that the identification information of the stored content is consistent.
在CND中,当MX网元访问一个MS网元时,如找不到内容提供设备注入的内容,则应去其他MS网元上继续查找。In CND, when an MX network element accesses an MS network element, if the content injected by the content providing device cannot be found, it should go to other MS network elements to continue searching.
本实施例二中,第二MS网元可以根据内容文件列表验证第一MS网元存储的内容是否完整,如果是,则可以从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。另外,本发明实施例提供的内容注入方法可以提高内容提供设备注入内容至第一MS网元的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In the second embodiment, the second MS network element can verify whether the content stored in the first MS network element is complete according to the content file list, and if so, it can copy the content from the first MS network element and store it; The device re-injects the content to the first MS network element; thus, the security of the content injected by the content providing device can be improved, and the content providing device's satisfaction with the CDN can be improved. In addition, the content injection method provided by the embodiment of the present invention can improve the efficiency of the content providing device injecting content into the first MS network element. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例三:Embodiment three:
请参阅图5,图5为本发明实施例三提供的另一种基于CDN的内容注入方法流程示意图。其中,该内容注入方法可以包括以下步骤:Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of another CDN-based content injection method provided by Embodiment 3 of the present invention. Wherein, the content injection method may include the following steps:
501、MC网元接收第一MS网元发送的内容文件列表,其中,该内容文件列表由第一MS网元在接收到内容提供设备注入的内容时发送,该内容文件列表用于MC网元验证内容文件列表对应的内容是否完整;501. The MC network element receives the content file list sent by the first MS network element, wherein the content file list is sent by the first MS network element when receiving the content injected by the content providing device, and the content file list is used by the MC network element Verify that the content corresponding to the content file list is complete;
其中,上述的内容文件列表可以由内容提供设备注入第一MS网元,再由第一MS网元将上述的内容文件列表发送给MC网元;或者上述的内容文件列表也可以由第一MS网元在接收到内容提供设备注入的内容后自行生成,并发送给MC网元,本发明实施例不作限定。Wherein, the above-mentioned content file list may be injected into the first MS network element by the content providing device, and then the above-mentioned content file list is sent to the MC network element by the first MS network element; or the above-mentioned content file list may also be provided by the first MS network element. After receiving the content injected by the content providing device, the network element generates it by itself, and sends it to the MC network element, which is not limited in the embodiment of the present invention.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
502、MC网元根据上述内容文件列表验证第一MS网元存储的内容是否完整,若是,则通知第二MS网元从第一MS网元中复制内容并存储;若否,则通知内容提供设备重新注入内容至第一MS网元。502. The MC network element verifies whether the content stored in the first MS network element is complete according to the above content file list, and if so, notifies the second MS network element to copy and store the content from the first MS network element; if not, notifies the content provider The device re-injects content into the first MS network element.
作为一个可选的实施方式,MC网元根据上述内容文件列表验证第一MS网元存储的内容是否完整可以为:As an optional implementation manner, the MC network element verifies whether the content stored in the first MS network element is complete according to the above content file list may be:
A、MC网元发送验证请求消息至第一MS网元;A. The MC network element sends a verification request message to the first MS network element;
B、MC网元接收第一MS网元发送的第二内容文件列表,该第二内容文件列表由第一MS网元在接收到上述验证请求消息后根据存储的内容生成;B. The MC network element receives the second content file list sent by the first MS network element, and the second content file list is generated by the first MS network element according to the stored content after receiving the verification request message;
C、MC网元验证上述的内容文件列表与第二内容文件列表是否相同,若是,则确认第一MS网元存储的内容完整;若否,则确认第一MS网元存储的内容不完整。C. The MC network element verifies whether the above-mentioned content file list is the same as the second content file list, and if so, confirms that the content stored in the first MS network element is complete; if not, then confirms that the content stored in the first MS network element is incomplete.
本发明实施例中,为了进一步提高内容存储的安全性,当第二MS网元从第一MS网元中复制内容并存储之后,MC网元还应该根据上述内容文件列表验证第二MS网元从第一MS网元中复制并存储的内容是否完整,若是,则通知第二MS网元保持存储从第一MS网元中复制的内容;若否,则通知内容提供设备重新注入内容至第一MS网元。In the embodiment of the present invention, in order to further improve the security of content storage, after the second MS network element copies and stores the content from the first MS network element, the MC network element should also verify the second MS network element according to the above content file list Whether the content copied and stored from the first MS network element is complete, if so, notify the second MS network element to keep storing the content copied from the first MS network element; if not, then notify the content providing device to re-inject the content into the first MS network element An MS network element.
本发明实施例中,MC网元可以采用以下任意一种方式来通知内容提供设备重新注入内容至第一MS网元:In the embodiment of the present invention, the MC network element may use any of the following methods to notify the content providing device to re-inject content into the first MS network element:
方式一:MC网元向内容提供设备发送通知消息,该通知消息用于指示内容提供设备重新注入内容至第一MS网元;Mode 1: The MC network element sends a notification message to the content providing device, and the notification message is used to instruct the content providing device to re-inject content into the first MS network element;
方式二:MC网元向第一MS网元发送通知消息,该通知消息用于指示第一MS网元告知内容提供设备重新注入内容。Mode 2: The MC network element sends a notification message to the first MS network element, and the notification message is used to instruct the first MS network element to notify the content providing device to re-inject the content.
本发明实施例中,MC网元可以在内容提供设备内容成功注入第一MS网元到第二MS网元开始从第一MS网元中复制内容这段时间内根据内容文件列表验证验证第一MS网元存储的内容是否完整,若是,则通知第二MS网元从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。另外,本发明实施例提供的内容注入方法可提高内容提供设备注入内容至第一MS网元的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In the embodiment of the present invention, the MC network element can verify and verify the first MS network element according to the content file list during the period from the time when the content of the content providing device is successfully injected into the first MS network element and the second MS network element starts copying content from the first MS network element. Whether the content stored in the MS network element is complete, if so, notify the second MS network element to copy the content from the first MS network element and store it; otherwise, notify the content providing device to re-inject the content into the first MS network element; thus, it can improve The security of the content injected by the content providing device improves the satisfaction of the content providing device to the CDN. In addition, the content injection method provided by the embodiment of the present invention can improve the efficiency of the content providing device injecting content into the first MS network element. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例四:Embodiment four:
请参阅图6,图6为本发明实施例四提供的另一种基于CDN的内容注入方法流程示意图。其中,该内容注入方法可以包括以下步骤:Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of another CDN-based content injection method provided by Embodiment 4 of the present invention. Wherein, the content injection method may include the following steps:
601、内容提供设备获取第一MS网元的地址,并注入内容至第一MS网元;601. The content providing device obtains the address of the first MS network element, and injects content into the first MS network element;
本发明实施例中,内容提供设备注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device may be video, audio, picture, document and so on.
602、第一MS网元接收到内容提供设备注入的内容时,发送内容文件列表至MC网元,其中,该内容文件列表用于MC网元验证内容文件列表对应的内容是否完整;602. When the first MS network element receives the content injected by the content providing device, send the content file list to the MC network element, where the content file list is used by the MC network element to verify whether the content corresponding to the content file list is complete;
其中,上述的内容文件列表可以由内容提供设备注入第一MS网元,也可以由第一MS网元在接收到内容提供设备注入的内容后自行生成。Wherein, the above-mentioned content file list may be injected into the first MS network element by the content providing device, or may be generated by the first MS network element after receiving the content injected by the content providing device.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
603、MC网元接收第一MS网元发送的内容文件列表,并根据上述的内容文件列表验证第一MS网元存储的内容是否完整,若是,则执行步骤604;若否,则执行605;603. The MC network element receives the content file list sent by the first MS network element, and verifies whether the content stored in the first MS network element is complete according to the above-mentioned content file list, and if so, executes step 604; if not, executes 605;
其中,MC网元根据上述内容文件列表验证第一MS网元存储的内容是否完整的实现方式在上述实施例三中已经给与详细介绍,本实施例不作复述。Wherein, the implementation manner of the MC network element verifying whether the content stored in the first MS network element is complete according to the content file list has been introduced in detail in the third embodiment above, and will not be repeated in this embodiment.
604、通知第二MS网元从第一MS网元中复制内容并存储;604. Notify the second MS network element to copy and store the content from the first MS network element;
本发明实施例中,MC网元在验证出第一MS网元存储的内容完整之后,可以通知第二MS网元,使得第二MS网元可以主动到第一MS网元中复制内容并存储;或者也可以使第二MS网元通知第一MS网元,由第一MS网元复制内容并发送至第二MS网元存储。In the embodiment of the present invention, after the MC network element verifies that the content stored in the first MS network element is complete, it can notify the second MS network element, so that the second MS network element can actively copy and store the content in the first MS network element. ; Or the second MS network element can be made to notify the first MS network element, and the first MS network element copies the content and sends it to the second MS network element for storage.
作为一个可选的实施方式,当第二MS网元从第一MS网元中复制内容并存储之后,MC网元可以将第一MS网元发送的内容文件列表删除。As an optional implementation manner, after the second MS network element copies and stores the content from the first MS network element, the MC network element may delete the content file list sent by the first MS network element.
605、MC网元通知内容提供设备重新注入内容至第一MS网元。605. The MC network element notifies the content providing device to re-inject the content into the first MS network element.
其中,在验证到第一MS网元存储的内容不完整时,MC网元首先需要对第一MS网元存储的内容进行恢复,然后MC网元才通知第二MS网元进行内容复制和存储,这样才能最大程度地确保第二MS网元复制和存储的内容是正常的。Among them, when it is verified that the content stored in the first MS network element is incomplete, the MC network element first needs to restore the content stored in the first MS network element, and then the MC network element notifies the second MS network element to copy and store the content , so as to ensure that the content copied and stored by the second MS network element is normal to the greatest extent.
本实施例中,上述的步骤604与步骤605是并列的,没有先后顺序的限制。In this embodiment, the above-mentioned step 604 and step 605 are parallel, and there is no restriction on the sequence.
本发明实施例中,MC网元可以采用实施例三中描述的任意一种方式来通知内容提供设备重新注入内容至第一MS网元。In the embodiment of the present invention, the MC network element may use any of the methods described in Embodiment 3 to notify the content providing device to re-inject the content into the first MS network element.
作为一种可选的实施方式,如果存在第三MS网元,而且第三MS网元预先存储了内容提供设备注入的同一份内容,则MC网元在验证到第一MS网元中存储的内容不完整时,可以优先通知第一MS网元从第三MS网元中恢复内容提供设备注入的同一份内容,如果第一MS网元从第三MS网元中恢复内容失败,则MC网元可以通知内容提供设备重新注入内容至第一MS网元。As an optional implementation manner, if there is a third MS network element, and the third MS network element pre-stores the same content injected by the content providing device, the MC network element verifies the content stored in the first MS network element When the content is incomplete, the first MS network element can be notified first to restore the same content injected by the content providing device from the third MS network element. If the first MS network element fails to restore the content from the third MS network element, the MC network element The element may notify the content providing device to re-inject the content into the first MS network element.
本发明实施例中,为了进一步提高内容存储的安全性,MC网元在第二MS网元从第一MS网元中复制内容并存储之后,进一步根据上述的内容文件列表验证第二MS网元从第一MS网元中复制并存储的内容是否完整,若是,则通知第二MS网元保持存储从第一MS网元中复制的内容;若否,则MC网元通知内容提供设备重新注入内容至第一MS网元,进一步地,MC网元可以通知第二MS网元删除存储的不一致的内容。In the embodiment of the present invention, in order to further improve the security of content storage, after the second MS network element copies the content from the first MS network element and stores it, the MC network element further verifies the second MS network element according to the above-mentioned content file list Whether the content copied and stored from the first MS network element is complete, if so, notify the second MS network element to keep storing the content copied from the first MS network element; if not, then the MC network element notifies the content providing device to re-inject The content is sent to the first MS network element, and further, the MC network element may notify the second MS network element to delete the stored inconsistent content.
在CDN中,为了保证内容存储的可靠性,内容提供设备注入的同一份内容一般会在多个MS网元进行存储,但由于复制内容的滞后性等原因,可能会导致多个MS网元存储的内容提供设备注入的同一份内容不一致,所以MC网元需要验证(可定期发起验证,也可以人工随时发起验证)多个MS网元中存储的内容提供设备注入的同一份内容是否一致,如果不一致,则通知存储内容不一致的MS网元启动复制或删除过程,以保证存储内容一致。In CDN, in order to ensure the reliability of content storage, the same content injected by the content providing device is generally stored in multiple MS network elements, but due to the lag of copying content, it may cause multiple MS network elements to store Therefore, the MC network element needs to verify whether the same content injected by the content providing device stored in multiple MS network elements is consistent (the verification can be initiated periodically or manually at any time). Inconsistent, notify the MS network element with inconsistent stored content to start the copy or delete process to ensure consistent stored content.
在CND中,当MX网元访问一个MS网元时,如找不到内容提供设备注入的内容,则应去其他MS上继续查找。In CND, when an MX network element accesses an MS network element, if the content injected by the content providing device cannot be found, it should go to other MSs to continue searching.
本实施例中,MC网元可以在内容提供设备内容成功注入第一MS网元到第二MS网元开始复制内容这段时间内根据上述的内容文件列表验证第一MS网元存储的内容是否完整,如果是,则通知第二MS网元从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。另外,本发明实施例提供的内容注入方法可以提高内容提供设备注入内容至第一MS网元的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In this embodiment, the MC network element can verify whether the content stored in the first MS network element is Complete, if yes, then notify the second MS network element to copy the content from the first MS network element and store it; otherwise, notify the content providing device to re-inject the content into the first MS network element; thereby, the content providing device can be improved. Security, improve the satisfaction of content providing equipment with CDN. In addition, the content injection method provided by the embodiment of the present invention can improve the efficiency of the content providing device injecting content into the first MS network element. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例五:Embodiment five:
请参阅图7,图7为本发明实施例五提供的一种基于CDN的MS网元结构示意图。其中,该MS网元可以包括:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a CDN-based MS network element provided by Embodiment 5 of the present invention. Wherein, the MS network element may include:
接收模块701,用于接收第一MS网元发送的内容文件列表,其中,该内容文件列表由第一MS网元在接收到内容提供设备注入的内容时发送,该内容文件列表用于验证所述内容文件列表对应的内容是否完整;The receiving
本发明实施例中,内容提供设备注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device may be video, audio, picture, document and so on.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
验证模块702,用于根据上述内容文件列表验证第一MS网元存储的内容是否完整;A
复制模块703,用于在验证模块702的验证结果为是时,从第一MS网元中复制内容并存储;A copying
通知模块704,用于在验证模块702的验证结果为否时,通知内容提供设备重新注入内容至第一MS网元。The
本发明实施例中,为了进一步提高内容存储的安全性,验证模块702还用于在复制模块703从第一MS网元中复制内容并存储之后,根据上述内容文件列表验证从第一MS网元中复制并存储的内容是否完整;In the embodiment of the present invention, in order to further improve the security of content storage, the
相应地,复制模块703还用于在验证模块702验证出从第一MS网元中复制并存储的内容完整时,保持存储从第一MS网元中复制的内容;Correspondingly, the copying
相应地,通知模块704还用于在验证模块702验证出从第一MS网元中复制并存储的内容不完整时,通知内容提供设备重新注入内容至第一MS网元。Correspondingly, the
本发明实施例中,通知模块704具体用于向内容提供设备发送通知消息,其中,该通知消息用于指示内容提供设备重新注入内容至第一MS网元;或者具体用于向第一MS网元发送通知消息,该通知消息用于指示第一MS网元告知内容提供设备重新注入内容。In the embodiment of the present invention, the
请参阅图8,图8为本发明实施例五提供的另一种基于CDN的MS网元结构示意图。其中,该验证模块702可以包括:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of another CDN-based MS network element provided by Embodiment 5 of the present invention. Wherein, the
第一子模块7021,用于发送验证请求消息至第一MS网元,并接收第一MS网元发送的第二内容文件列表;其中,该第二内容文件列表由第一MS网元在接收到上述的验证请求消息后根据存储的内容生成;The
第二子模块7022,用于验证上述内容文件列表与第二内容文件列表是否相同,若是,则确认第一MS网元存储的内容完整;若否,则确认第一MS网元存储的内容不完整。The
如图8所示,复制模块703用于在第二子模块7022的验证结果为是时,从第一MS网元中复制内容并存储;As shown in FIG. 8, the
如图8所示,通知模块704用于在第二子模块7022的验证结果为否时,通知内容提供设备重新注入内容至第一MS网元。As shown in FIG. 8, the
本实施例中,MS网元可以在内容提供设备的内容成功注入第一MS网元到开始复制内容这段时间内根据内容文件列表验证第一MS网元存储的内容是否完整,如果是,则可以从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。另外,本发明实施例可以提高内容提供设备注入内容至第一MS网元的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In this embodiment, the MS network element can verify whether the content stored in the first MS network element is complete according to the content file list between the time when the content of the content providing device is successfully injected into the first MS network element and the content is copied. The content can be copied from the first MS network element and stored; otherwise, the content providing device will be notified to re-inject the content into the first MS network element; thus, the security of the content injected by the content providing device can be improved, and the satisfaction of the content providing device to the CDN can be improved. Spend. In addition, the embodiments of the present invention can improve the efficiency of injecting content into the first MS network element by the content providing device. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例六:Embodiment six:
请参阅图9,图9为本发明实施例六提供的一种基于CDN的MC网元结构示意图。其中,该MC网元可以包括:Please refer to FIG. 9 . FIG. 9 is a schematic structural diagram of a CDN-based MC network element provided by Embodiment 6 of the present invention. Wherein, the MC network element may include:
接收单元901,用于接收第一MS网元发送的内容文件列表,其中,该内容文件列表由第一MS网元在接收到CP注入的内容时发送,该内容文件列表用于验证所述内容文件列表对应的内容是否完整;The receiving
本发明实施例中,内容提供设备注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device may be video, audio, picture, document and so on.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
验证单元902,用于根据上述内容文件列表验证第一MS网元存储的内容是否完整;A
第一通知单元903,用于在验证单元902的验证结果为是时,通知第二MS网元从第一MS网元中复制内容并存储;The
第二通知单元904,用于在验证单元902的验证结果为否时,通知内容提供设备重新注入内容至第一MS网元。The
本发明实施例中,为了进一步提高内容存储的安全性,验证单元902还用于在第二MS网元从第一MS网元中复制内容并存储之后,根据上述的内容文件列表验证第二MS网元从第一MS网元中复制并存储的内容是否完整;In the embodiment of the present invention, in order to further improve the security of content storage, the
相应地,第一通知单元903还用于在验证单元902验证出第二MS网元从第一MS网元中复制并存储的内容完整时,通知第二MS网元保持存储从第一MS网元中复制的内容;Correspondingly, the
相应地,第二通知单元904还用于在验证单元902验证出第二MS网元从第一MS网元中复制并存储的内容不完整时,通知内容提供设备重新注入内容至第一MS网元。Correspondingly, the
本发明实施例中,第二通知单元904具体用于向内容提供设备发送通知消息,该通知消息用于指示内容提供设备重新注入内容至第一MS网元;或者具体用于向第一MS网元发送通知消息,该通知消息用于指示第一MS网元告知内容提供设备重新注入内容。In the embodiment of the present invention, the
请参阅图10,图10为本发明实施例五提供的另一种基于CDN的MC网元结构示意图。其中,该验证单元902可以包括:Please refer to FIG. 10 . FIG. 10 is a schematic structural diagram of another CDN-based MC network element provided by Embodiment 5 of the present invention. Wherein, the
第一子单元9021,用于发送验证请求消息至第一MS网元,并接收第一MS网元发送的第二内容文件列表;其中,该第二内容文件列表由第一MS网元在接收到上述的验证请求消息后根据存储的内容生成;The
第二子单元9022,用于验证上述内容文件列表与第二内容文件列表是否相同,若是,则确认第一MS网元存储的内容完整;若否,则确认第一MS网元存储的内容不完整。The
如图10所示,第一通知单元903用于在第二子单元9022的验证结果为是时,通知第二MS网元从第一MS网元中复制内容并存储。As shown in FIG. 10 , the
如图10所示,第二通知模块904用于在第二子单元9022的验证结果为否时,通知内容提供设备重新注入内容至第一MS网元。As shown in FIG. 10 , the
本实施例中,MC网元可以在内容提供设备的内容成功注入第一MS网元到第二MS网元开始复制内容这段时间内根据内容文件列表验证第一MS网元存储的内容是否完整,如果是,则通知第二MS网元从第一MS网元中复制内容并存储;反之则通知内容提供设备重新注入内容至第一MS网元;从而,可以提高内容提供设备注入内容的安全性,提升内容提供设备对CDN的满意度。另外,本发明实施例可以提高内容提供设备注入内容至第一MS网元的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In this embodiment, the MC network element can verify whether the content stored in the first MS network element is complete according to the content file list between the time when the content of the content providing device is successfully injected into the first MS network element and the second MS network element starts to copy the content. , if yes, then notify the second MS network element to copy the content from the first MS network element and store it; otherwise, notify the content providing device to re-inject the content into the first MS network element; thus, the security of the content providing device injecting content can be improved performance, and improve the satisfaction of content providing equipment with CDN. In addition, the embodiments of the present invention can improve the efficiency of injecting content into the first MS network element by the content providing device. For the content providing device, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
实施例七:Embodiment seven:
请参阅图11,图11为本发明实施例七提供的一种基于CDN的内容注入系统的结构示意图。其中,该内容注入系统可以包括:Please refer to FIG. 11 . FIG. 11 is a schematic structural diagram of a CDN-based content injection system provided by Embodiment 7 of the present invention. Wherein, the content injection system may include:
第一MS网元1101、第二MS网元1102和内容提供设备1103;The first
其中,内容提供设备1103用于注入内容至第一MS网元1101;Wherein, the
其中,第一MS网元1101用于接收内容提供设备1103注入的内容,并发送内容文件列表至第二MS网元1102,该内容文件列表用于第二MS网元1102验证内容文件列表对应的内容是否完整;Wherein, the first
本发明实施例中,内容提供设备113注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device 113 may be video, audio, picture, document and so on.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
其中,第二MS网元1102用于接收第一MS网元1101发送的内容文件列表,并根据内容文件列表验证第一MS网元1101存储的内容是否完整,若是,则从第一MS网元1101中复制内容并存储;若否,则通知内容提供设备1103重新注入内容至第一MS网元1101。Wherein, the second
本发明实施例中,为了进一步提高内容存储的安全性,第二MS网元1102从第一MS网元1101中复制内容并存储之后,还用于根据上述内容文件列表验证从第一MS网元1101中复制并存储的内容是否完整,若是,则保持存储从第一MS网元1101中复制的内容;若否,则通知内容提供设备1103重新注入内容至第一MS网元1101。In the embodiment of the present invention, in order to further improve the security of content storage, after the second
本实施例中,第二MS网元1102可以在内容提供设备1103内容成功注入第一MS网元1101到第二MS网元1102开始复制内容这段时间内根据内容文件列表验证第一MS网元1101存储的内容是否完整,如果是,则可以从第一MS网元1101中复制内容并存储;反之则通知内容提供设备1103重新注入内容至第一MS网元1101;从而,可以提高内容提供设备1103注入内容的安全性,提升内容提供设备1103对CDN的满意度。另外,本发明实施例可以提高内容提供设备1103注入内容至第一MS网元1101的效率。对于内容提供设备而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In this embodiment, the second
实施例八:Embodiment eight:
请参阅图12,图12为本发明实施例八提供的一种基于CDN的内容注入系统的结构示意图。其中,该内容注入系统可以包括:Please refer to FIG. 12 . FIG. 12 is a schematic structural diagram of a CDN-based content injection system provided by Embodiment 8 of the present invention. Wherein, the content injection system may include:
第一MS网元1201,第二MS网元1202、内容提供设备1203以及MC网元1204;The first MS network element 1201, the second MS network element 1202, the content providing device 1203 and the MC network element 1204;
其中,内容提供设备1203用于注入内容至第一MS网元1201;Wherein, the content providing device 1203 is used to inject content into the first MS network element 1201;
其中,第一MS网元1201用于接收内容提供设备1203注入的内容,并发送内容文件列表至MC网元1204,该内容文件列表用于MC网元1204验证内容文件列表对应的内容是否完整;Wherein, the first MS network element 1201 is configured to receive the content injected by the content providing device 1203, and send the content file list to the MC network element 1204, and the content file list is used by the MC network element 1204 to verify whether the content corresponding to the content file list is complete;
本发明实施例中,内容提供设备1203注入的内容可以是视频、音频、图片以及文档等等。In the embodiment of the present invention, the content injected by the content providing device 1203 may be video, audio, picture, document and so on.
其中,上述的内容文件列表已经在上述实施例一中进行了举例说明,本实施例不作复述。Wherein, the above-mentioned content file list has been illustrated in the above-mentioned first embodiment, and will not be repeated in this embodiment.
其中,MC网元1204用于接收第一MS网元1201发送的内容文件列表,并根据上述内容文件列表验证第一MS网元1201存储的内容是否完整,若是,则通知第二MS网元1202从第一MS网元1201中复制内容并存储;若否,则通知内容提供设备1203重新注入内容至第一MS网元1201;Among them, the MC network element 1204 is used to receive the content file list sent by the first MS network element 1201, and verify whether the content stored in the first MS network element 1201 is complete according to the above content file list, and if so, notify the second MS network element 1202 Copy and store the content from the first MS network element 1201; if not, notify the content providing device 1203 to re-inject the content into the first MS network element 1201;
其中,第二MS网元1202用于根据MC网元1204的通知,从第一MS网元1201中复制内容并存储。Wherein, the second MS network element 1202 is configured to copy and store the content from the first MS network element 1201 according to the notification of the MC network element 1204 .
本发明实施例中,为了进一步提高内容存储的安全性,MC网元1204还用于在第二MS网元1202从第一MS网元1201中复制内容并存储之后,根据上述内容文件列表验证第二MS网元1202从第一MS网元1201中复制并存储的内容是否完整,若是,则通知第二MS网元1202保持存储从第一MS网元1201中复制的内容;若否,则通知内容提供设备1203重新注入内容至第一MS网元1201。In the embodiment of the present invention, in order to further improve the security of content storage, the MC network element 1204 is also used to verify the content of the second MS network element 1202 according to the content file list after the second MS network element 1202 copies the content from the first MS network element 1201 and stores it. Whether the content copied and stored by the second MS network element 1202 from the first MS network element 1201 is complete, if so, notify the second MS network element 1202 to keep storing the content copied from the first MS network element 1201; if not, then notify The content providing device 1203 re-injects content to the first MS network element 1201 .
本实施例中,MC网元1204可以在内容提供设备1203内容成功注入第一MS网元1201到第二MS网元1202开始复制内容这段时间内根据内容文件列表验证第一MS网元1201存储的内容是否完整,如果是,则通知第二MS网元1202从第一MS网元1201中复制内容并存储;反之则通知内容提供设备1203重新注入内容至第一MS网元1201;从而,可以提高内容提供设备1203注入内容的安全性,提升内容提供设备1203对CDN的满意度。另外,本发明实施例可以提高内容提供设备1203注入内容至第一MS网元1201的效率。对于内容提供设备1203而言,对于同一份内容不用同时启动多个内容注入任务,也不需要同时维护多个MS的内容,减小内容管理难度。In this embodiment, the MC network element 1204 can verify the contents stored in the first MS network element 1201 according to the content file list during the period from the content providing device 1203 successfully injecting the content into the first MS network element 1201 to the second MS network element 1202 starting to copy the content. If the content is complete, then notify the second MS network element 1202 to copy and store the content from the first MS network element 1201; otherwise, notify the content providing device 1203 to re-inject the content into the first MS network element 1201; thus, Improve the security of content injected by the content providing device 1203, and improve the content providing device 1203's satisfaction with the CDN. In addition, the embodiment of the present invention can improve the efficiency of the content providing device 1203 injecting content to the first MS network element 1201 . For the content providing device 1203, there is no need to start multiple content injection tasks for the same content at the same time, and it is not necessary to maintain the content of multiple MSs at the same time, which reduces the difficulty of content management.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiments; and the aforementioned storage medium includes: U disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc. A medium that stores program code.
以上对本发明实施例中提供的一种基于内容分发网络的内容注入方法及相关设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The content injection method based on the content distribution network provided in the embodiment of the present invention and related equipment and systems have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The above embodiments The description is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary , the contents of this specification should not be construed as limiting the present invention.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010538278 CN102137143B (en) | 2010-11-09 | 2010-11-09 | Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010538278 CN102137143B (en) | 2010-11-09 | 2010-11-09 | Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102137143A true CN102137143A (en) | 2011-07-27 |
| CN102137143B CN102137143B (en) | 2013-08-28 |
Family
ID=44296798
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201010538278 Active CN102137143B (en) | 2010-11-09 | 2010-11-09 | Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102137143B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060041556A1 (en) * | 2002-08-29 | 2006-02-23 | Koji Taniguchi | Content processing apparatus and content display apparatus based on location information |
| CN101406060A (en) * | 2006-04-12 | 2009-04-08 | 汤姆逊许可公司 | Delayed video download service using peer-to-peer (P2P) content distribution network |
| CN101533412A (en) * | 2008-03-11 | 2009-09-16 | 船井电机株式会社 | Media player and play method |
-
2010
- 2010-11-09 CN CN 201010538278 patent/CN102137143B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060041556A1 (en) * | 2002-08-29 | 2006-02-23 | Koji Taniguchi | Content processing apparatus and content display apparatus based on location information |
| CN101406060A (en) * | 2006-04-12 | 2009-04-08 | 汤姆逊许可公司 | Delayed video download service using peer-to-peer (P2P) content distribution network |
| CN101533412A (en) * | 2008-03-11 | 2009-09-16 | 船井电机株式会社 | Media player and play method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102137143B (en) | 2013-08-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107528872B (en) | Data recovery method and device and cloud storage system | |
| TWI777935B (en) | Business processing method, device and system | |
| CN104008028B (en) | Intelligent mobile terminal data backup memory method and system based on many cloud storages | |
| CN103180842B (en) | Cloud computing system and data synchronization method for the cloud computing system | |
| CN106874334B (en) | A data processing method and device, and an information processing system | |
| CN111555957B (en) | Kafka-based synchronous message service system and implementation method | |
| US8954793B2 (en) | Method and a storage server for data redundancy | |
| CN103051681B (en) | Collaborative type log system facing to distribution-type file system | |
| CN102724302A (en) | Family data center system based on cloud storage and family data management method | |
| JP4306365B2 (en) | Server and content receiving apparatus | |
| CN106648903A (en) | Method and system for calling distributed file system | |
| CN112035062A (en) | Migration method of local storage of cloud computing, computer equipment and storage medium | |
| CN103873519A (en) | Data synchronization method, client end, server, terminal and system | |
| WO2021098277A1 (en) | Blockchain file access method and apparatus, computer device and storage medium | |
| CN106899563B (en) | Authentication method and device, authentication code generation method and device, and authentication system | |
| CN109672752A (en) | The synchronous method of data and node | |
| CN109597716A (en) | A kind of asynchronous remote copying method and system | |
| CN109165112B (en) | Fault recovery method, system and related components of metadata cluster | |
| WO2017097181A1 (en) | Data pushing method and apparatus | |
| CN107483238A (en) | A log management method, cluster management node and system | |
| JP6671708B2 (en) | Backup restore system and backup restore method | |
| CN106339176A (en) | Intermediate file processing method, client, server and system | |
| CN1929494B (en) | Distributed Electronic Program Navigation System | |
| CN102137143B (en) | Method for injecting content based on CDN (Content Delivery Network) as well as related devices and systems | |
| CN110049360A (en) | Cross-platform contents controlling method, device, terminal, server and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| ASS | Succession or assignment of patent right |
Owner name: BEIJING WEIBEN INTELLECTUAL PROPERTY MANAGEMENT CO Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD. Effective date: 20141114 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 518129 SHENZHEN, GUANGDONG PROVINCE TO: 100080 HAIDIAN, BEIJING |
|
| TR01 | Transfer of patent right |
Effective date of registration: 20141114 Address after: 100080 room 401A, building 27, 1 Xin Lu, Haidian District, Beijing Patentee after: Beijing Weiben Intellectual Property Management Co. Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: Huawei Technologies Co., Ltd. |
|
| ASS | Succession or assignment of patent right |
Owner name: BEIJING Z-GOOD TECHNOLOGY SERVICE CO., LTD. Free format text: FORMER OWNER: BEIJING WEIBEN INTELLECTUAL PROPERTY MANAGEMENT CO., LTD. Effective date: 20141217 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 100080 HAIDIAN, BEIJING TO: 100085 HAIDIAN, BEIJING |
|
| TR01 | Transfer of patent right |
Effective date of registration: 20141217 Address after: 100085 Beijing city Haidian District No. 33 Xiaoying Road 1 1F06 room Patentee after: BEIJING ZHIGU TECHNOLOGY SERVICES CO., LTD. Address before: 100080 room 401A, building 27, 1 Xin Lu, Haidian District, Beijing Patentee before: Beijing Weiben Intellectual Property Management Co. Ltd. |