[go: up one dir, main page]

CN106936877B - A content distribution method, device and system - Google Patents

A content distribution method, device and system Download PDF

Info

Publication number
CN106936877B
CN106936877B CN201511029102.7A CN201511029102A CN106936877B CN 106936877 B CN106936877 B CN 106936877B CN 201511029102 A CN201511029102 A CN 201511029102A CN 106936877 B CN106936877 B CN 106936877B
Authority
CN
China
Prior art keywords
distributed
content
edge cache
cache server
central node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511029102.7A
Other languages
Chinese (zh)
Other versions
CN106936877A (en
Inventor
彭巧巧
薛传颂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201511029102.7A priority Critical patent/CN106936877B/en
Publication of CN106936877A publication Critical patent/CN106936877A/en
Application granted granted Critical
Publication of CN106936877B publication Critical patent/CN106936877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种内容分发方法、装置及系统,涉及通信技术领域,能够解决现有技术中边缘缓存服务器访问过载的问题。该内容分发方法包括:第一中心节点获取在第一内容分发网络CDN中的待分发内容和在第二CDN中的运营统计数据,运营统计数据为在第二CDN中对待分发内容的访问量的统计数据,第一中心节点属于第一CDN;第一中心节点根据运营统计数据和第一CDN中的全部边缘节点的状态信息,得到待分发内容的分发结果,分发结果包括确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容;第一中心节点根据分发结果,为每个待分发边缘缓存服务器分发待分发内容中需为该待分发边缘缓存服务器分发的内容。

The invention discloses a content distribution method, device and system, relates to the technical field of communication, and can solve the problem of the edge cache server access overload in the prior art. The content distribution method includes: the first central node obtains the content to be distributed in the first content distribution network CDN and the operation statistics data in the second CDN, and the operation statistics data is the number of visits to the content to be distributed in the second CDN Statistical data, the first central node belongs to the first CDN; the first central node obtains the distribution result of the content to be distributed according to the operation statistical data and the status information of all edge nodes in the first CDN, and the distribution result includes at least one determined to be distributed The edge cache server and the content to be distributed to each edge cache server to be distributed; the first central node distributes to each edge cache server to be distributed the content to be distributed to the edge cache server to be distributed according to the distribution result.

Description

一种内容分发方法、装置及系统A content distribution method, device and system

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种内容分发方法、装置及系统。The present application relates to the field of communication technologies, and in particular to a content distribution method, device and system.

背景技术Background technique

内容分发网络(CDN,Content Delivery Network)通过在现有的网络之间互通的协议(IP,Internet Protocol)传输网络中叠加一层新的网络架构,将内容发布到最接近用户的网络“边缘”,使用户可以就近取得所需的内容,以解决目前网络拥挤的状况,提高用户访问网络的响应速度。The Content Delivery Network (CDN, Content Delivery Network) publishes content to the network "edge" closest to the user by superimposing a new network architecture on the existing network intercommunication protocol (IP, Internet Protocol) transmission network , so that users can get the content they need nearby, so as to solve the current situation of network congestion and improve the response speed of users accessing the network.

CDN由多个CDN节点组成,每个CDN节点一般由一个或至少两个缓存服务器集群组成。多个CDN节点分为中心节点和边缘节点两类。中心节点具备管理内容、调度内容、缓存内容和为边缘节点分发内容的功能。目前,内容分发方法为中心节点向网络中的每个边缘节点分发一份待分发内容,使得每个边缘节点中存在一个边缘缓存服务器存储有一份待分发内容,或者中心节点根据该中心节点获取到的目的分发位置信息,向与目的分发位置信息相对应的边缘节点分发一份待分发内容,使得与目的分发位置信息相对应的边缘节点中存在一个边缘缓存服务器存储有一份待分发内容。A CDN consists of multiple CDN nodes, and each CDN node generally consists of one or at least two cache server clusters. Multiple CDN nodes are divided into two types: central nodes and edge nodes. The central node has the functions of managing content, scheduling content, caching content and distributing content to edge nodes. At present, the content distribution method is that the central node distributes a piece of content to be distributed to each edge node in the network, so that there is an edge cache server in each edge node that stores a piece of content to be distributed, or the central node obtains a copy of the content according to the central node. The target distribution location information of the target distribution location information, and distribute a piece of content to be distributed to the edge node corresponding to the target distribution location information, so that there is an edge cache server in the edge node corresponding to the target distribution location information that stores a copy of the content to be distributed.

上述方法都可以将待分发内容分发至最接近用户的边缘节点中的一个边缘缓存服务器,使得用户可以就近取得待分发内容,但对于每个获取到待分发内容的边缘缓存服务器而言,该边缘缓存服务器存储的待分发内容有可能无法满足用户的访问需求,进而导致边缘缓存服务器访问过载。The above methods can distribute the content to be distributed to an edge cache server in the edge node closest to the user, so that the user can obtain the content to be distributed nearby, but for each edge cache server that obtains the content to be distributed, the edge The content to be distributed stored by the cache server may not be able to meet the user's access requirements, resulting in an overload of access to the edge cache server.

发明内容Contents of the invention

本发明实施例提供一种内容分发方法、装置及系统,能够解决现有技术中边缘缓存服务器访问过载的问题。Embodiments of the present invention provide a content distribution method, device and system, which can solve the problem of overloading access to edge cache servers in the prior art.

为达到上述目的,本发明实施例采用如下技术方案:In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:

本发明实施例提供一种内容分发方法,首先,第一中心节点获取在第一内容分发网络CDN中的待分发内容和在第二CDN中的运营统计数据,所述运营统计数据为在所述第二CDN中对所述待分发内容的访问量的统计数据,所述第一中心节点属于所述第一CDN;然后,所述第一中心节点根据获取到的运营统计数据和与预先获取到的所述第一CDN中的全部边缘节点的状态信息,得到确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容;最后,所述第一中心节点为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容。An embodiment of the present invention provides a method for content distribution. First, the first central node obtains the content to be distributed in the first content distribution network CDN and the operation statistics data in the second CDN, the operation statistics data being in the The statistical data of the visit volume of the content to be distributed in the second CDN, the first central node belongs to the first CDN; then, the first central node is based on the acquired operational statistical data and State information of all edge nodes in the first CDN, obtain at least one determined edge cache server to be distributed and the content to be distributed for each edge cache server to be distributed; finally, the first central node is each The edge cache server to be distributed distributes the content to be distributed by the edge cache server to be distributed.

运营统计数据是在第二CDN中对待分发内容的访问量的统计数据,该运营统计数据能够真实反映待分发内容在第二CDN中不同维度的访问量信息,本发明实施例中第一中心节点参考该运营统计数据,确定出的第一CDN中的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容分发待分发内容也能真实准确的反映待分发内容在第一CDN的访问量信息,这样,不仅提高了每个待分发边缘缓存服务器的存储空间利用率,而且能够满足用户的访问需求,解决了现有技术中边缘缓存服务器访问过载的问题。The operational statistical data is the statistical data of the visit volume of the content to be distributed in the second CDN. The operational statistical data can truly reflect the visit volume information of different dimensions of the content to be distributed in the second CDN. In the embodiment of the present invention, the first central node With reference to the operational statistical data, the determined at least one edge cache server to be distributed in the first CDN and the distribution of the content to be distributed for each edge cache server to be distributed can also truly and accurately reflect the status of the content to be distributed in the first CDN. In this way, the traffic information of the CDN not only improves the utilization rate of the storage space of each edge cache server to be distributed, but also can meet the access requirements of users, and solves the problem of the edge cache server access overload in the prior art.

具体的,所述第一中心节点获取在第一CDN中的待分发内容和在第二CDN中的运营统计数据,包括:所述第一中心节点接收内容服务器发送的包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述运营统计数据的内容分发消息;所述第一中心节点根据所述内容标识和所述存储位置信息,下载所述待分发内容。Specifically, the first central node acquires the content to be distributed in the first CDN and the operation statistics data in the second CDN, including: the first central node receives the content sent by the content server and includes the content to be distributed The content identifier, the storage location information of the content to be distributed in the content server, and the content distribution message of the operation statistical data; the first central node downloads the to-be-distributed content according to the content identifier and the storage location information. Distribute content.

可选的,所述运营统计数据包括至少一个参考位置信息以及所述待分发内容在每个参考位置信息的访问量信息,所述状态信息包括所述第一CDN中的每个边缘节点的位置信息。Optionally, the operational statistical data includes at least one reference location information and access volume information of the content to be distributed at each reference location information, and the status information includes the location of each edge node in the first CDN information.

相应的,所述第一中心节点根据所述运营统计数据和所述第一CDN中的全部边缘节点的状态信息,得到待分发内容的分发结果,具体包括:所述第一中心节点根据预设规则和所述待分发内容在每个参考位置信息的访问量信息,从所述全部参考位置信息中确定出至少一个目的参考位置信息;所述第一中心节点从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息,所述待分发边缘节点包含至少一个边缘缓存服务器;所述第一中心节点根据每个待分发边缘节点的位置信息,为每个待分发边缘节点确定至少一个待分发边缘缓存服务器。Correspondingly, the first central node obtains the distribution result of the content to be distributed according to the operation statistical data and the status information of all the edge nodes in the first CDN, specifically including: the first central node obtains the distribution result of the content to be distributed according to the preset Determine at least one target reference location information from all the reference location information according to the rules and the traffic information of each reference location information of the content to be distributed; Select the location information of an edge node to be distributed for each purpose reference location information, the edge node to be distributed includes at least one edge cache server; the first central node is based on the location information of each edge node to be distributed, for each The edge nodes to be distributed determine at least one edge cache server to be distributed.

在运营统计数据包括待分发内容在第二CDN中地域维度的访问量信息时,第一中心节点可以根据该运营统计数据确定待分发边缘缓存服务器。When the operation statistics data includes the access volume information of the content to be distributed in the second CDN in a geographical dimension, the first central node may determine the edge cache server to be distributed according to the operation statistics data.

具体的,对于所述至少一个目的参考位置信息中的第一目的参考位置信息,所述第一中心节点从所述全部边缘节点的位置信息中为所述第一目的参考位置信息选取第一待分发边缘节点的位置信息,具体包括:若所述全部边缘节点中存在边缘节点的位置信息与所述第一目的参考位置信息相同,则所述第一中心节点将该边缘节点的位置信息确定为第一待分发的边缘节点的位置信息;若所述全部边缘节点的位置信息与所述第一目的参考位置信息均不相同,则所述第一中心节点从所述全部边缘节点的位置信息中选取第一待分发的边缘节点的位置信息,其中,所述第一待分发的边缘节点的位置信息与所述第一目的参考位置信息之间的距离最小。Specifically, for the first destination reference location information in the at least one destination reference location information, the first central node selects the first target location information for the first destination reference location information from the location information of all edge nodes. Distributing the location information of the edge node specifically includes: if the location information of the edge node among all the edge nodes is the same as the first destination reference location information, then the first central node determines the location information of the edge node as The location information of the first edge node to be distributed; if the location information of all the edge nodes is different from the first destination reference location information, the first central node selects from the location information of all the edge nodes Selecting the location information of the first edge node to be distributed, wherein the distance between the location information of the first edge node to be distributed and the first destination reference location information is the smallest.

进一步地,所述内容分发消息还包括目的分发位置信息。Further, the content distribution message also includes target distribution location information.

相应的,所述第一中心节点从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息之后,且所述第一中心节点为每个待分发边缘节点的位置信息确定至少一个待分发边缘缓存服务器之前,所述内容分发方法还包括:若目的分发边缘节点的位置信息未被包含于至少一个待分发边缘节点的位置信息中,则所述第一中心节点将所述目的分发边缘节点的位置信息确定为待分发边缘节点的位置信息,所述目的分发边缘节点包含于所述母的分发位置信息中。Correspondingly, after the first central node selects the location information of an edge node to be distributed from the location information of all edge nodes for each target reference location information, and the first central node Before the location information of the node determines at least one edge cache server to be distributed, the content distribution method further includes: if the location information of the target distribution edge node is not included in the location information of at least one edge node to be distributed, the first The central node determines the location information of the destination distribution edge node as the location information of the edge node to be distributed, and the destination distribution edge node is included in the parent distribution location information.

可以理解的是,若内容分发消息中包含有目的分发位置信息,则说明目的分发位置信息所包含的所有目的分发边缘节点均需要分发待分发内容。根据运营统计数据确定出的待分发边缘节点存在未包含目的分发边缘节点的情况,在这种情况下,需要将目的分发边缘节点设置为待分发边缘节点。It can be understood that if the content distribution message includes the destination distribution location information, it means that all destination distribution edge nodes included in the destination distribution location information need to distribute the content to be distributed. The to-be-distributed edge node determined according to the operation statistics data may not contain the destination distribution edge node. In this case, the destination distribution edge node needs to be set as the to-be-distributed edge node.

进一步地,所述状态信息还包括所述第一CDN中的每个边缘缓存服务器的存储空间利用率、每个边缘缓存服务器的属性值和每个边缘缓存服务器的存储空间数值。Further, the status information also includes the storage space utilization rate of each edge cache server in the first CDN, the attribute value of each edge cache server, and the storage space value of each edge cache server.

相应的,对于所述至少一个待分发边缘节点的位置信息中的第一待分发边缘节点的位置信息而言,所述第一中心节点根据第一待分发边缘节点的位置信息,为第一待分发边缘节点确定至少一个待分发边缘缓存服务器,具体包括:所述第一中心节点根据所述待分发内容在所述第一待分发边缘节点的访问量信息和第一预设阈值,确定需为所述第一待分发边缘节点分发所述待分发内容的数量N,N≥1;所述第一中心节点根据预设条件,从所述第一待分发边缘节点包含的全部边缘缓存服务器中,选取X个边缘缓存服务器作为候选边缘缓存服务器,其中,所述预设条件为边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,且所述边缘缓存服务器的属性值小于第三预设阈值,X≥1;若N≥X,则所述第一中心节点将X个候选边缘缓存服务器确定为待分发边缘缓存服务器;若N<X,则所述第一中心节点从所述X个候选边缘缓存服务器中选取出N个候选边缘缓存服务器,并将所述N个候选边缘缓存服务器确定为待分发边缘缓存服务器,所述N个候选边缘缓存服务器为所述X个候选边缘缓存服务器按照可用存储空间从大到小依次排列后的前N个。Correspondingly, for the location information of the first edge node to be distributed in the location information of the at least one edge node to be distributed, the first central node is the first edge node to be distributed according to the location information of the first edge node to be distributed. The distribution edge node determines at least one edge cache server to be distributed, which specifically includes: the first central node determines that the server needs to be The first edge node to be distributed distributes the number N of the content to be distributed, N≥1; the first central node selects from all edge cache servers included in the first edge node to be distributed according to preset conditions, Selecting X edge cache servers as candidate edge cache servers, wherein the preset condition is that the storage space utilization of the edge cache servers is less than or equal to a second preset threshold, and the attribute value of the edge cache servers is less than a third preset threshold. Set the threshold, X≥1; if N≥X, then the first central node determines X candidate edge cache servers as edge cache servers to be distributed; if N<X, then the first central node determines from the X N candidate edge cache servers are selected from the candidate edge cache servers, and the N candidate edge cache servers are determined as edge cache servers to be distributed, and the N candidate edge cache servers are the X candidate edge cache servers The top N items are arranged in descending order according to the available storage space.

第一中心节点在确定出待分发边缘节点后,根据各个待分发边缘节点包含的边缘缓存服务器的存储空间利用率确定待分发边缘缓存服务器。After determining the edge nodes to be distributed, the first central node determines the edge cache server to be distributed according to the storage space utilization rate of the edge cache servers included in each edge node to be distributed.

可选的,所述运营统计数据包括所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息。Optionally, the operation statistical data includes information about the number of views of the content to be distributed at least one bit rate and information about the number of views of all content segments of the content to be distributed at each bit rate.

相应的,对于至少一个待分发边缘缓存服务器中的第一待分发边缘缓存服务器,所述第一中心节点确定需为所述第一待分发边缘缓存服务器分发的内容的方法,包括:所述第一中心节点确定所述第一待分发边缘缓存服务器的可用存储空间数值;若所述第一待分发边缘缓存服务器的可用存储空间数值小于所述待分发内容的占用空间数值,则所述第一中心节点根据所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息,确定至少一个内容分片为需为所述第一待分发边缘缓存服务器分发的内容,所述至少一个内容分片的占用空间数值等于所述第一待分发边缘缓存服务器的可用存储空间数值;若所述第一待分发边缘缓存服务器的可用存储空间数值大于或等于所述待分发内容的占用空间数值,则所述第一中心节点将所述待分发内容确定为需为所述第一待分发边缘缓存服务器分发的内容。Correspondingly, for the first edge cache server to be distributed among at least one edge cache server to be distributed, the method for the first central node to determine the content to be distributed by the first edge cache server to be distributed includes: the first A central node determines the available storage space value of the first edge cache server to be distributed; if the available storage space value of the first edge cache server to be distributed is smaller than the occupied space value of the content to be distributed, the first The central node determines that at least one content fragment is required for the second code rate according to the traffic information of the content to be distributed at least one bit rate and the traffic information of all content fragments of the content to be distributed at each code rate. For the content distributed by the edge cache server to be distributed, the occupied space value of the at least one content fragment is equal to the available storage space value of the first edge cache server to be distributed; if the available storage space of the first edge cache server to be distributed If the space value is greater than or equal to the occupied space value of the content to be distributed, the first central node determines the content to be distributed as content that needs to be distributed by the first edge cache server to be distributed.

结合待分发边缘缓存服务器的可用存储空间和各个内容分片的访问量信息,确定出需为该待分发边缘缓存服务器分发的内容,在满足待分发边缘缓存服务器的存储空间的同时,还能满足用户的访问需求。Combining the available storage space of the edge cache server to be distributed and the access information of each content fragment, determine the content that needs to be distributed for the edge cache server to be distributed, while meeting the storage space of the edge cache server to be distributed, it can also meet the User's access needs.

具体的,所述第一中心节点根据所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息,确定至少一个内容分片为需为所述第一待分发边缘缓存服务器分发的内容,具体包括:所述第一中心节点选取访问量信息最大的码率;所述第一中心节点根据所述访问量最大的码率和所述待分发内容在该码率的全部内容分片的访问量信息,将该码率中访问量信息最大的内容分片确定为需为所述第一待分发边缘缓存服务器分发的内容,直至所述第一待分发边缘缓存服务器的可用存储空间数值为零。Specifically, the first central node determines at least one content segment according to the traffic information of the content to be distributed at least one code rate and the traffic information of all content segments of the content to be distributed at each code rate. The slice is the content to be distributed by the first edge cache server to be distributed, which specifically includes: the first central node selects the code rate with the largest number of visits; the first central node selects the code rate with the largest number of visits and the access information of all content segments of the content to be distributed at the code rate, and determine the content segment with the largest access information in the code rate as the content that needs to be distributed by the first edge cache server to be distributed, Until the value of the available storage space of the first edge cache server to be distributed is zero.

本发明实施例中第一中心节点优先选取访问量信息最大的码率的待分发内容,并在待分发内容在访问量信息最大的码率的全部内容分片中选取访问量信息最大的内容分片,将该内容分片确定为需为第一待分发边缘缓存服务器分发的内容,保证第一待分发边缘缓存服务器能满足用户的访问需求。In the embodiment of the present invention, the first central node preferentially selects the content to be distributed with the code rate with the largest traffic information, and selects the content segment with the largest traffic information among all the content fragments with the code rate with the largest traffic information. piece, determine the content piece as content that needs to be distributed by the first edge cache server to be distributed, so as to ensure that the first edge cache server to be distributed can meet the user's access requirements.

可选的,所述运营统计数据包括至少一个统计周期和所述待分发内容在各个统计周期的访问量信息。Optionally, the operational statistical data includes at least one statistical period and information on the number of visits of the content to be distributed in each statistical period.

相应的,所述第一中心节点根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,所述内容分发方法还包括:所述第一中心节点根据所述待分发内容在各个统计周期的访问量信息,确定所述待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期;所述第一中心节点向每个待分发边缘缓存服务器发送设置请求,所述设置消息包含所述待分发内容在该待分发边缘缓存服务器的保护周期,所述设置消息用于指示每个待分发边缘缓存服务器设置各自已分发内容的保护周期,所述已分发内容属于所述待分发内容。Correspondingly, after the first central node distributes to each edge cache server to be distributed the content that needs to be distributed to the edge cache server to be distributed according to the distribution result, the content distribution method further includes : The first central node determines the protection period of each edge cache server to be distributed in the first CDN of the content to be distributed according to the traffic information of the content to be distributed in each statistical period; the first center The node sends a setting request to each edge cache server to be distributed, the setting message includes the protection period of the content to be distributed in the edge cache server to be distributed, and the setting message is used to instruct each edge cache server to be distributed to set its own The protection period of the distributed content, the distributed content belongs to the to-be-distributed content.

运营统计数据中包含有待分发内容在各个统计周期的访问量信息,第一中心节点根据这一信息,设置第一CDN中的每个待分发边缘缓存服务器的内容保护周期,既可以防止访问量正在上升但过了保护周期的内容被淘汰的情况,也可以防止访问量已经变得很低、但还在保护周期内的内容仍然占据缓存空间的情况。The operational statistical data includes the traffic information of the content to be distributed in each statistical period. Based on this information, the first central node sets the content protection period of each edge cache server to be distributed in the first CDN, which can prevent the traffic from being The content that rises but has passed the protection period is eliminated, and it can also prevent the situation that the access volume has become very low but the content that is still within the protection period still occupies the cache space.

进一步地,所述第一中心节点在根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,且在确定所述待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期之前,接收每个待分发边缘缓存服务器发送的确认消息。Further, after the first central node distributes to each edge cache server to be distributed the content that needs to be distributed to the edge cache server to be distributed according to the distribution result, and determines the Receive the confirmation message sent by each edge cache server to be distributed before the protection period of each edge cache server to be distributed in the first CDN.

本发明另一实施例提供一种内容分发方法,包括:内容服务器获取运营统计数据,所述运营统计数据为在第二内容分发网络CDN中对待分发内容的访问量的统计数据;所述内容服务器向第一中心节点发送包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述运营统计数据的内容分发消息,用于指示所述第一中心节点将所述待分发内容在第一CDN中分发,所述第一中心节点属于第一CDN。Another embodiment of the present invention provides a content distribution method, including: a content server acquires operation statistics data, the operation statistics data is the statistics data of the visit volume of the content to be distributed in the second content distribution network CDN; the content server Sending a content distribution message including the content identifier of the content to be distributed, the storage location information of the content to be distributed in the content server, and the operation statistical data to the first central node, for instructing the first central node The content to be distributed is distributed in the first CDN, and the first central node belongs to the first CDN.

本发明实施例中内容服务器在向第一中心节点发送内容分发消息时,除了将待分发内容的内容标识和待分发内容在所述内容服务器的存储位置信息发送给第一中心节点以外,还将在第二内容分发网络CDN中对待分发内容的访问量的统计数据发送给第一中心节点,使得第一中心节点在第一CDN中分发待分发内容时能够参考待分发内容的访问量信息,准确的确定出在第一CDN中待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容,从而提高了每个待分发边缘缓存服务器的存储空间利用率,而且能够满足用户的访问需求,解决了现有技术中边缘缓存服务器访问过载的问题。In the embodiment of the present invention, when the content server sends the content distribution message to the first central node, in addition to sending the content identification of the content to be distributed and the storage location information of the content to be distributed in the content server to the first central node, the In the second content distribution network CDN, the statistical data of the visit volume of the content to be distributed is sent to the first central node, so that the first central node can refer to the visit volume information of the content to be distributed when distributing the content to be distributed in the first CDN, accurately Determine the edge cache server to be distributed in the first CDN and the content to be distributed for each edge cache server to be distributed, thereby improving the storage space utilization rate of each edge cache server to be distributed, and can meet the user's access requirements The method solves the problem of the edge cache server access overload in the prior art.

具体的,所述内容服务器获取运营统计数据,具体包括:若所述内容服务器在本地的内容部署运营管理表中获取到第二CDN的标识,则所述内容服务器向第二中心节点发送运营统计请求消息,所述第二中心节点属于所述第二CDN,本地的内容部署运营管理表包括所述第二CDN的标识与所述待分发内容的内容标识的映射关系,所述运营统计请求消息包含所述待分发内容的内容标识,所述运营统计请求消息用于请求所述第二中心节点统计分析所述待分发内容在第二CDN中的访问量信息;所述内容服务器接收所述第二中心节点发送的运营统计响应消息,所述运营统计响应消息包括所述运营统计数据。Specifically, the content server obtains operation statistics data, which specifically includes: if the content server obtains the identifier of the second CDN in the local content deployment operation management table, then the content server sends the operation statistics to the second central node request message, the second central node belongs to the second CDN, the local content deployment operation management table includes the mapping relationship between the identifier of the second CDN and the content identifier of the content to be distributed, and the operation statistics request message Including the content identifier of the content to be distributed, the operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN; the content server receives the second CDN An operation statistics response message sent by the central node, where the operation statistics response message includes the operation statistics data.

进一步地,所述运营统计请求消息还包括统计参数,所述运营统计消息用于请求所述第二中心节点根据所述统计参数统计分析所述待分发内容在第二CDN中的访问量信息,所述统计参数包含地域粒度信息、码率、时间戳信息、访问量统计周期中的至少一个。Further, the operation statistics request message further includes statistical parameters, and the operation statistics message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN according to the statistical parameters, The statistical parameters include at least one of regional granularity information, code rate, time stamp information, and traffic statistics period.

本发明实施例提供一种中心节点,包括:获取单元、确定单元和分发单元。An embodiment of the present invention provides a central node, including: an acquisition unit, a determination unit, and a distribution unit.

具体的,本发明实施例提供的各个单元模块所实现的功能具体如下:Specifically, the functions realized by each unit module provided by the embodiment of the present invention are as follows:

获取单元,用于获取在第一内容分发网络CDN中的待分发内容和在第二CDN中的运营统计数据,所述运营统计数据为在所述第二CDN中对所述待分发内容的访问量的统计数据,所述中心节点属于所述第一CDN。An acquisition unit, configured to acquire content to be distributed in the first content distribution network CDN and operation statistics data in the second CDN, the operation statistics data being access to the content to be distributed in the second CDN The amount of statistical data that the central node belongs to the first CDN.

确定单元,用于根据所述获取单元获取到的所述运营统计数据和所述第一CDN中的全部边缘节点的状态信息,得到待分发内容的分发结果,所述分发结果包括确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容。A determining unit, configured to obtain a distribution result of the content to be distributed according to the operational statistical data obtained by the obtaining unit and the state information of all edge nodes in the first CDN, the distribution result including at least one determined The edge cache servers to be distributed and the content to be distributed for each edge cache server to be distributed.

分发单元,用于根据所述确定单元确定的所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容。The distributing unit is configured to, according to the distribution result determined by the determining unit, distribute to each edge cache server to be distributed the content that needs to be distributed to the edge cache server to be distributed among the content to be distributed.

本发明实施例提供的中心节点的技术效果可以参见上述实施例中第一中心节点执行的内容分发方法中描述的第一中心节点的技术效果,此处不再赘述。For the technical effects of the central node provided by the embodiments of the present invention, reference may be made to the technical effects of the first central node described in the content distribution method performed by the first central node in the above embodiments, and details are not repeated here.

进一步地,所述中心节点还包括接收单元,Further, the central node also includes a receiving unit,

所述接收单元,用于接收内容服务器发送的内容分发消息,所述内容分发消息包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述运营统计数据。The receiving unit is configured to receive a content distribution message sent by a content server, where the content distribution message includes the content identifier of the content to be distributed, storage location information of the content to be distributed in the content server, and the operation statistics data.

进一步地,所述中心节点还包括下载单元,Further, the central node also includes a download unit,

所述下载单元,用于根据所述接收单元接收到的所述内容标识和所述存储位置信息,下载所述待分发内容。The downloading unit is configured to download the content to be distributed according to the content identifier and the storage location information received by the receiving unit.

可选的,所述运营统计数据包括至少一个参考位置信息以及所述待分发内容在每个参考位置信息的访问量信息,所述状态信息包括所述第一CDN中的每个边缘节点的位置信息。Optionally, the operational statistical data includes at least one reference location information and access volume information of the content to be distributed at each reference location information, and the status information includes the location of each edge node in the first CDN information.

进一步地,所述确定单元,具体用于:Further, the determining unit is specifically used for:

根据预设规则和所述待分发内容在每个参考位置信息的访问量信息,从所述全部参考边缘节点的位置信息中确定出至少一个目的参考位置信息;Determining at least one target reference location information from the location information of all reference edge nodes according to preset rules and the visit volume information of each reference location information of the content to be distributed;

从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息,所述待分发边缘节点包含至少一个边缘缓存服务器;Selecting the location information of an edge node to be distributed for each purpose reference location information from the location information of all the edge nodes, the edge node to be distributed includes at least one edge cache server;

根据每个待分发边缘节点的位置信息,为每个待分发边缘节点确定至少一个待分发边缘缓存服务器。According to the location information of each edge node to be distributed, at least one edge cache server to be distributed is determined for each edge node to be distributed.

进一步地,对于所述至少一个目的参考位置信息中的第一目的参考位置信息,所述确定单元,具体用于:Further, for the first target reference position information in the at least one target reference position information, the determining unit is specifically configured to:

若所述全部边缘节点中存在边缘节点的位置信息与所述第一目的参考位置信息相同,则将该边缘节点的位置信息确定为第一待分发的边缘节点的位置信息;If the position information of the edge node among all the edge nodes is the same as the first destination reference position information, then determine the position information of the edge node as the position information of the first edge node to be distributed;

若所述全部边缘节点的位置信息与所述第一目的参考位置信息均不相同,则从所述全部边缘节点的位置信息中选取第一待分发的边缘节点的位置信息,其中,所述第一待分发的边缘节点的位置信息与所述第一目的参考位置信息之间的距离最小。If the location information of all the edge nodes is different from the first destination reference location information, select the location information of the first edge node to be distributed from the location information of all the edge nodes, wherein the first The distance between the location information of an edge node to be distributed and the first destination reference location information is the smallest.

进一步地,所述内容分发消息还包括目的分发位置信息。Further, the content distribution message also includes target distribution location information.

进一步地,所述确定单元,还用于在从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息之后,且在为每个待分发边缘节点的位置信息确定至少一个待分发边缘缓存服务器之前,若目的分发边缘节点的位置信息未被包含于至少一个待分发边缘节点的位置信息中,则将所述目的分发边缘节点的位置信息确定为待分发边缘节点的位置信息,所述目的分发边缘节点包含于所述母的分发位置信息中。Further, the determining unit is further configured to, after selecting a location information of an edge node to be distributed for each target reference location information from the location information of all edge nodes, and for each edge node to be distributed Before the location information determines at least one edge cache server to be distributed, if the location information of the destination distribution edge node is not included in the location information of at least one to-be-distributed edge node, then determine the location information of the destination distribution edge node as the location information to be distributed The location information of the edge node, the destination distribution edge node is included in the parent distribution location information.

进一步地,所述状态信息还包括所述第一CDN中的每个边缘缓存服务器的存储空间利用率、每个边缘缓存服务器的属性值和每个边缘缓存服务器的存储空间数值。Further, the status information also includes the storage space utilization rate of each edge cache server in the first CDN, the attribute value of each edge cache server, and the storage space value of each edge cache server.

进一步地,对于所述至少一个待分发边缘节点的位置信息中的第一待分发边缘节点的位置信息而言,所述确定单元,具体用于:Further, for the location information of the first edge node to be distributed in the location information of the at least one edge node to be distributed, the determining unit is specifically configured to:

根据所述待分发内容在所述第一待分发边缘节点的访问量信息和第一预设阈值,确定需为所述第一待分发边缘节点分发所述待分发内容的数量N,N≥1;According to the traffic information of the content to be distributed on the first edge node to be distributed and a first preset threshold, determine the number N of the content to be distributed that needs to be distributed to the first edge node to be distributed, N≥1 ;

根据预设条件,从所述第一待分发边缘节点包含的全部边缘缓存服务器中,选取X个边缘缓存服务器作为候选边缘缓存服务器,其中,所述预设条件为边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,且所述边缘缓存服务器的属性值小于第三预设阈值,X≥1;Select X edge cache servers as candidate edge cache servers from all edge cache servers included in the first edge node to be distributed according to preset conditions, wherein the preset condition is the storage space utilization rate of the edge cache servers less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than the third preset threshold, X≥1;

若N≥X,则将X个候选边缘缓存服务器确定为待分发边缘缓存服务器;If N≥X, determine X candidate edge cache servers as edge cache servers to be distributed;

若N<X,则从所述X个候选边缘缓存服务器中选取出N个候选边缘缓存服务器,并将所述N个候选边缘缓存服务器确定为待分发边缘缓存服务器,所述N个候选边缘缓存服务器为所述X个候选边缘缓存服务器按照可用存储空间从大到小依次排列后的前N个。If N<X, select N candidate edge cache servers from the X candidate edge cache servers, and determine the N candidate edge cache servers as edge cache servers to be distributed, and the N candidate edge cache servers The servers are the first N of the X candidate edge cache servers arranged in descending order of available storage space.

可选的,所述运营统计数据包括所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息。Optionally, the operation statistical data includes information about the number of views of the content to be distributed at least one bit rate and information about the number of views of all content segments of the content to be distributed at each bit rate.

进一步地,对于至少一个待分发边缘缓存服务器中的第一待分发边缘缓存服务器,所述确定单元,具体用于:Further, for the first edge cache server to be distributed among at least one edge cache server to be distributed, the determining unit is specifically configured to:

确定所述第一待分发边缘缓存服务器的可用存储空间数值;Determine the value of the available storage space of the first edge cache server to be distributed;

若所述第一待分发边缘缓存服务器的可用存储空间数值小于所述待分发内容的占用空间数值,则根据所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息,确定至少一个内容分片为需为所述第一待分发边缘缓存服务器分发的内容,所述至少一个内容分片的占用空间数值等于所述第一待分发边缘缓存服务器的可用存储空间数值;If the value of the available storage space of the first edge cache server to be distributed is smaller than the value of the occupied space of the content to be distributed, according to the access volume information of the content to be distributed at least one code rate and the content to be distributed every The traffic information of all content fragments of a code rate, determine that at least one content fragment is the content that needs to be distributed by the first edge cache server to be distributed, and the occupied space value of the at least one content fragment is equal to the value of the first edge cache server to be distributed. - The value of the available storage space of the edge cache server to be distributed;

若所述第一待分发边缘缓存服务器的可用存储空间数值大于或等于所述待分发内容的占用空间数值,则将所述待分发内容确定为需为所述第一待分发边缘缓存服务器分发的内容。If the value of the available storage space of the first edge cache server to be distributed is greater than or equal to the value of the occupied space of the content to be distributed, the content to be distributed is determined to be distributed by the first edge cache server to be distributed content.

进一步地,所述确定单元,具体用于:Further, the determining unit is specifically used for:

选取访问量信息最大的码率;Select the code rate with the largest number of visits;

根据所述访问量最大的码率和所述待分发内容在该码率的全部内容分片的访问量信息,将该码率中访问量信息最大的内容分片确定为需为所述第一待分发边缘缓存服务器分发的内容,直至所述第一待分发边缘缓存服务器的可用存储空间数值为零。According to the code rate with the largest number of visits and the number of visits information of all content fragments of the content to be distributed at this code rate, determine the content fragment with the largest number of visits information in the code rate as the first The content distributed by the edge cache server to be distributed until the value of the available storage space of the first edge cache server to be distributed is zero.

可选的,所述运营统计数据包括至少一个统计周期和所述待分发内容在各个统计周期的访问量信息。Optionally, the operational statistical data includes at least one statistical period and information on the number of visits of the content to be distributed in each statistical period.

进一步地,所述确定单元,还用于在所述分发单元根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,根据所述待分发内容在各个统计周期的访问量信息,确定所述待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期。Further, the determining unit is further configured to, after the distributing unit distributes to each edge cache server to be distributed the content that needs to be distributed to the edge cache server to be distributed in the content to be distributed according to the distribution result, According to the traffic information of the content to be distributed in each statistical period, the protection period of each edge cache server to be distributed in the first CDN is determined.

进一步地,所述中心节点还包括发送单元,Further, the central node also includes a sending unit,

所述发送单元,用于向每个待分发边缘缓存服务器发送设置请求,所述设置消息包含所述确定单元确定的所述待分发内容在该待分发边缘缓存服务器的保护周期,所述设置消息用于指示每个待分发边缘缓存服务器设置各自已分发内容的保护周期,所述已分发内容属于所述待分发内容。The sending unit is configured to send a setting request to each edge cache server to be distributed, the setting message includes the protection period of the content to be distributed determined by the determination unit in the edge cache server to be distributed, the setting message It is used to instruct each edge cache server to be distributed to set a protection period for the distributed content, and the distributed content belongs to the content to be distributed.

进一步地,所述接收单元,还用于在所述确定单元根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,且在确定所述待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期之前,接收每个待分发边缘缓存服务器发送的确认消息。Further, the receiving unit is further configured to: after the determining unit distributes, for each edge cache server to be distributed, the content that needs to be distributed to the edge cache server to be distributed in the content to be distributed according to the distribution result, And before determining the protection period of the content to be distributed in each edge cache server to be distributed in the first CDN, receiving a confirmation message sent by each edge cache server to be distributed.

本发明另一实施例提供一种内容服务器,包括获取单元和发送单元。Another embodiment of the present invention provides a content server, including an acquiring unit and a sending unit.

具体的,本发明实施例提供的各个单元模块所实现的功能具体如下:Specifically, the functions realized by each unit module provided by the embodiment of the present invention are as follows:

获取单元,用于获取运营统计数据,所述运营统计数据为在第二内容分发网络CDN中对待分发内容的访问量的统计数据。The acquiring unit is configured to acquire operational statistical data, where the operational statistical data is statistical data of visits to the content to be distributed in the second content delivery network CDN.

发送单元,用于向第一中心节点发送内容分发消息,所述内容分发消息包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述运营统计数据,所述内容分发消息用于指示所述第一中心节点将所述待分发内容在第一CDN中分发,所述第一中心节点属于第一CDN。A sending unit, configured to send a content distribution message to the first central node, where the content distribution message includes the content identifier of the content to be distributed, storage location information of the content to be distributed in the content server, and the operation statistics data , the content distribution message is used to instruct the first central node to distribute the content to be distributed in a first CDN, and the first central node belongs to the first CDN.

本发明实施例提供的内容服务器的技术效果可以参见上述实施例中内容服务器执行的内容分发方法中描述的内容服务器的技术效果,此处不再赘述。For the technical effects of the content server provided by the embodiments of the present invention, reference may be made to the technical effects of the content server described in the method for distributing content performed by the content server in the above embodiments, which will not be repeated here.

进一步地,所述发送单元,具体用于若在本地的内容部署运营管理表中获取到第二CDN的标识,则向第二中心节点发送运营统计请求消息,所述第二中心节点属于所述第二CDN,本地的内容部署运营管理表包括所述第二CDN的标识与所述待分发内容的内容标识的映射关系,所述运营统计请求消息包含所述待分发内容的内容标识,所述运营统计请求消息用于请求所述第二中心节点统计分析所述待分发内容在第二CDN中的访问量信息。Further, the sending unit is specifically configured to send an operation statistics request message to a second central node if the identifier of the second CDN is obtained in the local content deployment operation management table, and the second central node belongs to the For the second CDN, the local content deployment operation management table includes a mapping relationship between the identifier of the second CDN and the content identifier of the content to be distributed, the operation statistics request message includes the content identifier of the content to be distributed, the The operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN.

进一步地,所述内容服务器还包括接收单元,Further, the content server also includes a receiving unit,

所述接收单元,用于接收所述第二中心节点发送的运营统计响应消息,所述运营统计响应消息包括所述运营统计数据。The receiving unit is configured to receive an operation statistics response message sent by the second central node, where the operation statistics response message includes the operation statistics data.

进一步地,所述运营统计请求消息还包括统计参数,所述运营统计消息用于请求所述第二中心节点根据所述统计参数统计分析所述待分发内容在第二CDN中的访问量信息,所述统计参数包含地域粒度信息、码率、时间戳信息、访问量统计周期中的至少一个。Further, the operation statistics request message further includes statistical parameters, and the operation statistics message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN according to the statistical parameters, The statistical parameters include at least one of regional granularity information, code rate, time stamp information, and traffic statistics period.

本发明实施例还提供一种内容分发系统,包括如上述任意一项所述的中心节点、如上述任何一项所述的内容服务器以及所述中心节点管理的至少一个边缘节点,每个边缘节点由至少一个边缘缓存服务器组成,所述内容服务器与所述中心节点之间通过网络连接,所述中心节点与每个边缘缓存服务器之间通过网络连接。An embodiment of the present invention also provides a content distribution system, including the central node described in any of the above, the content server described in any of the above, and at least one edge node managed by the central node, each edge node It consists of at least one edge cache server, the content server is connected to the central node through a network, and the central node is connected to each edge cache server through a network.

具体的,中心节点为第一中心节点。Specifically, the central node is the first central node.

本发明实施例提供的内容分发系统的技术效果可以参见上述实施例中第一中心节点执行的内容分发方法中描述的第一中心节点的技术效果和上述实施例中内容服务器执行的内容分发方法中描述的内容服务器的技术效果,此处不再赘述。The technical effect of the content distribution system provided by the embodiment of the present invention can be referred to the technical effect of the first central node described in the content distribution method executed by the first central node in the above embodiment and the content distribution method executed by the content server in the above embodiment The technical effect of the described content server will not be repeated here.

附图说明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 drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present invention.

图1为内容分发系统的网络结构图;Fig. 1 is a network structure diagram of a content distribution system;

图2为现有的内容分发方法的流程示意图;FIG. 2 is a schematic flow chart of an existing content distribution method;

图3为本发明实施例提供的内容分发方法的流程示意图一;FIG. 3 is a first schematic flow diagram of a content distribution method provided by an embodiment of the present invention;

图4为本发明实施例中提供的内容分发方法的流程示意图二;FIG. 4 is a second schematic flow diagram of the content distribution method provided in the embodiment of the present invention;

图5为本发明实施例中提供的内容分发方法的流程示意图三;FIG. 5 is a third schematic flow diagram of the content distribution method provided in the embodiment of the present invention;

图6为本发明实施例中提供的内容分发方法的流程示意图四;FIG. 6 is a fourth schematic flowchart of a content distribution method provided in an embodiment of the present invention;

图7为本发明实施例中提供的中心节点的结构示意图一;FIG. 7 is a first structural schematic diagram of a central node provided in an embodiment of the present invention;

图8为本发明实施例中提供的中心节点的结构示意图二;FIG. 8 is a second structural schematic diagram of a central node provided in an embodiment of the present invention;

图9为本发明实施例中提供的中心节点的结构示意图三;FIG. 9 is a schematic diagram of the third structure of the central node provided in the embodiment of the present invention;

图10为本发明实施例中提供的内容服务器的结构示意图一;FIG. 10 is a first structural diagram of a content server provided in an embodiment of the present invention;

图11为本发明实施例中提供的内容服务器的结构示意图二;FIG. 11 is a second schematic diagram of the structure of the content server provided in the embodiment of the present invention;

图12为本发明实施例中提供的内容服务器的结构示意图三。FIG. 12 is a third structural schematic diagram of the content server provided in the embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于限定特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to limit a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透切理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration rather than limitation, specific details such as specific system architectures, interfaces, and techniques are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

图1是内容分发系统的网络结构图。参见图1,该内容分发系统包括内容服务器10以及一个或多个CDN11。其中,CDN11与内容服务器10之间通过网络连接。Fig. 1 is a network structure diagram of a content distribution system. Referring to FIG. 1 , the content distribution system includes a content server 10 and one or more CDNs 11 . Among them, the CDN 11 and the content server 10 are connected through a network.

可选的,内容服务器10可以为内容提供商(CP,Content Provider)服务器,也可以为服务提供商(SP,Service Provider)服务器。Optionally, the content server 10 may be a content provider (CP, Content Provider) server, or a service provider (SP, Service Provider) server.

CDN11包含中心节点110以及一个或多个和中心节点110连接的边缘节点111。其中,中心节点110与边缘节点111之间通过网络连接。每个边缘节点包含有一个或多个边缘缓存服务器112。The CDN 11 includes a central node 110 and one or more edge nodes 111 connected to the central node 110 . Wherein, the central node 110 and the edge node 111 are connected through a network. Each edge node includes one or more edge cache servers 112 .

中心节点110具有管理内容、调度内容、缓存内容和分发内容等功能,能够获知所有边缘节点111的地理位置信息,所有边缘缓存服务器112的存储信息和服务状态等信息。The central node 110 has the functions of managing content, scheduling content, caching content and distributing content, etc., and can know the geographic location information of all edge nodes 111, the storage information and service status of all edge cache servers 112, and other information.

内容服务器10主要用于向CDN11中的中心节点110发送内容分发消息,用于指示中心节点110根据内容分发消息中待分发内容的内容标识,将待分发内容在该中心节点110归属的CDN11中进行分发。The content server 10 is mainly used to send a content distribution message to the central node 110 in the CDN 11, and is used to instruct the central node 110 to distribute the content to be distributed in the CDN 11 to which the central node 110 belongs according to the content identification of the content to be distributed in the content distribution message. distribution.

其中,内容服务器10自身维护有内容部署运营管理表,该内容部署运营管理表中包含有内容标识、CDN标识、上线时刻以及下线时刻等参数,其中,CDN标识用于指示分发有与内容标识对应的内容的CDN。Wherein, the content server 10 itself maintains a content deployment operation management table, which includes parameters such as content ID, CDN ID, online time, and offline time, wherein the CDN ID is used to indicate that the distribution is related to the content ID. The CDN of the corresponding content.

中心节点110主要用于接收内容服务器10发送的内容分发消息,并根据接收到的内容分发消息中的存储位置信息,下载待分发内容。中心节点110还用于确定将获取到的待分发内容分发至哪些边缘缓存服务器112,以及用于根据内容服务器10发送的运营统计请求包含的内容标识,分析内容标识指示的内容在CDN11中的访问量信息。The central node 110 is mainly used to receive the content distribution message sent by the content server 10, and download the content to be distributed according to the storage location information in the received content distribution message. The central node 110 is also used to determine which edge cache servers 112 to distribute the acquired content to be distributed to, and to analyze the access of the content indicated by the content ID in the CDN 11 according to the content ID included in the operation statistics request sent by the content server 10 amount of information.

CDN中分发的内容存在内容保护期。其中,内容保护期为CDN对新部署到系统上的内容进行强制保护使其不被淘汰的时间周期。There is a content protection period for the content distributed in the CDN. Wherein, the content protection period is a time period during which the CDN enforces protection for newly deployed content on the system so that it will not be eliminated.

现有技术中,CDN中存在以下两种内容分发方法:In the prior art, there are the following two content distribution methods in CDN:

(1)在中心节点从CP服务器/SP服务器获取到待分发内容后,触发网络中每个边缘节点中的其中一个缓存服务器下载一份待分发内容,以实现网络中所有边缘节点均存储有一份待分发内容。(1) After the central node obtains the content to be distributed from the CP server/SP server, it triggers one of the cache servers in each edge node in the network to download a copy of the content to be distributed, so that all edge nodes in the network store a copy content to be distributed.

(2)在中心节点从CP服务器/SP服务器获取到待分发内容后,中心节点根据CP服务器/SP服务器发送的内容分发任务消息中包含的目的分发位置信息,在与目的分发位置信息对应的边缘节点包含的缓存服务器中确定待分发的缓存服务器,并触发待分发的缓存服务器下载一份待分发内容,以实现在待分发的缓存服务器中存储一份待分发内容。(2) After the central node obtains the content to be distributed from the CP server/SP server, the central node, according to the target distribution location information contained in the content distribution task message sent by the CP server/SP server, The cache server included in the node determines the cache server to be distributed, and triggers the cache server to be distributed to download a copy of the content to be distributed, so as to store a copy of the content to be distributed in the cache server to be distributed.

具体的,如图2所示,上述第二种内容分发方法具体为:Specifically, as shown in Figure 2, the above-mentioned second content distribution method is specifically:

1、内容服务器向CDN包含的中心节点发送内容分发消息,其中,该内容分发消息包含待分发内容的内容标识、待分发内容在内容服务器中的存储位置信息以及目的分发位置信息。1. The content server sends a content distribution message to the central node included in the CDN, wherein the content distribution message includes the content identifier of the content to be distributed, the storage location information of the content to be distributed in the content server, and the destination distribution location information.

2、中心节点根据目的分发位置信息,在与目的分发位置信息对应的边缘节点中选取存储空间利用率最低、服务状态最好的边缘缓存服务器作为待分发的缓存服务器。2. According to the target distribution location information, the central node selects the edge cache server with the lowest storage space utilization rate and the best service status among the edge nodes corresponding to the target distribution location information as the cache server to be distributed.

3、中心节点触发所有待分发的缓存服务器下载待分发内容。3. The central node triggers all cache servers to be distributed to download the content to be distributed.

4、各个待分发的缓存服务器将待分发内容下载结束后,给中心节点发送确认消息。4. Each cache server to be distributed sends a confirmation message to the central node after downloading the content to be distributed.

5、中心节点向各个待分发的缓存服务器发送包含有预设的内容保护期的设置消息,以使得各个待分发的缓存服务器对下载的内容设置预设的内容保护期。5. The central node sends a setting message including a preset content protection period to each cache server to be distributed, so that each cache server to be distributed sets a preset content protection period for the downloaded content.

上述CDN内容分发方法都可以实现将待分发内容分发至网络“边缘”,但对于每个获取到待分发内容的边缘缓存服务器而言,该边缘缓存服务器存储的待分发内容有可能无法满足用户的访问需求,进而导致边缘缓存服务器访问过载。The above-mentioned CDN content distribution methods can realize the distribution of the content to be distributed to the "edge" of the network, but for each edge cache server that obtains the content to be distributed, the content to be distributed stored by the edge cache server may not meet the needs of users. Access requirements, which in turn lead to overloading of edge cache server access.

具体的,内容的访问量在不同维度上具有以下几个特征:Specifically, the number of visits to content has the following characteristics in different dimensions:

1、内容在不同地区的访问量存在差异性。1. There are differences in the number of visits to content in different regions.

由于不同地区用户的文化差异等原因,不同的内容在各地区的访问量是有差异的。例如,某视频应用统计的数据为:影片X的访问量最高的前三个地区分别是A地、B地和C地,而影片Y的访问量最高的前三个地区分别是L地、M地和N地。Due to the cultural differences of users in different regions and other reasons, the number of visits to different content in different regions is different. For example, the statistical data of a certain video application is: the top three regions with the highest visit volume of movie X are A, B and C respectively, and the top three regions with the highest visit volume of movie Y are L, M respectively. land and N land.

为了尽可能地为用户提供就近服务,在进行内容分发时,应该优先将内容分发到访问量高,即用户需求大的区域,而且一般访问量越大,内容的分发数量应该更多,以应对并发访问的压力。In order to provide users with the nearest service as much as possible, when distributing content, priority should be given to distributing content to areas with high traffic volume, that is, areas with high user demand, and generally the greater the traffic volume, the more content should be distributed to deal The pressure of concurrent access.

2、内容的访问量随时间变化存在差异性。2. There are differences in the number of visits to content over time.

内容上线后,其访问量一般遵循先上升然后下降的过程,这个从上升到下降的时间周期称为内容的访问量衰减周期。不同内容的访问量衰减周期是不一样的,有的内容上线后访问量上升快下降得也快,有的内容上线后访问量上升较慢,但访问量保留的时间也长,即下降的也很缓慢。After the content goes online, its traffic generally follows the process of rising first and then falling. This time period from rising to falling is called the content traffic decay cycle. Different content has different visit volume decay periods. Some content sees a rapid increase in visits and then falls rapidly after it goes online; very slowly.

在进行内容分发时,比较理想的情况是根据内容的访问量衰减周期来设置不同的保护期,这样既可以防止访问量正在上升但过了保护期的内容被淘汰的情况,也可以防止访问量已经变得很低、但还在保护期的内容仍然占据缓存空间的情况。When distributing content, it is ideal to set different protection periods according to the decay period of the content's visits, which can prevent the content from being eliminated when the visits are increasing but the protection period has passed, and prevent the visits from being eliminated. A situation where content that has become very low but is still under protection still takes up cache space.

3、内容在不同码率和不同时间戳上的访问量存在差异性3. There are differences in the number of visits to content at different bit rates and different time stamps

由于网络环境的复杂性,对于流媒体内容而言,一般会存在多种码率,在传输中通过切换码率来保证流媒体内容传输的流畅性。Due to the complexity of the network environment, there are generally multiple bit rates for streaming media content, and the smoothness of streaming media content transmission is ensured by switching bit rates during transmission.

此外,目前的超文本传输协议(HTTP,Hypertext Transfer Protocol)一般都要求将流媒体内容切成很多个短时间(例如10秒、一分钟等)的内容分片,每个内容能够分片都有一个时间戳,用来指示该内容分片相对于流媒体内容起始的时间。In addition, the current Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) generally requires streaming media content to be cut into many short-time (for example, 10 seconds, one minute, etc.) content fragments, and each content fragment can have A timestamp used to indicate the start time of the content segment relative to the streaming media content.

从码率上看,用户对每种码率的访问量并不是均匀的,有冷热码率之分。从时间戳上看,用户对内容各个时间戳上的访问也是不均匀的,用户并不总是将内容从头看到尾,有些内容可能大多数只被观看了开头的一部分,有的可能是观看了开头或者结尾的部分。From the point of view of the code rate, the number of user visits to each code rate is not uniform, and there are hot and cold code rates. From the perspective of time stamps, users’ access to content on each time stamp is also uneven. Users do not always see the content from the beginning to the end. Some content may only be viewed at the beginning, and some may be watched part of the beginning or end.

在分发流媒体内容时,应该优先将访问量高的码率、以及访问量高的时段的内容分片分发到边缘节点进行存储。When distributing streaming media content, priority should be given to distributing content fragments with a high bit rate and time periods with high traffic to edge nodes for storage.

针对现有技术中内容分发方法存在的问题,本发明实施例基于内容的访问量在不同维度的特征提供一种内容分发方法、装置及系统,通过在内容分发消息中增加待分发内容在第二CDN中不同维度的访问量信息,即增加待分发内容在第二CDN中不同维度的运营统计数据,使得在第一CDN中分发待分发内容时,能够准确的计算出待分发边缘缓存服务器和每个待分发边缘缓存服务器存储的内容,从而避免边缘缓存服务器访问过载的问题,能够更好的满足用户的访问需求。Aiming at the problems existing in the content distribution method in the prior art, the embodiment of the present invention provides a content distribution method, device and system based on the characteristics of content visits in different dimensions, by adding the content to be distributed in the content distribution message in the second The traffic information of different dimensions in the CDN, that is, to increase the operation statistics of the content to be distributed in different dimensions in the second CDN, so that when the content to be distributed is distributed in the first CDN, the edge cache server to be distributed can be accurately calculated. The content stored in each edge cache server is to be distributed, so as to avoid the problem of overloading access to the edge cache server and better meet the access needs of users.

实施例一Embodiment one

图3为本发明实施例提供的一种内容分发方法的流程示意图,该内容分发方法可以应用在图1所示的应用场景中。FIG. 3 is a schematic flowchart of a content distribution method provided by an embodiment of the present invention. The content distribution method can be applied in the application scenario shown in FIG. 1 .

参见图3,该内容分发方法包括:Referring to Figure 3, the content distribution method includes:

S100、内容服务器获取运营统计数据。S100. The content server obtains operation statistics data.

其中,运营统计数据为在第二CDN中对待分发内容的访问量的统计数据。Wherein, the operational statistical data is the statistical data of the visit volume of the content to be distributed in the second CDN.

S101、内容服务器向第一中心节点发送包括待分发内容的内容标识、待分发内容在内容服务器的存储位置信息以及运营统计数据的内容分发消息。S101. The content server sends a content distribution message including a content identifier of the content to be distributed, storage location information of the content to be distributed on the content server, and operation statistics data to the first central node.

其中,内容分发消息用于指示第一中心节点将待分发内容在第一CDN中分发,第一中心节点属于第一CDN。Wherein, the content distribution message is used to instruct the first central node to distribute the content to be distributed in the first CDN, and the first central node belongs to the first CDN.

S102、第一中心节点根据内容标识和存储位置信息,下载待分发内容。S102. The first central node downloads the content to be distributed according to the content identifier and storage location information.

第一中心节点从内容服务器中下载待分发内容,该过程与现有中心节点从内容服务器中下载待分发内容的过程相同,此处不再进行详细赘述。The first central node downloads the content to be distributed from the content server, and this process is the same as that of the existing central node downloading the content to be distributed from the content server, and will not be described in detail here.

S103、第一中心节点根据运营统计数据和第一CDN中的全部边缘节点的状态信息,得到确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容。S103. The first central node obtains at least one determined edge cache server to be distributed and the content to be distributed to each edge cache server to be distributed according to the operation statistics data and the state information of all edge nodes in the first CDN.

S104、第一中心节点为每个待分发边缘缓存服务器分发待分发内容中需为该待分发边缘缓存服务器分发的内容。S104. The first central node distributes, for each edge cache server to be distributed, the content to be distributed to the edge cache server to be distributed.

一般情况下,内容服务器自身维护有内容部署运营管理表,该内容部署运营管理表中包含有内容标识、CDN标识、上线时刻以及下线时刻等参数,其中,CDN标识用于指示分发有与内容标识对应的内容的CDN。In general, the content server itself maintains a content deployment operation management table, which contains parameters such as content ID, CDN ID, online time, and offline time, among which, the CDN ID is used to indicate that the distribution is related to the content Identifies the CDN of the corresponding content.

内容服务器执行S100,获取运营统计数据。The content server executes S100 to obtain operational statistical data.

具体的,内容服务器响应于管理员的内容分发操作,查询本地的内容部署运营管理表中是否包含有待分发内容的内容标识,管理员的内容分发操作是用于触发内容服务器发送内容分发消息给第一CDN中的第一中心节点,以便于第一中心节点将待分发内容在第一CDN中分发。Specifically, in response to the administrator's content distribution operation, the content server queries whether the local content deployment operation management table contains the content identifier of the content to be distributed. The administrator's content distribution operation is used to trigger the content server to send a content distribution message to the first A first central node in a CDN, so that the first central node distributes the content to be distributed in the first CDN.

若内容部署运营管理表中存在待分发内容的内容标识,则内容服务器获取与待分发内容的内容标识对应的CDN标识,即获取第二CDN标识。If the content identifier of the content to be distributed exists in the content deployment operation management table, the content server obtains the CDN identifier corresponding to the content identifier of the content to be distributed, that is, acquires the second CDN identifier.

若内容部署运营管理表中不存在待分发内容的内容标识,则内容服务器按照现有的内容分发方法执行相应步骤。If the content identifier of the content to be distributed does not exist in the content deployment operation management table, the content server performs corresponding steps according to the existing content distribution method.

其中,本地的内容部署运营管理表包括第二CDN的标识与待分发内容的内容标识的映射关系。Wherein, the local content deployment operation management table includes a mapping relationship between the identifier of the second CDN and the content identifier of the content to be distributed.

可以理解的是,由于内容分发操作是用于触发在第一CDN中将待分发内容分发,说明第一CDN中从未分发待分发内容。内容服务器中的内容部署运营管理表中记录的是在哪个CDN中分发了什么内容,因此,若内容部署运营管理表中存在待分发内容的内容标识,则说明待分发内容在其他CDN中已经分发,且该CDN与第一CDN不同。It can be understood that since the content distribution operation is used to trigger distribution of the content to be distributed in the first CDN, it means that the content to be distributed has never been distributed in the first CDN. The content deployment operation management table in the content server records which content is distributed in which CDN. Therefore, if the content identification of the content to be distributed exists in the content deployment operation management table, it means that the content to be distributed has been distributed in other CDNs , and the CDN is different from the first CDN.

具体的,内容服务器向第二中心节点发送包含待分发内容的内容标识的运营统计请求消息,用于请求第二中心节点统计分析待分发内容在第二CDN中的访问量信息。其中,第二中心节点属于第二CDN。Specifically, the content server sends an operation statistics request message including the content identifier of the content to be distributed to the second central node, for requesting the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN. Wherein, the second central node belongs to the second CDN.

进一步地,运营统计请求消息还包括统计参数,该运营统计请求消息用于请求第二中心节点根据统计参数统计分析待分发内容在第二CDN中的访问量信息。Further, the operation statistics request message also includes statistical parameters, and the operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN according to the statistical parameters.

优选的,本发明实施例中的统计参数包含地域粒度信息、码率、时间戳信息、访问量统计周期中的至少一个。Preferably, the statistical parameters in the embodiment of the present invention include at least one of regional granularity information, code rate, time stamp information, and traffic statistics period.

其中,地域粒度信息是指地域信息统计的地域粒度,例如以“省”为单位,或者以“市”为单位。码率是指内容的码率。时间戳信息是指统计流媒体内容在时间戳上访问量度分布时的时间粒度,例如以10分钟为单位进行统计访问量。访问量统计周期是指统计访问量的时间周期,例如24小时。Wherein, the regional granularity information refers to the regional granularity of regional information statistics, for example, "province" or "city" as a unit. The bit rate refers to the bit rate of the content. The time stamp information refers to the time granularity when counting the access metric distribution of the streaming media content on the time stamp, for example, the access count is counted in units of 10 minutes. The traffic statistics period refers to a time period for counting traffic, for example, 24 hours.

其中,本发明实施例中的中心节点预先配置有统计默认参数,该中心节点可以为第一中心节点,也可以为第二中心节点。Wherein, the central node in the embodiment of the present invention is pre-configured with statistical default parameters, and the central node may be the first central node or the second central node.

具体的,若运营统计请求消息中未包含有统计参数,则第二中心节点根据统计默认参数统计分析待分发内容在第二CDN中的访问量信息。Specifically, if the statistical parameter is not included in the operation statistics request message, the second central node statistically analyzes the traffic information of the content to be distributed in the second CDN according to the statistical default parameter.

由于待分发内容已经在第二CDN中分发,因此第二中心节点可以计算出待分发内容在第二CDN中各个维度的访问量信息,即第二中心节点可以计算出运营统计数据。第二中心节点将计算出的运营统计数据向内容服务器发送,这样,内容服务器即可获取到运营统计数据。Since the content to be distributed has been distributed in the second CDN, the second central node can calculate the traffic information of each dimension of the content to be distributed in the second CDN, that is, the second central node can calculate operational statistics. The second central node sends the calculated operational statistical data to the content server, so that the content server can obtain the operational statistical data.

若统计请求消息中包含有统计参数,则对应于统计参数,运营统计数据包括第二CDN中分发有待分发内容的每个参考位置信息的访问量信息、待分发内容在至少一个码率的访问量信息、待分发内容在每个码率的全部内容分片的访问量信息和待分发内容在各个统计周期的访问量信息。If the statistical parameter is included in the statistical request message, corresponding to the statistical parameter, the operation statistical data includes the traffic information of each reference location information for distributing the content to be distributed in the second CDN, the traffic traffic of the content to be distributed in at least one code rate information, the visit volume information of all content segments of the content to be distributed in each code rate, and the visit volume information of the content to be distributed in each statistical period.

相应的,内容服务器在获取到运营统计数据后,执行S101,向第一中心节点发送包括待分发内容的内容标识、待分发内容在内容服务器的存储位置信息以及运营统计数据的内容分发消息。Correspondingly, after the content server obtains the operation statistics data, it executes S101, and sends a content distribution message including the content identification of the content to be distributed, the storage location information of the content to be distributed on the content server, and the operation statistics data to the first central node.

可选的,内容分发消息还可以包括目的分发位置信息和/或预设的内容保护期。Optionally, the content distribution message may also include target distribution location information and/or a preset content protection period.

第一中心节点在接收到内容分发消息后,根据内容标识和存储位置信息,下载待分发内容,即执行S102。After receiving the content distribution message, the first central node downloads the content to be distributed according to the content identifier and storage location information, that is, executes S102.

第一中心节点下载待分发内容的过程与现有中心节点从内容服务器下载待分发内容的过程相同,此处不再进行详细赘述。The process of downloading the content to be distributed by the first central node is the same as the process of downloading the content to be distributed by the existing central node from the content server, and will not be described in detail here.

第一中心节点在获取到待分发内容和运营统计数据后,根据运营统计数据和第一CDN中的全部边缘节点的状态信息,得到确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容,即执行S103。After the first central node obtains the content to be distributed and the operation statistics data, according to the operation statistics data and the state information of all the edge nodes in the first CDN, obtain at least one edge cache server to be distributed and the Content distributed by the edge cache server, that is, execute S103.

其中,本发明实施例中的状态信息包括第一CDN中的每个边缘节点的位置信息、每个边缘缓存服务器的存储空间利用率、每个边缘缓存服务器的属性值和每个边缘缓存服务器的存储空间数值。边缘缓存服务器的属性值用于表明边缘缓存服务器的运行是否正常,该属性值可以为边缘缓存服务器的中央处理器(CPU,Central Processing Unit)占用率。Wherein, the state information in the embodiment of the present invention includes the location information of each edge node in the first CDN, the storage space utilization rate of each edge cache server, the attribute value of each edge cache server, and the Storage space value. The attribute value of the edge cache server is used to indicate whether the operation of the edge cache server is normal, and the attribute value may be a central processing unit (CPU, Central Processing Unit) occupancy rate of the edge cache server.

具体的,若运营统计数据中包括至少一个参考位置信息以及所述待分发内容在每个参考位置信息的访问量信息,则第一中心节点根据运营统计数据和第一CDN中的全部边缘节点的状态信息,确定至少一个待分发边缘缓存服务器的过程为:Specifically, if the operation statistics data includes at least one reference location information and the access volume information of each reference location information of the content to be distributed, the first central node will Status information, the process of determining at least one edge cache server to be distributed is:

1、第一中心节点根据预设规则和待分发内容在每个参考位置信息的访问量信息,从全部参考边缘节点的位置信息中确定出至少一个目的参考位置信息。1. The first central node determines at least one target reference location information from the location information of all reference edge nodes according to the preset rules and the access volume information of each reference location information of the content to be distributed.

其中,预设规则可以为选取访问量大于访问量阈值的参考位置信息,也可以为根据访问量信息从大到小的顺序依次选取前面的若干个参考位置信息,本发明实施例对此不作具体限定。Among them, the preset rule can be to select the reference location information whose visit volume is greater than the visit volume threshold, or to select the previous reference location information according to the order of the visit volume information from large to small, and this embodiment of the present invention does not make specific limited.

2、第一中心节点从全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息。2. The first central node selects the location information of an edge node to be distributed for each destination reference location information from the location information of all edge nodes.

其中,待分发边缘节点包含至少一个边缘缓存服务器。Wherein, the edge node to be distributed includes at least one edge cache server.

目的参考位置信息是第一中心节点根据运营统计数据确定出来的,能够为在第一CDN中分发待分发内容作参考,因此,第一中心节点需要根据第一CDN中的全部边缘节点的位置信息,为每个目的参考位置信息确定一个待分发边缘节点的位置信息。The purpose reference location information is determined by the first central node according to the operational statistical data, which can be used as a reference for distributing content to be distributed in the first CDN. Therefore, the first central node needs to use the location information of all edge nodes in the first CDN , for each purpose, refer to the location information to determine the location information of an edge node to be distributed.

进一步地,若内容分发消息还包括目的分发位置信息,则说明第一中心节点一定要为目的分发位置信息所包括的目的分发边缘节点分发待分发内容。若目的分发边缘节点的位置信息未被包含于至少一个待分发边缘节点的位置信息中,则第一中心节点将目的分发边缘节点的位置信息确定为待分发边缘节点的位置信息。Further, if the content distribution message also includes destination distribution location information, it means that the first central node must distribute the content to be distributed to the destination distribution edge node included in the destination distribution location information. If the location information of the target distribution edge node is not included in the location information of at least one to-be-distributed edge node, the first central node determines the location information of the target distribution edge node as the location information of the to-be-distributed edge node.

3、第一中心节点根据每个待分发边缘节点的位置信息,为每个待分发边缘节点确定至少一个待分发边缘缓存服务器。3. The first central node determines at least one edge cache server to be distributed for each edge node to be distributed according to the location information of each edge node to be distributed.

具体的,对于至少一个待分发边缘节点的位置信息中的每个待分发边缘节点的位置信息而言,第一中心节点选取待分发边缘缓存服务器依据的条件为:边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,边缘缓存服务器的属性值小于第三预设阈值,且待分发边缘缓存服务器的数量小于或等于内容副本数量。Specifically, for the location information of each edge node to be distributed among the location information of at least one edge node to be distributed, the condition on which the first central node selects the edge cache server to be distributed is: the storage space utilization rate of the edge cache server is less than or equal to the second preset threshold, the attribute value of the edge cache server is less than the third preset threshold, and the number of edge cache servers to be distributed is less than or equal to the number of content copies.

其中,边缘缓存服务器中存储一份内容称为一个副本,边缘缓存服务器存储多份内容,能够应对并发访问的压力。Wherein, storing one piece of content in the edge cache server is called a copy, and the edge cache server stores multiple pieces of content, which can cope with the pressure of concurrent access.

对于至少一个待分发边缘节点的位置信息中的第一待分发边缘节点的位置信息而言,第一中心节点根据第一待分发边缘节点的位置信息,为第一待分发边缘节点确定至少一个待分发边缘缓存服务器的过程为:For the location information of the first edge node to be distributed in the location information of at least one edge node to be distributed, the first central node determines at least one edge node to be distributed for the first edge node to be distributed according to the location information of the first edge node to be distributed The process of distributing edge cache servers is:

A、第一中心节点根据待分发内容在第一待分发边缘节点的访问量信息和第一预设阈值,确定需为第一待分发边缘节点分发待分发内容的数量N,N≥1。A. The first central node determines the number N of content to be distributed for the first edge node to be distributed according to the access information of the content to be distributed at the first edge node to be distributed and the first preset threshold, where N≥1.

优选的,第一预设阈值为访问量阈值,其中,访问量阈值可以根据经验进行设置,本发明实施例对此不作具体限定。例如将内容在第一CDN中所有边缘节点的平均访问量信息作为访问量阈值。Preferably, the first preset threshold is a traffic threshold, where the traffic threshold can be set according to experience, which is not specifically limited in this embodiment of the present invention. For example, the average visit volume information of all edge nodes in the first CDN is used as the visit volume threshold.

B、第一中心节点根据预设条件,从第一待分发边缘节点包含的全部边缘缓存服务器中,选取X个边缘缓存服务器作为候选边缘缓存服务器,其中,预设条件为边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,且边缘缓存服务器的属性值小于第三预设阈值,X≥1。B. The first central node selects X edge cache servers as candidate edge cache servers from all the edge cache servers included in the first edge node to be distributed according to preset conditions, wherein the preset condition is the storage space of the edge cache servers The utilization rate is less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than the third preset threshold, X≥1.

C、若N≥X,则第一中心节点将X个候选边缘缓存服务器确定为待分发边缘缓存服务器。C. If N≥X, the first central node determines X candidate edge cache servers as edge cache servers to be distributed.

可以理解的是,若需要给第一边缘节点分发N份待分发内容,而第一中心节点在第一边缘节点包含的所有边缘缓存服务器中选取出X个候选边缘缓存服务器,且N≥X,则需要将选取出的所有候选边缘缓存服务器均作为待分发边缘缓存服务器。It can be understood that if N copies of the content to be distributed need to be distributed to the first edge node, and the first central node selects X candidate edge cache servers from all the edge cache servers included in the first edge node, and N≥X, Then all selected candidate edge cache servers need to be used as edge cache servers to be distributed.

D、若N<X,则第一中心节点从X个候选边缘缓存服务器中选取出N个候选边缘缓存服务器,并将N个候选边缘缓存服务器确定为待分发边缘缓存服务器,N个候选边缘缓存服务器为X个候选边缘缓存服务器按照可用存储空间从大到小依次排列后的前N个。D. If N<X, the first central node selects N candidate edge cache servers from the X candidate edge cache servers, and determines the N candidate edge cache servers as edge cache servers to be distributed, and the N candidate edge cache servers The server is the top N of the X candidate edge cache servers arranged in descending order according to the available storage space.

可以理解的是,第一中心节点选取出的候选边缘缓存服务器的数量大于内容副本数量,则需要从候选边缘缓存服务器中再一次选取,以便于最终确定待分发边缘缓存服务器。It can be understood that if the number of candidate edge cache servers selected by the first central node is greater than the number of content copies, it needs to be selected again from the candidate edge cache servers in order to finally determine the edge cache servers to be distributed.

具体的,若运营统计数据中不包括至少一个参考位置信息以及所述待分发内容在每个参考位置信息的访问量信息,则第一中心节点确定待分发边缘缓存服务器的方法与现有技术中第一中心节点确定待分发边缘缓存服务器的方法相同,此处不再进行详细赘述。Specifically, if the operation statistical data does not include at least one reference location information and the access volume information of the content to be distributed at each reference location information, the method for the first central node to determine the edge cache server to be distributed is the same as that in the prior art The method for the first central node to determine the edge cache server to be distributed is the same, and will not be described in detail here.

进一步地,在第一节点确定至少一个待分发边缘缓存服务器之后,确定需为每个待分发边缘缓存服务器分发的内容。Further, after the first node determines at least one edge cache server to be distributed, determine the content to be distributed for each edge cache server to be distributed.

具体的,若运营统计数据包括待分发内容在至少一个码率的访问量信息和待分发内容在每个码率的全部内容分片的访问量信息,则对于至少一个待分发边缘缓存服务器中的第一待分发边缘缓存服务器,第一中心节点确定需为第一待分发边缘缓存服务器分发的内容的方法为:Specifically, if the operational statistical data includes traffic information of the content to be distributed at least one code rate and traffic information of all content fragments of the content to be distributed at each code rate, then for at least one edge cache server to be distributed For the first edge cache server to be distributed, the method for the first central node to determine the content to be distributed by the first edge cache server to be distributed is:

A、第一中心节点确定第一待分发边缘缓存服务器的可用存储空间数值。A. The first central node determines the value of the available storage space of the first edge cache server to be distributed.

第一中心节点管理第一CDN中所有边缘节点和所有边缘缓存服务器,因此,第一中心节点可以预先获知第一待分发边缘缓存服务器的可用存储空间数值。The first central node manages all edge nodes and all edge cache servers in the first CDN, therefore, the first central node can know in advance the value of the available storage space of the first edge cache server to be distributed.

B、若第一待分发边缘缓存服务器的可用存储空间数值小于待分发内容的占用空间数值,则第一中心节点根据待分发内容在至少一个码率的访问量信息和待分发内容在每个码率的全部内容分片的访问量信息,确定至少一个内容分片为需为第一待分发边缘缓存服务器分发的内容,其中,至少一个内容分片的占用空间数值等于第一待分发边缘缓存服务器的可用存储空间数值。B. If the value of the available storage space of the first edge cache server to be distributed is less than the value of the occupied space of the content to be distributed, the first central node is based on the access information of the content to be distributed in at least one code rate and the content to be distributed in each code rate According to the traffic information of all content fragments with high rate, at least one content fragment is determined as the content that needs to be distributed by the first edge cache server to be distributed, wherein the occupied space value of at least one content fragment is equal to that of the first edge cache server to be distributed The number of available storage spaces.

可以理解的是,若第一待分发边缘缓存服务器的可用存储空间数值小于待分发内容的占用空间数值,则说明第一待分发边缘缓存服务器仅仅能存储部分待分发内容。因此,第一中心节点根据待分发内容中各个内容分片的访问量信息,来为第一待分发边缘缓存服务器分配访问量信息最高的内容分片。It can be understood that if the available storage space of the first edge cache server to be distributed is smaller than the occupied space of the content to be distributed, it means that the first edge cache server to be distributed can only store part of the content to be distributed. Therefore, the first central node allocates the content fragment with the highest traffic information to the first edge cache server to be distributed according to the traffic information of each content fragment in the content to be distributed.

具体的,第一中心节点首先根据待分发内容在至少一个码率的访问量信息,确定访问量信息最大的码率,然后,第一中心节点在同一码率中,选取访问量信息最大的内容分片,第一中心节点按照这样的顺序,逐个选择各个内容分片,直至选择的内容分片的占用空间数值与第一待分发边缘缓存服务器的可用存储空间数值相同,即直至第一待分发边缘缓存服务器的可用存储空间数值为零。Specifically, the first central node first determines the code rate with the largest number of visits information according to the number of visits at least one code rate of the content to be distributed, and then, the first central node selects the content with the largest number of visits at the same code rate Fragmentation, the first central node selects each content fragment one by one in this order until the value of the occupied space of the selected content fragment is the same as the value of the available storage space of the first edge cache server to be distributed, that is, until the value of the first edge cache server to be distributed The available storage space value of the edge cache server is zero.

C、若第一待分发边缘缓存服务器的可用存储空间数值大于或等于待分发内容的占用空间数值,则第一中心节点将待分发内容确定为需为第一待分发边缘缓存服务器分发的内容。C. If the available storage space value of the first edge cache server to be distributed is greater than or equal to the occupied space value of the content to be distributed, then the first central node determines the content to be distributed as content that needs to be distributed by the first edge cache server to be distributed.

可以理解的是,若第一待分发边缘缓存服务器的可用存储空间数值大于或等于待分发内容的占用空间数值,则说明第一待分发边缘缓存服务器可以存储全部待分发内容,因此,第一中心节点将待分发内容确定为需为第一待分发边缘缓存服务器分发的内容。It can be understood that if the available storage space value of the first edge cache server to be distributed is greater than or equal to the occupied space value of the content to be distributed, it means that the first edge cache server to be distributed can store all the content to be distributed. Therefore, the first center The node determines that the content to be distributed is the content that needs to be distributed by the first edge cache server to be distributed.

第一中心节点确定出至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容后,执行S104,第一中心节点为每个待分发边缘缓存服务器分发待分发内容中需为该待分发边缘缓存服务器分发的内容。After the first central node determines at least one edge cache server to be distributed and the content to be distributed for each edge cache server to be distributed, S104 is executed, and the first central node distributes the content to be distributed to each edge cache server to be distributed. The content distributed by the edge cache server to be distributed.

本发明实施例提供一种内容分发方法,在内容分发消息中增加运营统计数据,运营统计数据是在第二CDN中对待分发内容的访问量的统计数据,该运营统计数据能够真实反映待分发内容在第二CDN中不同维度的访问量信息,使得第一中心节点参考该运营统计数据,确定出的第一CDN中的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容分发待分发内容也能真实准确的反映待分发内容在第一CDN的访问量信息,这样,不仅提高了每个待分发边缘缓存服务器的存储空间利用率,而且能够满足用户的访问需求,解决了现有技术中边缘缓存服务器访问过载的问题。An embodiment of the present invention provides a content distribution method, adding operation statistics data to the content distribution message, the operation statistics data is the statistics data of the visit volume of the content to be distributed in the second CDN, and the operation statistics data can truly reflect the content to be distributed The traffic information of different dimensions in the second CDN enables the first central node to refer to the operation statistics data to determine at least one edge cache server to be distributed in the first CDN and the information to be distributed to each edge cache server to be distributed Content distribution The content to be distributed can also truly and accurately reflect the traffic information of the content to be distributed in the first CDN. In this way, not only the storage space utilization rate of each edge cache server to be distributed is improved, but also the access needs of users can be met, and the solution The problem of the edge cache server access overload in the prior art is solved.

实施例二Embodiment two

图4为本发明实施例提供的一种内容分发方法的流程示意图,该内容分发方法可以应用在图1所示的应用场景中。FIG. 4 is a schematic flowchart of a content distribution method provided by an embodiment of the present invention. The content distribution method can be applied in the application scenario shown in FIG. 1 .

参见图4,该内容分发方法包括:Referring to Figure 4, the content distribution method includes:

S200、内容服务器响应于管理员的内容分发操作,查询本地的内容部署运营管理表中是否包含有待分发内容的内容标识。S200. In response to the content distribution operation of the administrator, the content server queries whether the local content deployment operation management table contains the content identifier of the content to be distributed.

具体的,内容服务器根据内容分发操作可以获取到待分发内容的内容标识、待分发内容在内容服务器中的存储位置信息、和/或目的分发位置信息、和/或预设的内容保护周期。Specifically, the content server can acquire the content identifier of the content to be distributed, the storage location information of the content to be distributed in the content server, and/or the target distribution location information, and/or the preset content protection period according to the content distribution operation.

其中,内容标识可以为内容身份标识(ID,Identity),也可以为内容名称,本发明实施例对此不作具体限定。Wherein, the content identifier may be a content identity (ID, Identity) or a content name, which is not specifically limited in this embodiment of the present invention.

示例性的,内容服务器根据内容分发操作获取到待分发内容的内容标识为0110jmvod02,目的分发位置信息为“北京”;预设的内容保护周期为24小时。Exemplarily, the content server obtains according to the content distribution operation that the content ID of the content to be distributed is 0110jmvod02, and the destination distribution location information is "Beijing"; the preset content protection period is 24 hours.

一般情况下,内容服务器自身维护有内容部署运营管理表,该内容部署运营管理表中包含有内容标识、CDN标识、上线时刻以及下线时刻等参数,其中,CDN标识用于指示分发有与内容标识对应的内容的CDN。In general, the content server itself maintains a content deployment operation management table, which contains parameters such as content ID, CDN ID, online time, and offline time, among which, the CDN ID is used to indicate that the distribution is related to the content Identifies the CDN of the corresponding content.

具体的,内容服务器根据内容分发操作获取到待分发内容的内容标识后,查询本地的内容部署运营管理表中是否包含有待分发内容的内容标识。Specifically, after the content server obtains the content identifier of the content to be distributed according to the content distribution operation, it queries whether the local content deployment operation management table contains the content identifier of the content to be distributed.

若内容部署运营管理表中包含有待分发内容的内容标识,且与待分发内容的内容标识对应的CDN标识为第二CDN标识,则内容服务器可以根据第二CDN获取到在第二CDN中对待分发内容的访问量的统计数据。If the content deployment operation management table contains the content ID of the content to be distributed, and the CDN ID corresponding to the content ID of the content to be distributed is the second CDN ID, the content server can obtain the content to be distributed in the second CDN according to the second CDN. Statistics on the number of visits to the content.

若内容部署运营管理表中不包含待分发内容的内容标识,则内容服务器根据现有的内容分发方法进行相应处理。If the content deployment operation management table does not contain the content identifier of the content to be distributed, the content server performs corresponding processing according to the existing content distribution method.

S201、若内容部署运营管理表中存在待分发内容的内容标识,则内容服务器获取与待分发内容的内容标识对应的第二CDN标识。S201. If the content identifier of the content to be distributed exists in the content deployment operation management table, the content server acquires a second CDN identifier corresponding to the content identifier of the content to be distributed.

S202、内容服务器向第二中心节点发送包含待分发内容的内容标识的运营统计请求消息。S202. The content server sends an operation statistics request message including the content identifier of the content to be distributed to the second central node.

其中,第二中心节点属于第二CDN。运营统计请求消息用于请求第二中心节点统计分析待分发内容在第二CDN中的访问量信息。Wherein, the second central node belongs to the second CDN. The operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN.

进一步地,运营统计请求消息还包括统计参数,该运营统计请求消息用于请求第二中心节点根据统计参数统计分析待分发内容在第二CDN中的访问量信息。Further, the operation statistics request message also includes statistical parameters, and the operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN according to the statistical parameters.

优选的,本发明实施例中的统计参数包含地域粒度信息、码率、时间戳信息、访问量统计周期中的至少一个。Preferably, the statistical parameters in the embodiment of the present invention include at least one of regional granularity information, code rate, time stamp information, and traffic statistics period.

示例性的,内容服务器发送的统计请求消息包括:内容ID为0110jmvod02、地域粒度信息为市、码率为3兆字节(MB,Megabytes)和1MB、时间戳为20分钟、统计周期为24小时。Exemplarily, the statistics request message sent by the content server includes: the content ID is 0110jmvod02, the region granularity information is city, the code rate is 3 megabytes (MB, Megabytes) and 1MB, the time stamp is 20 minutes, and the statistics period is 24 hours .

S203、第二中心节点向内容服务器发送包括运营统计数据的运营统计响应消息。S203. The second central node sends an operation statistics response message including operation statistics data to the content server.

由于待分发内容已经在第二CDN中分发,因此第二中心节点可以计算出待分发内容在第二CDN中各个维度的访问量信息,即第二中心节点可以计算出运营统计数据。第二中心节点向内容服务器发送包括运营统计数据的运营统计响应消息。Since the content to be distributed has been distributed in the second CDN, the second central node can calculate the traffic information of each dimension of the content to be distributed in the second CDN, that is, the second central node can calculate operational statistics. The second central node sends an operation statistics response message including operation statistics data to the content server.

其中,本发明实施例中的中心节点预先配置有统计默认参数,该中心节点可以为第一中心节点,也可以为第二中心节点。Wherein, the central node in the embodiment of the present invention is pre-configured with statistical default parameters, and the central node may be the first central node or the second central node.

具体的,若运营统计请求消息中未包含有统计参数,则第二中心节点根据统计默认参数统计分析待分发内容在第二CDN中的访问量信息。相应的,第二中心节点向内容服务器发送的运营统计响应消息中的运营统计数据是与统计默认参数相对应的。Specifically, if the statistical parameter is not included in the operation statistics request message, the second central node statistically analyzes the traffic information of the content to be distributed in the second CDN according to the statistical default parameter. Correspondingly, the operation statistics data in the operation statistics response message sent by the second central node to the content server corresponds to the statistics default parameters.

若运营统计请求消息中包含有统计参数,则运营统计响应消息中的运营统计数据是根据运营统计请求消息中的统计参数配置的。If the operation statistics request message contains statistics parameters, the operation statistics data in the operation statistics response message is configured according to the statistics parameters in the operation statistics request message.

优选的,运营统计数据包括待分发内容在每个参考位置信息的访问量信息、待分发内容在至少一个码率的访问量信息、待分发内容在每个码率的全部内容分片的访问量信息和待分发内容在各个统计周期的访问量信息中的至少一个。Preferably, the operation statistical data includes the visit volume information of the content to be distributed at each reference location information, the visit volume information of the content to be distributed at least one code rate, and the visit volume of all content fragments of the content to be distributed at each code rate At least one of the information and the traffic information of the content to be distributed in each statistical period.

示例性的,第二中心节点向内容服务器发送的运营统计响应消息包含以下内容:Exemplarily, the operation statistics response message sent by the second central node to the content server includes the following content:

内容服务器根据上述运营统计响应消息获知内容标识为0110jmvod02的内容在江苏苏州和天津的访问量信息、该内容在江苏苏州和天津的前五个统计周期的访问量信息、该内容中三个内容分片在江苏苏州和天津的访问量信息,以及不同码率的内容在江苏苏州和天津的访问量信息。According to the above operation statistics response message, the content server obtains the visit volume information of the content with the content identifier 0110jmvod02 in Jiangsu Suzhou and Tianjin, the visit volume information of the content in Jiangsu Suzhou and Tianjin in the first five statistical periods, and the three content classifications of the content. Information about the number of visits of movies in Suzhou and Tianjin, Jiangsu, and information about the number of visits of content with different bit rates in Suzhou and Tianjin, Jiangsu.

S204、内容服务器向第一中心节点发送包括待分发内容的内容标识、待分发内容在内容服务器的存储位置信息以及运营统计数据的内容分发消息。S204. The content server sends a content distribution message including a content identifier of the content to be distributed, storage location information of the content to be distributed on the content server, and operation statistics data to the first central node.

S205、第一中心节点根据内容标识和存储位置信息,下载待分发内容。S205. The first central node downloads the content to be distributed according to the content identifier and storage location information.

本发明实施例中S204-S205与实施例一中的S101-S102相同,此处不再进行详细赘述。S204-S205 in this embodiment of the present invention are the same as S101-S102 in Embodiment 1, and will not be described in detail here.

S206、第一中心节点根据运营统计数据和第一CDN中的全部边缘节点的状态信息,得到确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容。S206. The first central node obtains at least one determined edge cache server to be distributed and the content to be distributed to each edge cache server to be distributed according to the operation statistics data and the state information of all edge nodes in the first CDN.

具体的,第一中心节点根据运营统计数据,从第一CDN的全部边缘节点中确定待分发边缘节点,再从每个待分发边缘节点中确定至少一个待分发边缘缓存服务器,并为每个待分发边缘缓存服务器确定需为该待分发边缘缓存服务器分发的内容。Specifically, the first central node determines the edge nodes to be distributed from all the edge nodes of the first CDN according to the operation statistics data, and then determines at least one edge cache server to be distributed from each edge node to be distributed, and provides each The distribution edge cache server determines the content to be distributed by the edge cache server to be distributed.

第一中心节点确定至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容的具体过程,请参考后续说明。For the specific process of the first central node determining at least one edge cache server to be distributed and the content to be distributed to each edge cache server to be distributed, please refer to the subsequent description.

S207、第一中心节点触发每个待分发边缘缓存服务器下载需为自身分发的内容。S207. The first central node triggers each edge cache server to be distributed to download the content to be distributed to itself.

S208、各个待分发边缘缓存服务器将需为自身分发的内容下载结束后,向第一中心节点发送确认消息。S208. Each edge cache server to be distributed sends a confirmation message to the first central node after downloading the content to be distributed for itself.

各个待分发边缘缓存服务器将需为自身分发的内容下载结束后,向第一中心节点发送确认消息,以便于第一中心节点确定将待分发内容分发成功。Each edge cache server to be distributed sends a confirmation message to the first central node after downloading the content to be distributed for itself, so that the first central node can determine that the content to be distributed is successfully distributed.

S209、第一中心节点确定待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期。S209. The first central node determines the protection period of each edge cache server of the content to be distributed in the first CDN.

CDN中分发的内容存在内容保护期,该内容保护器是对内容进行强制保护使其不被淘汰的时间周期。The content distributed in the CDN has a content protection period, which is a time period for mandatory protection of the content so that it will not be eliminated.

具体的,若运营统计数据包括至少一个统计周期和待分发内容在各个统计周期的访问量信息,则第一中心节点根据待分发内容在各个统计周期的访问量信息,确定待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期。Specifically, if the operation statistical data includes at least one statistical period and the visit volume information of the content to be distributed in each statistical period, the first central node determines that the content to be distributed is in the first statistical period according to the visit volume information of the content to be distributed in each statistical period. The protection period of each edge cache server to be distributed in the CDN.

可选的,第一中心节点可以选取访问量首次下降的前一个统计周期作为内容保护期。Optionally, the first central node may select a statistical period before the first decrease in the number of visits as the content protection period.

示例性的,在上述示例中,内容标识为0110jmvod02的内容在“江苏苏州”的各个统计周期的访问量首次下降出现在第4天,则第一中心节点设置该内容在“江苏苏州”的内容保护期为(4-1)×24=72小时。内容标识为0110jmvod02的内容在“天津”的各个统计周期的访问量首次下降出现在第3天,则第一中心节点设置该内容在“天津”的内容保护期为(3-1)×24=48小时。Illustratively, in the above example, the first decline in the number of visits of the content with the content identifier 0110jmvod02 in each statistical cycle of "Jiangsu Suzhou" occurs on the fourth day, then the first central node sets the content as the content of "Jiangsu Suzhou" The protection period is (4-1)×24=72 hours. The content whose content ID is 0110jmvod02 in each statistical cycle of “Tianjin” has the first decline in the number of visits on the 3rd day, then the first central node sets the content protection period of the content in “Tianjin” as (3-1)×24= 48 hours.

进一步地,若内容分发消息中包括预设的内容保护期,则第一中心节点将自身确定的待分发内容在各个待分发边缘缓存服务器的内容保护期根据预设的内容保护期进行修正。Further, if the content distribution message includes a preset content protection period, the first central node modifies the content protection period of the content to be distributed determined by itself in each edge cache server to be distributed according to the preset content protection period.

可选的,第一中心节点可以选取时间较长的内容保护期作为最终的内容保护期。Optionally, the first central node may select a longer content protection period as the final content protection period.

示例性的,若预设的内容保护期为24小时,第一中心节点选取时间较长的内容保护期作为最终的内容保护期,则内容标识为0110jmvod02的内容在“江苏苏州”的内容保护期最终为72小时,在“天津”的内容保护期最终为48小时。Exemplarily, if the preset content protection period is 24 hours, and the first central node selects a longer content protection period as the final content protection period, then the content whose content identifier is 0110jmvod02 is within the content protection period of "Jiangsu Suzhou" Finally, it is 72 hours, and the content protection period in "Tianjin" is finally 48 hours.

若运营统计数据不包括至少一个统计周期和待分发内容在各个统计周期的访问量信息,则第一中心节点确定待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期为预设的内容保护期。If the operation statistical data does not include at least one statistical period and the traffic information of the content to be distributed in each statistical period, the first central node determines that the protection period of each edge cache server to be distributed in the first CDN of the content to be distributed is preset set content protection period.

示例性的,上述示例中,在“天津”地区,内容标识为0110jmvod02的内容的访问量在第三天骤然下降,通过这种方式可以避免内容在第三天仍然强制占据缓存。Exemplarily, in the above example, in the "Tianjin" region, the number of visits to the content whose content ID is 0110jmvod02 drops sharply on the third day. In this way, it can be avoided that the content still forcibly occupies the cache on the third day.

S210、第一中心节点向每个待分发边缘缓存服务器发送包含待分发内容在该待分发边缘缓存服务器的保护周期的设置请求。S210. The first central node sends to each edge cache server to be distributed a setting request including a protection period of the content to be distributed in the edge cache server to be distributed.

设置请求用于指示每个待分发边缘缓存服务器设置各自已分发内容的保护周期,其中,已分发内容属于待分发内容。The setting request is used to instruct each edge cache server to be distributed to set the protection period of its own distributed content, wherein the distributed content belongs to the content to be distributed.

可以看出,本发明实施例中第一中心节点是根据内容的实际访问量的变化来确定内容保护期的,这样,既可以防止访问量正在上升但过了保护期的内容被淘汰的情况,也可以防止访问量已经变得很低、但还在保护期的内容仍然占据缓存空间的情况。It can be seen that in the embodiment of the present invention, the first central node determines the content protection period according to the change of the actual visit volume of the content. In this way, the situation that the visit volume is increasing but the content that has passed the protection period can be prevented from being eliminated, It can also prevent the situation that the content that has become very low in visits but is still in the protection period still occupies the cache space.

本发明实施例提供一种内容分发方法,通过在内容分发消息中增加待分发内容在第二CDN中不同维度的访问量信息,即增加待分发内容在第二CDN中不同维度的运营统计数据,使得在第一CDN中分发待分发内容时,能够准确的计算出待分发边缘缓存服务器和每个待分发边缘缓存服务器存储的内容,从而避免边缘缓存服务器访问过载的问题,能够更好的满足用户的访问需求。The embodiment of the present invention provides a content distribution method, by adding the traffic information of the content to be distributed in different dimensions in the second CDN in the content distribution message, that is, adding the operation statistics data of the content to be distributed in different dimensions in the second CDN, When distributing the content to be distributed in the first CDN, the edge cache server to be distributed and the content stored in each edge cache server to be distributed can be accurately calculated, thereby avoiding the problem of overloading the edge cache server and better satisfying users access requirements.

本发明实施例中第一中心节点在执行S206时,若运营统计数据中包括至少一个参考位置信息以及待分发内容在每个参考位置信息的访问量信息,则第一中心节点根据运营统计数据和第一CDN中的全部边缘节点的状态信息,确定至少一个待分发边缘缓存服务器。In the embodiment of the present invention, when the first central node executes S206, if the operation statistical data includes at least one reference location information and the visit volume information of the content to be distributed at each reference location information, then the first central node according to the operation statistics data and State information of all edge nodes in the first CDN determines at least one edge cache server to be distributed.

具体的,如图5所示,第一中心节点确定至少一个待分发边缘缓存服务器的方法为:Specifically, as shown in Figure 5, the method for the first central node to determine at least one edge cache server to be distributed is:

S206a、第一中心节点根据预设规则和待分发内容在每个参考位置信息的访问量信息,从全部参考位置信息中确定出至少一个目的参考位置信息。S206a. The first central node determines at least one target reference location information from all the reference location information according to the preset rules and the visit volume information of each reference location information of the content to be distributed.

其中,预设规则可以为选取访问量大于访问量阈值的参考位置信息,也可以为根据访问量信息从大到小的顺序依次选取前面的若干个参考位置信息,本发明实施例对此不作具体限定。Among them, the preset rule can be to select the reference location information whose visit volume is greater than the visit volume threshold, or to select the previous reference location information according to the order of the visit volume information from large to small, and this embodiment of the present invention does not make specific limited.

示例性的,若访问量阈值为3000000,则上述示例中第一中心节点确定“江苏苏州”和“天津”为目的参考位置信息。Exemplarily, if the visit volume threshold is 3,000,000, in the above example, the first central node determines "Jiangsu Suzhou" and "Tianjin" as the destination reference location information.

S206b、对于至少一个目的参考位置信息中的第一目的参考位置信息,第一中心节点判断第一CDN的全部边缘节点中是否存在边缘节点的位置信息与第一目的参考位置信息相同。S206b. For the first destination reference location information in the at least one destination reference location information, the first central node judges whether there is any edge node in all edge nodes of the first CDN whose location information is the same as the first destination reference location information.

其中,第一目的参考位置信息为至少一个目的参考位置信息中的任意一个。Wherein, the first target reference position information is any one of at least one target reference position information.

由于目的参考位置信息是第一中心节点根据运营统计数据选取出的,而第一中心节点是要在第一CDN中将待分发内容进行分发,因此,第一中心节点需要判断第一CDN中是否存在与目的参考位置信息相同的边缘节点。Since the destination reference location information is selected by the first central node according to the operational statistical data, and the first central node intends to distribute the content to be distributed in the first CDN, the first central node needs to determine whether the There is an edge node having the same information as the destination reference position.

S206c、若存在,则第一中心节点将与第一目的参考位置信息相同的边缘节点的位置信息确定为第一待分发边缘节点的位置信息。S206c. If it exists, the first central node determines the location information of the edge node that is the same as the first destination reference location information as the location information of the first edge node to be distributed.

S206d、若不存在,则第一中心节点从全部边缘节点的位置信息中选取与第一目的参考位置信息之间的距离最小的边缘节点作为第一待分发边缘节点。S206d. If it does not exist, the first central node selects the edge node with the smallest distance to the first destination reference location information from the location information of all edge nodes as the first edge node to be distributed.

示例性的,第一CDN中的边缘节点的位置信息为:“天津”、“北京”和“江苏南京”,第一中心节点确定的目的参考位置信息为:“天津”和“江苏苏州”。第一CDN的边缘节点位置信息中有“天津”,因此,第一中心节点将“天津”确定为待分发边缘节点的位置信息。第一CDN的边缘节点位置信息中找不到“江苏苏州”,因此第一中心节点将与“江苏苏州”最近的“江苏南京”确定为待分发边缘节点位置信息。Exemplarily, the location information of the edge nodes in the first CDN is: "Tianjin", "Beijing" and "Jiangsu Nanjing", and the destination reference location information determined by the first central node is: "Tianjin" and "Jiangsu Suzhou". The edge node location information of the first CDN contains "Tianjin", therefore, the first central node determines "Tianjin" as the edge node location information to be distributed. "Jiangsu Suzhou" cannot be found in the edge node location information of the first CDN, so the first central node determines "Jiangsu Nanjing" closest to "Jiangsu Suzhou" as the edge node location information to be distributed.

S206e、若内容分发消息还包括目的分发位置信息,则第一中心节点判断目的分发边缘节点的位置信息是否被包含于上一步骤确定的待分发边缘节点的位置信息中。S206e. If the content distribution message also includes destination distribution location information, the first central node judges whether the location information of the destination distribution edge node is included in the location information of the edge node to be distributed determined in the previous step.

其中,目的分发边缘节点包含于目的分发位置信息中。Wherein, the destination distribution edge node is included in the destination distribution location information.

S206f、若目的分发边缘节点的位置信息未被包含于上一步骤确定的待分发边缘节点的位置信息中,则第一中心节点将目的分发边缘节点的位置信息确定为待分发边缘节点的位置信息。S206f, if the location information of the destination distribution edge node is not included in the location information of the edge node to be distributed determined in the previous step, the first central node determines the location information of the destination distribution edge node as the location information of the edge node to be distributed .

S206g、若目的分发边缘节点的位置信息被包含于上一步骤确定的待分发边缘节点的位置信息中,则上一步骤确定的待分发边缘节点的位置信息为最终确定的待分发边缘节点的位置信息。S206g. If the location information of the edge node to be distributed is included in the location information of the edge node to be distributed determined in the previous step, the location information of the edge node to be distributed determined in the previous step is the final location of the edge node to be distributed information.

可以理解的是,若内容分发消息中包括目的分发位置信息,则说明第一中心节点一定要在目的分发位置信息包含的所有目的分发边缘节点中分发待分发内容。若第一中心节点参考运营统计数据确定的待分发边缘节点中未包含目的分发边缘节点,则第一中心节点需要将目的分发边缘节点的位置信息也确定为待分发边缘节点的位置信息。It can be understood that if the content distribution message includes the destination distribution location information, it means that the first central node must distribute the content to be distributed to all destination distribution edge nodes included in the destination distribution location information. If the edge nodes to be distributed determined by the first central node with reference to the operation statistics data do not include the target distribution edge node, the first central node needs to also determine the location information of the target distribution edge node as the location information of the to-be-distributed edge node.

示例性的,内容分发消息中包含目的分发位置信息,该目的分发位置信息为“北京”,而第一中心节点在上述步骤中确定的待分发边缘节点的位置信息为“江苏南京”和“天津”,不包括“北京”,因此,第一中心节点将“北京”也确定为待分发边缘节点的位置信息。Exemplarily, the content distribution message contains destination distribution location information, the destination distribution location information is "Beijing", and the location information of edge nodes to be distributed determined by the first central node in the above steps are "Jiangsu Nanjing" and "Tianjin ", does not include "Beijing", therefore, the first central node also determines "Beijing" as the location information of the edge node to be distributed.

S206h、对于至少一个待分发边缘节点的位置信息中的第一待分发边缘节点的位置信息,第一中心节点确定需为第一待分发边缘节点分发待分发内容的数量N,N≥1。S206h. For the location information of the first edge node to be distributed among the location information of at least one edge node to be distributed, the first central node determines the number N of contents to be distributed to be distributed to the first edge node to be distributed, where N≥1.

其中,第一待分发边缘节点为至少一个待分发边缘节点中的任意一个,第一预设阈值可以为访问量阈值。Wherein, the first edge node to be distributed is any one of at least one edge node to be distributed, and the first preset threshold may be a traffic threshold.

每个待分发边缘节点可以存储至少一份待分发内容,第一中心节点在确定出待分发边缘节点后,确定需为每个待分发边缘节点分发待分发内容的数量N。Each edge node to be distributed can store at least one piece of content to be distributed. After determining the edge node to be distributed, the first central node determines the quantity N of content to be distributed for each edge node to be distributed.

可选的,第一中心节点根据待分发内容在第一待分发边缘节点的访问量信息和第一预设阈值,确定N。Optionally, the first central node determines N according to the access volume information of the content to be distributed on the first edge node to be distributed and the first preset threshold.

需要说明的是,若第一中心节点的位置信息为目的分发位置信息,且该第一中心节点不属于第二CDN,则第一中心节点采用现有的内容分发方法来确定需为第一中心节点分发待分发内容的数量。It should be noted that if the location information of the first central node is for the purpose of distributing location information, and the first central node does not belong to the second CDN, the first central node uses the existing content distribution method to determine that it needs to be the first central node The node distributes the amount of content to be distributed.

示例性的,若访问量阈值为3000000,则第一中心节点确定需为“天津”分发待分发内容的数量为3000000/3000000=1,需为“江苏南京”分发待分发内容的数量参考“江苏苏州”10000000/3000000=3。Exemplarily, if the access threshold is 3,000,000, the first central node determines that the number of content to be distributed for “Tianjin” is 3,000,000/3,000,000=1, and the number of content to be distributed for “Jiangsu Nanjing” refers to “Jiangsu Suzhou" 10000000/3000000 = 3.

其中,待分发内容的数量也称为副本数量。Wherein, the quantity of content to be distributed is also referred to as the number of copies.

S206i、第一中心节点根据预设条件,从第一待分发边缘节点包含的全部边缘缓存服务器中,选取X个边缘缓存服务器作为候选边缘缓存服务器。S206i. The first central node selects X edge cache servers as candidate edge cache servers from all edge cache servers included in the first edge node to be distributed according to preset conditions.

其中,预设条件为边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,且边缘缓存服务器的属性值小于第三预设阈值,X≥1。Wherein, the preset condition is that the storage space utilization rate of the edge cache server is less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than the third preset threshold, X≥1.

S206j、若N≥X,则第一中心节点将X个候选边缘缓存服务器确定为待分发边缘缓存服务器。S206j. If N≥X, the first central node determines X candidate edge cache servers as edge cache servers to be distributed.

S206k、若N<X,则第一中心节点从X个候选边缘缓存服务器中选取出N个候选边缘缓存服务器,并将N个候选边缘缓存服务器确定为待分发边缘缓存服务器,N个候选边缘缓存服务器为X个候选边缘缓存服务器按照可用存储空间从大到小依次排列后的前N个。S206k. If N<X, the first central node selects N candidate edge cache servers from the X candidate edge cache servers, and determines the N candidate edge cache servers as edge cache servers to be distributed, and the N candidate edge cache servers The server is the top N of the X candidate edge cache servers arranged in descending order according to the available storage space.

示例性的,若“江苏南京”和“天津”各剩下2个和5个候选边缘缓存服务器,“江苏南京”和“天津”的副本数量分别为3个和1个。“江苏南京”的候选边缘缓存服务器的数量2小于“江苏南京”的副本数量3,因此,第一中心节点直接将“江苏南京”的2个候选边缘缓存服务器作为待分发边缘缓存服务器。“天津”的候选边缘缓存服务器的数量5大于“天津”的副本数量1,因此,第一中心节点从“天津”的5个候选边缘缓存服务器中选择存储空间利用率最低的1个边缘缓存服务器作为待分发边缘缓存服务器。对于“北京”,由于第一中心节点无法获知待分发内容在“北京”访问量信息,因此,第一中心节点可以根据现有的内容分发方法选择存储利用率最低,服务状态最好的边缘缓存服务器作为待分发边缘缓存服务器。Exemplarily, if "Jiangsu Nanjing" and "Tianjin" respectively have 2 and 5 candidate edge cache servers left, the number of copies of "Jiangsu Nanjing" and "Tianjin" are 3 and 1 respectively. The number 2 of candidate edge cache servers of "Jiangsu Nanjing" is less than the number 3 of replicas of "Jiangsu Nanjing". Therefore, the first central node directly uses the two candidate edge cache servers of "Jiangsu Nanjing" as edge cache servers to be distributed. The number 5 of candidate edge cache servers in "Tianjin" is greater than the number 1 of replicas in "Tianjin". Therefore, the first central node selects 1 edge cache server with the lowest storage space utilization from the 5 candidate edge cache servers in "Tianjin". As the edge cache server to be distributed. For "Beijing", since the first central node cannot know the traffic information of the content to be distributed in "Beijing", the first central node can select the edge cache with the lowest storage utilization and the best service status according to the existing content distribution method The server serves as the edge cache server to be distributed.

进一步地,本发明实施例中第一中心节点在执行S206时,若运营统计数据中包括运营统计数据包括待分发内容在至少一个码率的访问量信息和待分发内容在每个码率的全部内容分片的访问量信息,则第一中心节点根据运营统计数据和第一CDN中每个边缘缓存服务器的可用存储空间数值,确定需为每个待分发边缘缓存服务器分发的内容。Further, in the embodiment of the present invention, when the first central node executes S206, if the operation statistics data includes the operation statistics data including the traffic information of the content to be distributed at least one code rate and the total number of visits of the content to be distributed at each code rate For the access volume information of the content fragments, the first central node determines the content to be distributed by each edge cache server to be distributed according to the operation statistics and the available storage space value of each edge cache server in the first CDN.

具体的,如图6所示,对于至少一个待分发边缘缓存服务器中的第一待分发边缘缓存服务器,第一待分发边缘缓存服务器为至少一个待分发边缘缓存服务器中的任意一个,第一中心节点确定需为第一待分发边缘缓存服务器分发的内容的方法为:Specifically, as shown in FIG. 6, for the first edge cache server to be distributed among the at least one edge cache server to be distributed, the first edge cache server to be distributed is any one of the at least one edge cache server to be distributed, and the first center The method for a node to determine the content to be distributed by the first edge cache server to be distributed is as follows:

S206w、第一中心节点确定第一待分发边缘缓存服务器的可用存储空间数值。S206w. The first central node determines the value of the available storage space of the first edge cache server to be distributed.

具体的,第一待分发边缘缓存服务器的可用存储空间=第一待分发边缘缓存服务器的总存储空间×空间利用率阈值-第一待分发边缘缓存服务器的当前已用存储空间。Specifically, available storage space of the first edge cache server to be distributed=total storage space of the first edge cache server to be distributed×space utilization threshold-current used storage space of the first edge cache server to be distributed.

S206x、第一中心节点判断第一待分发边缘缓存服务器的可用存储空间数值是否大于待分发内容的占用空间数值。S206x. The first central node judges whether the value of the available storage space of the first edge cache server to be distributed is greater than the value of the occupied space of the content to be distributed.

S206y、若第一待分发边缘缓存服务器的可用存储空间数值大于或等于待分发内容的占用空间数值,则第一中心节点将待分发内容确定为需为第一待分发边缘缓存服务器分发的内容。S206y. If the available storage space value of the first edge cache server to be distributed is greater than or equal to the occupied space value of the content to be distributed, the first central node determines the content to be distributed as content to be distributed by the first edge cache server to be distributed.

S206z、若第一待分发边缘缓存服务器的可用存储空间数值小于待分发内容的占用空间数值,则第一中心节点选取访问量信息最大的码率,并且在同一码率中,选取该码率中访问量信息最大的内容分片确定为需为第一待分发边缘缓存服务器分发的内容,直至第一待分发边缘缓存服务器的可用存储空间数值为零。S206z. If the value of the available storage space of the first edge cache server to be distributed is smaller than the value of the occupied space of the content to be distributed, the first central node selects the code rate with the largest number of visits information, and selects one of the code rates in the same code rate The content segment with the largest access information is determined as the content to be distributed by the first edge cache server to be distributed until the available storage space value of the first edge cache server to be distributed is zero.

示例性的,若上述示例中“江苏南京”的两个待分发边缘缓存服务器的可用存储空间分别为2GB和1GB(其中,1GB=1024MB),“天津”的待分发边缘缓存服务器的可用存储空间为10GB,待分发内容的占用空间为1.75GB,则第一中心节点直接将完整的待分发内容确定为需为“天津”的待分发边缘缓存服务器分发的内容,将完整的待分发内容确定为需为“江苏南京”中可用存储空间为2GB的待分发边缘缓存服务器分发的内容。Exemplarily, if the available storage space of the two edge cache servers to be distributed in "Nanjing, Jiangsu" in the above example is 2GB and 1GB respectively (wherein, 1GB=1024MB), the available storage space of the edge cache server to be distributed in "Tianjin" is 10GB, and the occupied space of the content to be distributed is 1.75GB, then the first central node directly determines the complete content to be distributed as the content to be distributed by the edge cache server to be distributed in "Tianjin", and determines the complete content to be distributed as The content that needs to be distributed to the edge cache server to be distributed with an available storage space of 2GB in "Jiangsu Nanjing".

对于“江苏南京”中可用存储空间为1GB的待分发边缘缓存服务器,由于内容标识为0110jmvod02的内容在码率为3MB的访问量明显高于1MB的访问量,因此第一中心节点优选选择码率为3MB的内容。在同一码率下,各个内容分片的访问量信息从高到低依次为结尾20分钟、开头20分钟和中间20分钟,因此,第一中心节点选取内容分片的顺序为码率为3MB时的结尾20分钟、开头20分钟、中间20分钟的内容分片,然后是码率为1MB的结尾20分钟、开头20分钟和中间20分钟的分片。按照这样的顺序,第一中心节点在选取码率为3MB的结尾20分钟、开头20分钟左右的内容分片后,可用存储空间为1GB的待分发边缘缓存服务器就不再剩余可用存储空间,因此,第一中心节点确定需为“江苏南京”中可用存储空间为1G的待分发边缘缓存服务器分发的内容为码率是3MB的结尾20分钟和开头20分钟的内容分片。For the edge cache server to be distributed with an available storage space of 1GB in "Jiangsu Nanjing", since the access volume of the content with the content identifier 0110jmvod02 at a code rate of 3MB is significantly higher than that of 1MB, the first central node preferably selects a code rate 3MB of content. Under the same code rate, the traffic information of each content fragment from high to low is the end 20 minutes, the beginning 20 minutes, and the middle 20 minutes. Therefore, the order in which the first central node selects content fragments is when the code rate is 3MB 20 minutes at the end, 20 minutes at the beginning, and 20 minutes in the middle, and then 20 minutes at the end, 20 minutes at the beginning, and 20 minutes in the middle with a code rate of 1MB. According to this sequence, after the first central node selects content fragments with a code rate of 3MB for the last 20 minutes and the first 20 minutes, the edge cache server to be distributed with an available storage space of 1GB will no longer have available storage space, so , the first central node determines that the content to be distributed to the edge cache server with an available storage space of 1G in "Jiangsu Nanjing" is the content fragments of the end 20 minutes and the first 20 minutes with a code rate of 3MB.

对于“北京”的待分发边缘缓存服务器,第一中心节点按照现有的内容分发方法进行相应处理。For the edge cache server in "Beijing" to be distributed, the first central node performs corresponding processing according to the existing content distribution method.

综上所述,本发明实施例提供的内容分发方法,第一中心节点根据待分发内容在第二CDN中真实的访问量信息确定在第一CDN中的哪些边缘缓存服务器中分发,以及确定需要为每个待分发边缘缓存服务器中分发的内容,能够避免边缘缓存服务器访问过载的问题,更好的满足用户的访问需求。To sum up, in the content distribution method provided by the embodiment of the present invention, the first central node determines which edge cache servers in the first CDN to distribute the content to be distributed in the second CDN according to the real traffic information in the second CDN, and determines the need for For the content distributed in each edge cache server to be distributed, the problem of overloading access to the edge cache server can be avoided, and the access requirements of users can be better met.

实施例三Embodiment three

本发明实施例提供一种中心节点1,所述中心节点1为第一中心节点,所述中心节点1用于执行以上方法中的第一中心节点所执行的步骤。所述中心节点1可以包括相应步骤所对应的模块。如图7所示,该中心节点1包括:An embodiment of the present invention provides a central node 1, the central node 1 is a first central node, and the central node 1 is configured to perform the steps performed by the first central node in the above method. The central node 1 may include modules corresponding to corresponding steps. As shown in Figure 7, the central node 1 includes:

获取单元20,用于获取在第一内容分发网络CDN中的待分发内容和在第二CDN中的运营统计数据,所述运营统计数据为在所述第二CDN中对所述待分发内容的访问量的统计数据,所述中心节点属于所述第一CDN。The obtaining unit 20 is configured to obtain the content to be distributed in the first content distribution network CDN and operation statistics data in the second CDN, the operation statistics data being the content to be distributed in the second CDN Statistical data of visits, the central node belongs to the first CDN.

确定单元21,用于根据所述获取单元20获取到的所述运营统计数据和所述第一CDN中的全部边缘节点的状态信息,得到待分发内容的分发结果,所述分发结果包括确定的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容.The determining unit 21 is configured to obtain a distribution result of the content to be distributed according to the operation statistical data obtained by the obtaining unit 20 and the state information of all edge nodes in the first CDN, the distribution result including the determined At least one edge cache server to be distributed and the content to be distributed for each edge cache server to be distributed.

分发单元22,用于根据所述确定单元21确定的所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容。The distribution unit 22 is configured to, according to the distribution result determined by the determination unit 21 , distribute to each edge cache server to be distributed the content that needs to be distributed to the edge cache server to be distributed among the content to be distributed.

进一步地,如图8所示,所述中心节点1还包括接收单元23,Further, as shown in FIG. 8, the central node 1 further includes a receiving unit 23,

所述接收单元23,用于接收内容服务器发送的内容分发消息,所述内容分发消息包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述运营统计数据。The receiving unit 23 is configured to receive a content distribution message sent by a content server, where the content distribution message includes a content identifier of the content to be distributed, storage location information of the content to be distributed in the content server, and the operation Statistical data.

进一步地,如图8所示,所述中心节点1还包括下载单元24,Further, as shown in FIG. 8, the central node 1 further includes a download unit 24,

所述下载单元24,用于根据所述接收单元23接收到的所述内容标识和所述存储位置信息,下载所述待分发内容。The downloading unit 24 is configured to download the content to be distributed according to the content identifier and the storage location information received by the receiving unit 23 .

可选的,所述运营统计数据包括至少一个参考位置信息以及所述待分发内容在每个参考位置信息的访问量信息,所述状态信息包括所述第一CDN中的每个边缘节点的位置信息。Optionally, the operational statistical data includes at least one reference location information and access volume information of the content to be distributed at each reference location information, and the status information includes the location of each edge node in the first CDN information.

进一步地,所述确定单元21,具体用于:Further, the determining unit 21 is specifically configured to:

根据预设规则和所述待分发内容在每个参考位置信息的访问量信息,从所述全部参考位置信息中确定出至少一个目的参考位置信息;Determining at least one target reference location information from all the reference location information according to preset rules and the visit volume information of each reference location information of the content to be distributed;

从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息,所述待分发边缘节点包含至少一个边缘缓存服务器;Selecting the location information of an edge node to be distributed for each purpose reference location information from the location information of all the edge nodes, the edge node to be distributed includes at least one edge cache server;

根据每个待分发边缘节点的位置信息,为每个待分发边缘节点确定至少一个待分发边缘缓存服务器。According to the location information of each edge node to be distributed, at least one edge cache server to be distributed is determined for each edge node to be distributed.

进一步地,对于所述至少一个目的参考位置信息中的第一目的参考位置信息,所述确定单元21,具体用于:Further, for the first target reference position information in the at least one target reference position information, the determining unit 21 is specifically configured to:

若所述全部边缘节点中存在边缘节点的位置信息与所述第一目的参考位置信息相同,则将该边缘节点的位置信息确定为第一待分发的边缘节点的位置信息;If the position information of the edge node among all the edge nodes is the same as the first destination reference position information, then determine the position information of the edge node as the position information of the first edge node to be distributed;

若所述全部边缘节点的位置信息与所述第一目的参考位置信息均不相同,则从所述全部边缘节点的位置信息中选取第一待分发的边缘节点的位置信息,其中,所述第一待分发的边缘节点的位置信息与所述第一目的参考位置信息之间的距离最小。If the location information of all the edge nodes is different from the first destination reference location information, select the location information of the first edge node to be distributed from the location information of all the edge nodes, wherein the first The distance between the location information of an edge node to be distributed and the first destination reference location information is the smallest.

进一步地,所述内容分发消息还包括目的分发位置信息。Further, the content distribution message also includes target distribution location information.

相应的,所述确定单元21,还用于在从所述全部边缘节点的位置信息中为每个目的参考位置信息选取一个待分发边缘节点的位置信息之后,且在为每个待分发边缘节点的位置信息确定至少一个待分发边缘缓存服务器之前,若目的分发边缘节点的位置信息未被包含于至少一个待分发边缘节点的位置信息中,则将所述目的分发边缘节点的位置信息确定为待分发边缘节点的位置信息,所述目的分发边缘节点包含于所述母的分发位置信息中。Correspondingly, the determining unit 21 is further configured to, after selecting a location information of an edge node to be distributed for each target reference location information from the location information of all edge nodes, and for each edge node to be distributed Before the location information of at least one edge cache server to be distributed is determined, if the location information of the destination distribution edge node is not included in the location information of at least one to-be-distributed edge node, then the location information of the destination distribution edge node is determined as the location information of the destination distribution edge node The location information of the distribution edge node, the destination distribution edge node is included in the parent distribution location information.

进一步地,所述状态信息还包括所述第一CDN中的每个边缘缓存服务器的存储空间利用率、每个边缘缓存服务器的属性值和每个边缘缓存服务器的存储空间数值。Further, the status information also includes the storage space utilization rate of each edge cache server in the first CDN, the attribute value of each edge cache server, and the storage space value of each edge cache server.

相应的,对于所述至少一个待分发边缘节点的位置信息中的第一待分发边缘节点的位置信息而言,所述确定单元21,具体用于:Correspondingly, for the location information of the first edge node to be distributed in the location information of the at least one edge node to be distributed, the determining unit 21 is specifically configured to:

根据所述待分发内容在所述第一待分发边缘节点的访问量信息和第一预设阈值,确定需为所述第一待分发边缘节点分发所述待分发内容的数量N,N≥1;According to the traffic information of the content to be distributed on the first edge node to be distributed and a first preset threshold, determine the number N of the content to be distributed that needs to be distributed to the first edge node to be distributed, N≥1 ;

根据预设条件,从所述第一待分发边缘节点包含的全部边缘缓存服务器中,选取X个边缘缓存服务器作为候选边缘缓存服务器,其中,所述预设条件为边缘缓存服务器的存储空间利用率小于或等于第二预设阈值,且所述边缘缓存服务器的属性值小于第三预设阈值,X≥1;Select X edge cache servers as candidate edge cache servers from all edge cache servers included in the first edge node to be distributed according to preset conditions, wherein the preset condition is the storage space utilization rate of the edge cache servers less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than the third preset threshold, X≥1;

若N≥X,则将X个候选边缘缓存服务器确定为待分发边缘缓存服务器;If N≥X, determine X candidate edge cache servers as edge cache servers to be distributed;

若N<X,则从所述X个候选边缘缓存服务器中选取出N个候选边缘缓存服务器,并将所述N个候选边缘缓存服务器确定为待分发边缘缓存服务器,所述N个候选边缘缓存服务器为所述X个候选边缘缓存服务器按照可用存储空间从大到小依次排列后的前N个。If N<X, select N candidate edge cache servers from the X candidate edge cache servers, and determine the N candidate edge cache servers as edge cache servers to be distributed, and the N candidate edge cache servers The servers are the first N of the X candidate edge cache servers arranged in descending order of available storage space.

可选的,所述运营统计数据包括所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息。Optionally, the operation statistical data includes information about the number of views of the content to be distributed at least one bit rate and information about the number of views of all content segments of the content to be distributed at each bit rate.

相应的,对于至少一个待分发边缘缓存服务器中的第一待分发边缘缓存服务器,所述确定单元21,具体用于:Correspondingly, for the first edge cache server to be distributed among at least one edge cache server to be distributed, the determining unit 21 is specifically configured to:

确定所述第一待分发边缘缓存服务器的可用存储空间数值;Determine the value of the available storage space of the first edge cache server to be distributed;

若所述第一待分发边缘缓存服务器的可用存储空间数值小于所述待分发内容的占用空间数值,则根据所述待分发内容在至少一个码率的访问量信息和所述待分发内容在每个码率的全部内容分片的访问量信息,确定至少一个内容分片为需为所述第一待分发边缘缓存服务器分发的内容,所述至少一个内容分片的占用空间数值等于所述第一待分发边缘缓存服务器的可用存储空间数值;If the value of the available storage space of the first edge cache server to be distributed is smaller than the value of the occupied space of the content to be distributed, according to the access volume information of the content to be distributed at least one code rate and the content to be distributed every The traffic information of all content fragments of a code rate, determine that at least one content fragment is the content that needs to be distributed by the first edge cache server to be distributed, and the occupied space value of the at least one content fragment is equal to the value of the first edge cache server to be distributed. - The value of the available storage space of the edge cache server to be distributed;

若所述第一待分发边缘缓存服务器的可用存储空间数值大于或等于所述待分发内容的占用空间数值,则将所述待分发内容确定为需为所述第一待分发边缘缓存服务器分发的内容。If the value of the available storage space of the first edge cache server to be distributed is greater than or equal to the value of the occupied space of the content to be distributed, the content to be distributed is determined to be distributed by the first edge cache server to be distributed content.

进一步地,所述确定单元21,具体用于:Further, the determining unit 21 is specifically configured to:

选取访问量信息最大的码率;Select the code rate with the largest number of visits;

根据所述访问量最大的码率和所述待分发内容在该码率的全部内容分片的访问量信息,将该码率中访问量信息最大的内容分片确定为需为所述第一待分发边缘缓存服务器分发的内容,直至所述第一待分发边缘缓存服务器的可用存储空间数值为零。According to the code rate with the largest number of visits and the number of visits information of all content fragments of the content to be distributed at this code rate, determine the content fragment with the largest number of visits information in the code rate as the first The content distributed by the edge cache server to be distributed until the value of the available storage space of the first edge cache server to be distributed is zero.

进一步地,所述接收单元23,还用于在所述确定单元21根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,接收每个待分发边缘缓存服务器发送的确认消息。Further, the receiving unit 23 is also configured to distribute the content to be distributed to each edge cache server to be distributed in the determination unit 21 according to the distribution result. Afterwards, a confirmation message sent by each edge cache server to be distributed is received.

可选的,所述运营统计数据包括至少一个统计周期和所述待分发内容在各个统计周期的访问量信息。Optionally, the operational statistical data includes at least one statistical period and information on the number of visits of the content to be distributed in each statistical period.

相应的,所述确定单元21,还用于在所述分发单元根据所述分发结果,为每个待分发边缘缓存服务器分发所述待分发内容中需为该待分发边缘缓存服务器分发的内容之后,根据所述待分发内容在各个统计周期的访问量信息,确定所述待分发内容在第一CDN中的每个待分发边缘缓存服务器的保护周期。Correspondingly, the determining unit 21 is further configured to, after the distributing unit distributes, for each edge cache server to be distributed, the content that needs to be distributed to the edge cache server to be distributed in the content to be distributed according to the distribution result , determining a protection period of each edge cache server of the content to be distributed in the first CDN according to the traffic information of the content to be distributed in each statistical period.

进一步地,如图8所示,所述中心节点1还包括发送单元25,Further, as shown in FIG. 8, the central node 1 further includes a sending unit 25,

所述发送单元25,用于向每个待分发边缘缓存服务器发送设置请求,所述设置消息包含所述确定单元21确定的所述待分发内容在该待分发边缘缓存服务器的保护周期,所述设置消息用于指示每个待分发边缘缓存服务器设置各自已分发内容的保护周期,所述已分发内容属于所述待分发内容。The sending unit 25 is configured to send a setting request to each edge cache server to be distributed, the setting message includes the protection period of the content to be distributed determined by the determination unit 21 in the edge cache server to be distributed, the The setting message is used to instruct each edge cache server to be distributed to set the protection period of its own distributed content, and the distributed content belongs to the content to be distributed.

可以理解的是,本实施例的中心节点1仅为根据该中心节点1实现的功能进行的逻辑划分,实际应用中,可以进行上述单元的叠加或拆分。并且该实施例提供的中心节点1所实现的功能与上述实施例提供的内容分发方法一一对应,对于该中心节点1所实现的更为详细的处理流程,在上述方法实施例中已做详细描述,此处不再详细描述。It can be understood that the central node 1 in this embodiment is only a logical division based on the functions realized by the central node 1 , and in practical applications, the above units can be superimposed or split. In addition, the functions implemented by the central node 1 provided in this embodiment correspond one-to-one to the content distribution method provided in the above-mentioned embodiment. The more detailed processing flow implemented by the central node 1 has been described in detail in the above-mentioned method embodiment. description and will not be described in detail here.

本发明另一实施例提供一种中心节点,如图9所示,该中心节点包括接口电路20、处理器21、存储器22和系统总线23。Another embodiment of the present invention provides a central node. As shown in FIG. 9 , the central node includes an interface circuit 20 , a processor 21 , a memory 22 and a system bus 23 .

其中,所述接口电路20、所述处理器21与所述存储器22之间通过所述系统总线23连接,并完成相互间通信。Wherein, the interface circuit 20 , the processor 21 and the memory 22 are connected through the system bus 23 and communicate with each other.

本领域技术人员可以理解,图9所示的中心节点的结构并不是对中心节点的限定,其可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the central node shown in FIG. 9 is not limited to the central node, which may include more or less components than shown in the figure, or combine some components, or arrange different components.

具体的,当所述中心节点运行时,所述中心节点执行上述方法实施例所描述的内容分发方法。具体的内容分发方法可参见上述如图3-图6所示的实施例中的相关描述,此处不再赘述。Specifically, when the central node is running, the central node executes the content distribution method described in the above method embodiment. For the specific content distribution method, reference may be made to the related descriptions in the embodiments shown in FIGS. 3-6 above, which will not be repeated here.

具体的,接口电路20用于实现该中心节点分别与内容服务器和边缘缓存服务器之间的通信连接。Specifically, the interface circuit 20 is used to realize the communication connection between the central node and the content server and the edge cache server respectively.

具体的,所述存储器22可用于存储软件程序以及应用模块,处理器21通过运行存储在存储器22的软件程序以及应用模块,从而执行中心节点的各种功能应用以及数据处理。存储器22可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如分发待分发内容)等;存储数据区可存储待分发内容等。Specifically, the memory 22 can be used to store software programs and application modules, and the processor 21 executes various functional applications and data processing of the central node by running the software programs and application modules stored in the memory 22 . The memory 22 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required by a function (such as distributing content to be distributed), etc.; the data storage area may store content to be distributed, etc.

其中,所述存储器22可以包括易失性存储器,例如高速随机存取存储器(RAM,Random Access Memory),所述存储器22也可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Wherein, the memory 22 may include a volatile memory, such as a high-speed random access memory (RAM, Random Access Memory), and the memory 22 may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory devices.

具体的,所述处理器21是中心节点的控制中心,利用各种接口和线路连接整个中心节点的各个部分,通过运行或执行存储在存储器22内的软件程序和/或应用模块,以及调用存储在存储器22内的数据,执行中心节点的各种功能和处理数据,从而对中心节点进行整体监控。Specifically, the processor 21 is the control center of the central node, uses various interfaces and lines to connect various parts of the entire central node, runs or executes software programs and/or application modules stored in the memory 22, and calls the stored The data in the memory 22 executes various functions of the central node and processes data, so as to monitor the central node as a whole.

其中,处理器21可以为中央处理器(CPU,Central Processing Unit)。所述处理器101还可以为其他通用处理器、数字信号处理器(DSP,Digital Signal Processing)或者其他可编程逻辑器件或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 21 may be a central processing unit (CPU, Central Processing Unit). The processor 101 may also be other general-purpose processors, digital signal processors (DSP, Digital Signal Processing) or other programmable logic devices or transistor logic devices, discrete hardware components, and the like. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

所述系统总线23可以包括数据总线、电源总线、控制总线和信号状态总线等。本实施例中为了清楚说明,在图9中将各种总线都示意为系统总线23。The system bus 23 may include a data bus, a power bus, a control bus, a signal status bus, and the like. In this embodiment, for the sake of clarity, various buses are shown as the system bus 23 in FIG. 9 .

本发明实施例中的中心节点参考运营统计数据,确定出的第一CDN中的至少一个待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容分发待分发内容也能真实准确的反映待分发内容在第一CDN的访问量信息,这样,不仅提高了每个待分发边缘缓存服务器的存储空间利用率,而且能够满足用户的访问需求,解决了现有技术中边缘缓存服务器访问过载的问题。The central node in the embodiment of the present invention refers to the operational statistical data, and determines that at least one edge cache server to be distributed in the first CDN and the content to be distributed by each edge cache server to be distributed can also be true and accurate. Reflect the access information of the content to be distributed in the first CDN, so that not only the storage space utilization rate of each edge cache server to be distributed is improved, but also the access requirements of users can be met, and the access overload of the edge cache server in the prior art is solved The problem.

实施例四Embodiment Four

本发明实施例提供一种内容服务器1,所述内容服务器1用于执行以上方法中的内容服务器所执行的步骤。所述内容服务器1可以包括相应步骤所对应的模块。如图10所示,该内容服务器1包括:An embodiment of the present invention provides a content server 1, and the content server 1 is configured to perform the steps performed by the content server in the above method. The content server 1 may include modules corresponding to corresponding steps. As shown in Figure 10, the content server 1 includes:

获取单元30,用于获取运营统计数据,所述运营统计数据为在第二内容分发网络CDN中对待分发内容的访问量的统计数据。The acquiring unit 30 is configured to acquire operational statistical data, where the operational statistical data is statistical data of visits to the content to be distributed in the second content delivery network CDN.

发送单元31,用于向第一中心节点发送内容分发消息,所述内容分发消息包括所述待分发内容的内容标识、所述待分发内容在所述内容服务器的存储位置信息以及所述获取单元30获取到的所述运营统计数据,所述内容分发消息用于指示所述第一中心节点将所述待分发内容在第一CDN中分发,所述第一中心节点属于第一CDN。A sending unit 31, configured to send a content distribution message to the first central node, where the content distribution message includes a content identifier of the content to be distributed, storage location information of the content to be distributed in the content server, and the acquiring unit 30 the acquired operation statistics data, the content distribution message is used to instruct the first central node to distribute the content to be distributed in the first CDN, and the first central node belongs to the first CDN.

进一步地,所述发送单元31,具体用于若在本地的内容部署运营管理表中获取到第二CDN的标识,则向第二中心节点发送运营统计请求消息,所述第二中心节点属于所述第二CDN,本地的内容部署运营管理表包括所述第二CDN的标识与所述待分发内容的内容标识的映射关系,所述运营统计请求消息包含所述待分发内容的内容标识,所述运营统计请求消息用于请求所述第二中心节点统计分析所述待分发内容在第二CDN中的访问量信息。Further, the sending unit 31 is specifically configured to send an operation statistics request message to a second central node if the identifier of the second CDN is obtained in the local content deployment operation management table, and the second central node belongs to the The second CDN, the local content deployment operation management table includes the mapping relationship between the identifier of the second CDN and the content identifier of the content to be distributed, and the operation statistics request message includes the content identifier of the content to be distributed, so The operation statistics request message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN.

进一步地,如图11所示,内容服务器1还包括接收单元32,Further, as shown in FIG. 11 , the content server 1 further includes a receiving unit 32,

所述接收单元32,用于接收所述第二中心节点发送的运营统计响应消息,所述运营统计响应消息包括所述运营统计数据。The receiving unit 32 is configured to receive an operation statistics response message sent by the second central node, where the operation statistics response message includes the operation statistics data.

进一步地,所述运营统计请求消息还包括统计参数,所述运营统计消息用于请求所述第二中心节点根据所述统计参数统计分析所述待分发内容在第二CDN中的访问量信息。Further, the operation statistics request message further includes statistical parameters, and the operation statistics message is used to request the second central node to statistically analyze the traffic information of the content to be distributed in the second CDN according to the statistical parameters.

优选的,所述统计参数包含地域粒度信息、码率、时间戳信息、访问量统计周期中的至少一个。Preferably, the statistical parameters include at least one of regional granularity information, code rate, time stamp information, and traffic statistics period.

可以理解的是,本实施例的内容服务器1仅为根据该内容服务器1实现的功能进行的逻辑划分,实际应用中,可以进行上述单元的叠加或拆分。并且该实施例提供的内容服务器1所实现的功能与上述方法实施例提供的内容分发方法一一对应,对于该内容服务器1所实现的更为详细的处理流程,在上述方法实施例中已做详细描述,此处不再详细描述。It can be understood that the content server 1 in this embodiment is only logically divided according to the functions realized by the content server 1 , and in practical applications, the above units can be superimposed or split. Moreover, the functions implemented by the content server 1 provided in this embodiment correspond one-to-one to the content distribution method provided by the above-mentioned method embodiment. For the more detailed processing flow implemented by the content server 1, it has been done in the above-mentioned method embodiment. Detailed description will not be described in detail here.

本发明另一实施例提供一种内容服务器,如图12所示,该内容服务器包括接口电路40、处理器41、存储器42和系统总线43。Another embodiment of the present invention provides a content server. As shown in FIG. 12 , the content server includes an interface circuit 40 , a processor 41 , a memory 42 and a system bus 43 .

其中,所述接口电路40、所述处理器41与所述存储器42之间通过所述系统总线43连接,并完成相互间通信。Wherein, the interface circuit 40 , the processor 41 and the memory 42 are connected through the system bus 43 and communicate with each other.

本领域技术人员可以理解,图12所示的内容服务器的结构并不是对内容服务器的限定,其可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the content server shown in FIG. 12 is not limited to the content server, which may include more or less components than shown in the figure, or combine some components, or arrange different components.

具体的,当所述内容服务器运行时,所述内容服务器执行如图3-图6所述的实施例的内容分发方法。具体的内容分发方法可参见上述如图3-图6所示的实施例中的相关描述,此处不再赘述。Specifically, when the content server is running, the content server executes the content distribution method of the embodiment as shown in FIGS. 3-6 . For the specific content distribution method, reference may be made to the related descriptions in the embodiments shown in FIGS. 3-6 above, which will not be repeated here.

具体的,接口电路40用于实现该内容服务器与中心节点之间的通信连接。Specifically, the interface circuit 40 is used to realize the communication connection between the content server and the central node.

具体的,所述存储器42可用于存储软件程序以及应用模块,处理器41通过运行存储在存储器42的软件程序以及应用模块,从而执行内容服务器的各种功能应用以及数据处理。存储器42可主要包括存储程序区该存储程序区可存储操作系统、至少一个功能所需的应用程序(比如发送内容分发消息功能)等。Specifically, the memory 42 can be used to store software programs and application modules, and the processor 41 executes various functional applications and data processing of the content server by running the software programs and application modules stored in the memory 42 . The memory 42 may mainly include a program storage area. The program storage area may store an operating system, an application program required by at least one function (such as a content distribution message function) and the like.

其中,所述存储器42可以包括易失性存储器,例如高速随机存取存储器(RAM,Random Access Memory),所述存储器42也可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Wherein, the memory 42 may include a volatile memory, such as a high-speed random access memory (RAM, Random Access Memory), and the memory 42 may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state memory devices.

具体的,所述处理器41是内容服务器的控制中心,利用各种接口和线路连接整个内容服务器的各个部分,通过运行或执行存储在存储器42内的软件程序和/或应用模块,以及调用存储在存储器42内的数据,执行内容服务器的各种功能和处理数据,从而对内容服务器进行整体监控。Specifically, the processor 41 is the control center of the content server, uses various interfaces and lines to connect various parts of the entire content server, runs or executes software programs and/or application modules stored in the memory 42, and calls storage The data in the memory 42 executes various functions of the content server and processes data, thereby performing overall monitoring of the content server.

其中,处理器41可以为中央处理器(CPU,Central Processing Unit)。所述处理器41还可以为其他通用处理器、数字信号处理器(DSP,Digital Signal Processing)或者其他可编程逻辑器件或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 41 may be a central processing unit (CPU, Central Processing Unit). The processor 41 may also be other general-purpose processors, digital signal processors (DSP, Digital Signal Processing) or other programmable logic devices or transistor logic devices, discrete hardware components, and the like. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

所述系统总线43可以包括数据总线、电源总线、控制总线和信号状态总线等。本实施例中为了清楚说明,在图12中将各种总线都示意为系统总线43。The system bus 43 may include a data bus, a power bus, a control bus, a signal status bus, and the like. In this embodiment, for the sake of clarity, various buses are shown as the system bus 43 in FIG. 12 .

本发明实施例中的内容服务器在向第一中心节点发送内容分发消息时,除了将待分发内容的内容标识和待分发内容在所述内容服务器的存储位置信息发送给第一中心节点以外,还将在第二内容分发网络CDN中对待分发内容的访问量的统计数据发送给第一中心节点,使得第一中心节点在第一CDN中分发待分发内容时能够参考待分发内容的访问量信息,准确的确定出在第一CDN中待分发边缘缓存服务器和需为每个待分发边缘缓存服务器分发的内容,从而提高了每个待分发边缘缓存服务器的存储空间利用率,而且能够满足用户的访问需求,解决了现有技术中边缘缓存服务器访问过载的问题。When the content server in the embodiment of the present invention sends the content distribution message to the first central node, in addition to sending the content identification of the content to be distributed and the storage location information of the content to be distributed in the content server to the first central node, Sending the statistical data of the visit volume of the content to be distributed in the second content distribution network CDN to the first central node, so that the first central node can refer to the visit volume information of the content to be distributed when distributing the content to be distributed in the first CDN, Accurately determine the edge cache server to be distributed in the first CDN and the content to be distributed for each edge cache server to be distributed, thereby improving the storage space utilization rate of each edge cache server to be distributed, and can meet the user's access requirements It solves the problem of overloading access to the edge cache server in the prior art.

实施例五Embodiment five

本发明实施例提供一种内容分发系统,该内容分发系统包括如实施例三所述的中心节点、如实施例四所述的内容服务器以及所述中心节点管理的至少一个边缘节点,每个边缘节点由至少一个边缘缓存服务器组成,其中,内容服务器与中心节点之间通过网络连接,中心节点与每个边缘缓存服务器之间通过网络连接。An embodiment of the present invention provides a content distribution system. The content distribution system includes the central node as described in Embodiment 3, the content server as described in Embodiment 4, and at least one edge node managed by the central node. Each edge A node is composed of at least one edge cache server, wherein the content server is connected to the central node through a network, and the central node is connected to each edge cache server through a network.

对于中心节点所实现的更为详细的处理流程,在上述实施例三中已做详细描述,此处不再详细描述。The more detailed processing flow implemented by the central node has been described in detail in the third embodiment above, and will not be described in detail here.

对于内容服务器所实现的更为详细的处理流程,在上述实施例四中已做详细描述,此处不再详细描述。The more detailed processing flow implemented by the content server has been described in detail in the fourth embodiment above, and will not be described in detail here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、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 It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

尽管已描述了本申请的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本申请范围的所有变更和修改。While alternative embodiments of the present application have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be interpreted to cover alternative embodiments and all changes and modifications that fall within the scope of the application.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (29)

1. a kind of content distribution method characterized by comprising
First central node obtains the content to be distributed in first content distribution network CDN and the operation system in the 2nd CDN It counts, the operation statistical data is in the 2nd CDN to the statistical data of the amount of access of the content to be distributed, institute It states the first central node and belongs to the first CDN;
First central node is believed according to the state of whole fringe nodes in the operation statistical data and the first CDN Breath, obtains the Distribution Results of content to be distributed, and the Distribution Results include at least one determining edge cache service to be distributed Device and the content that need to distribute for each edge cache server to be distributed;Wherein, each fringe node packet in the first CDN Contain one or more edge cache servers;
First central node is described to be distributed for each edge cache server distribution to be distributed according to the Distribution Results The content distributed for the edge cache server to be distributed is needed in content.
2. content distribution method according to claim 1, which is characterized in that first central node is obtained first Content to be distributed in CDN and the operation statistical data in the 2nd CDN, comprising:
The content distribution message that the first central node reception content server is sent, the content distribution message include described The content identification of content to be distributed, the content to be distributed the content server storage location information and the operation Statistical data;
First central node downloads the content to be distributed according to the content identification and the storage location information.
3. content distribution method according to claim 1, which is characterized in that the operation statistical data includes at least one In the amount of access information of each reference position information, the status information includes for reference position information and the content to be distributed The location information of each fringe node in first CDN;
Correspondingly, first central node is according to whole fringe nodes in the operation statistical data and the first CDN Status information, obtain the Distribution Results of content to be distributed, specifically include:
First central node is believed according to preset rules and the content to be distributed in the amount of access of each reference position information Breath, from described all referring to determining at least one purpose reference position information in location information;
First central node is that each purpose reference position information is chosen from the location information of whole fringe nodes The location information of one fringe node to be distributed, the fringe node to be distributed include at least one edge cache server;
First central node is determined according to the location information of each fringe node to be distributed for each fringe node to be distributed At least one edge cache server to be distributed.
4. content distribution method according to claim 2, which is characterized in that the operation statistical data includes at least one In the amount of access information of each reference position information, the status information includes for reference position information and the content to be distributed The location information of each fringe node in first CDN;
Correspondingly, first central node is according to whole fringe nodes in the operation statistical data and the first CDN Status information, obtain the Distribution Results of content to be distributed, specifically include:
First central node is believed according to preset rules and the content to be distributed in the amount of access of each reference position information Breath, from described all referring to determining at least one purpose reference position information in location information;
First central node is that each purpose reference position information is chosen from the location information of whole fringe nodes The location information of one fringe node to be distributed, the fringe node to be distributed include at least one edge cache server;
First central node is determined according to the location information of each fringe node to be distributed for each fringe node to be distributed At least one edge cache server to be distributed.
5. content distribution method according to claim 3, which is characterized in that at least one described purpose reference position The reference position information of the first mesh in information, first central node are from the location information of whole fringe nodes The reference position information of first mesh chooses the location information of the first fringe node to be distributed, specifically includes:
If it is identical as the reference position information of first mesh that there are the location informations of fringe node in the whole fringe node, Then the location information of the fringe node is determined as the location information of the first fringe node to be distributed by first central node;
If the reference position information of the location information and first mesh of the whole fringe node is all different, described first Central node chooses the location information of the first fringe node to be distributed from the location information of whole fringe nodes, wherein The location information and the distance between the reference position information of first mesh of first fringe node to be distributed are minimum.
6. content distribution method according to claim 5, which is characterized in that the content distribution message further includes purpose point Send out location information;
Correspondingly, first central node is each purpose reference bit confidence from the location information of whole fringe nodes After breath chooses the location information of a fringe node to be distributed, and first central node is each fringe node to be distributed Location information determine at least one edge cache server to be distributed before, the content distribution method further include:
If the location information of purpose distribution fringe node is not contained in the location information of at least one fringe node to be distributed, Then the location information of purpose distribution fringe node is determined as the position of fringe node to be distributed by first central node Information, the purpose distribution fringe node are contained in the purpose distribution location information.
7. content distribution method according to claim 6, which is characterized in that the status information further includes described first The storage space utilization of each edge cache server in CDN, the attribute value of each edge cache server and each side The memory space numerical value of edge cache server;
Correspondingly, for the position of the first fringe node to be distributed in the location information of at least one fringe node to be distributed For confidence breath, first central node is the first edge to be distributed according to the location information of the first fringe node to be distributed Node determines at least one edge cache server to be distributed, specifically includes:
First central node according to the content to be distributed the described first fringe node to be distributed amount of access information and First preset threshold, determination need to distribute the quantity N of the content to be distributed, N >=1 for the described first fringe node to be distributed;
According to preset condition, the whole edge caches for including from the described first fringe node to be distributed take first central node It is engaged in device, chooses X edge cache server as candidate edge cache server, wherein the preset condition is slow for edge The storage space utilization for depositing server is less than or equal to the second preset threshold, and the attribute value of the edge cache server is small In third predetermined threshold value, X >=1;
If N >=X, X candidate edge cache server is determined as edge cache service to be distributed by first central node Device;
If N < X, it is slow that first central node selects N number of candidate edge from the X candidate edge cache server Server is deposited, and N number of candidate edge cache server is determined as edge cache server to be distributed, N number of candidate Edge cache server is after the X candidate edge cache server is arranged successively from big to small according to free memory Top n.
8. content distribution method according to any one of claims 1-7, which is characterized in that the operation statistical data Including the content to be distributed at least one code rate amount of access information and the content to be distributed each code rate whole The amount of access information of content fragment;
For the first edge cache server to be distributed at least one edge cache server to be distributed, first center Node determination need to be the method for the content of the described first edge cache server distribution to be distributed, comprising:
First central node determines the free memory numerical value of the described first edge cache server to be distributed;
If the free memory numerical value of the first edge cache server to be distributed is less than the occupancy of the content to be distributed Space values, then first central node is according to the content to be distributed in the amount of access information of at least one code rate and described For content to be distributed in the amount of access information of the full content fragment of each code rate, it need to be described for determining that at least one content fragment is The content of first edge cache server distribution to be distributed, the occupied space numerical value of at least one content fragment is equal to described The free memory numerical value of first edge cache server to be distributed;
If the free memory numerical value of the first edge cache server to be distributed is greater than or equal to the content to be distributed Occupied space numerical value, then the content to be distributed is determined as being the described first edge to be distributed by first central node The content of cache server distribution.
9. content distribution method according to claim 8, which is characterized in that first central node is according to described wait divide Send out content at least one code rate amount of access information and the content to be distributed the full content fragment of each code rate visit The amount of asking information determines that at least one content fragment is the content that need to be the described first edge cache server distribution to be distributed, tool Body includes:
First central node chooses the maximum code rate of amount of access information;
First central node is according to the maximum code rate of the amount of access and the content to be distributed in the whole of the code rate The amount of access information for holding fragment, the maximum content fragment of amount of access information in the code rate is determined as need to be to be distributed for described first The content of edge cache server distribution, until the free memory numerical value of the described first edge cache server to be distributed is Zero.
10. content distribution method according to claim 8, which is characterized in that the operation statistical data includes at least one The amount of access information of a measurement period and the content to be distributed in each measurement period;
Correspondingly, first central node distributes institute according to the Distribution Results, for each edge cache server to be distributed After stating the content for needing to distribute in content to be distributed for the edge cache server to be distributed, the content distribution method is also wrapped It includes:
First central node, in the amount of access information of each measurement period, determines described wait divide according to the content to be distributed Content is sent out in the protection period of each of the first CDN edge cache server to be distributed;
First central node sends setting request to each edge cache server to be distributed, and the setting message includes institute Content to be distributed is stated in the protection period of the edge cache server to be distributed, the setting message is used to indicate each to be distributed Each protection period for distributing content self of edge cache server setting, the content of having distributed belong to the content to be distributed.
11. content distribution method according to claim 9, which is characterized in that the operation statistical data includes at least one The amount of access information of a measurement period and the content to be distributed in each measurement period;
Correspondingly, first central node distributes institute according to the Distribution Results, for each edge cache server to be distributed After stating the content for needing to distribute in content to be distributed for the edge cache server to be distributed, the content distribution method is also wrapped It includes:
First central node, in the amount of access information of each measurement period, determines described wait divide according to the content to be distributed Content is sent out in the protection period of each of the first CDN edge cache server to be distributed;
First central node sends setting request to each edge cache server to be distributed, and the setting message includes institute Content to be distributed is stated in the protection period of the edge cache server to be distributed, the setting message is used to indicate each to be distributed Each protection period for distributing content self of edge cache server setting, the content of having distributed belong to the content to be distributed.
12. a kind of content distribution method characterized by comprising
Content server obtains operation statistical data, and the operation statistical data is to treat in the second content distributing network CDN Distribute the statistical data of the amount of access of content;
The content server sends content distribution message to the first central node, and the content distribution message includes described wait divide Send out the content identification of content, the content to be distributed is counted in the storage location information of the content server and the operation Data, the content distribution message are used to indicate first central node and distribute the content to be distributed in the first CDN, First central node belongs to the first CDN.
13. content distribution method according to claim 12, which is characterized in that the content server obtains operation statistics Data specifically include:
If the content server gets the mark of the 2nd CDN in local content disposition operation management table, described interior Holding server and sends operation statistics request message to the second central node, second central node belongs to the 2nd CDN, this The content disposition operation management table on ground includes that the mark of the 2nd CDN is closed with the mapping of the content identification of the content to be distributed System, the operation statistics request message include the content identification of the content to be distributed, and the operation statistics request message is used for Second central node is requested to statistically analyze amount of access information of the content to be distributed in the 2nd CDN;
The content server receives the operation statistics response message that second central node is sent, the operation statistics response Message includes the operation statistical data.
14. content distribution method according to claim 13, which is characterized in that the operation counts request message and further includes Statistical parameter, the operation statistical message is for requesting second central node according to statistical parameter statistical analysis Amount of access information of the content to be distributed in the 2nd CDN, the statistical parameter include region granular information, code rate, timestamp letter At least one of breath, amount of access measurement period.
15. a kind of central node, which is characterized in that the central node is the first central node, comprising:
Acquiring unit, for obtaining the content to be distributed in first content distribution network CDN and the operation system in the 2nd CDN It counts, the operation statistical data is in the 2nd CDN to the statistical data of the amount of access of the content to be distributed, institute It states central node and belongs to the first CDN;
Determination unit, for complete in the operation statistical data according to the information acquired by the acquisition unit and the first CDN The status information of portion's fringe node, obtains the Distribution Results of content to be distributed, and the Distribution Results include at least one determining Edge cache server to be distributed and the content that need to distribute for each edge cache server to be distributed;Wherein, the first CDN In each fringe node include one or more edge cache servers;
Dispatching Unit, the Distribution Results for being determined according to the determination unit are each edge cache service to be distributed Device distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed.
16. central node according to claim 15, which is characterized in that the central node further includes receiving unit,
The receiving unit, for the content distribution message that reception content server is sent, the content distribution message includes institute State the content identification of content to be distributed, the content to be distributed the content server storage location information and the fortune Seek statistical data;
The central node further includes download unit,
The download unit, the content identification and the storage location information for being received according to the receiving unit, Download the content to be distributed.
17. central node according to claim 15, which is characterized in that the operation statistical data includes at least one ginseng Location information and the content to be distributed are examined in the amount of access information of each reference position information, the status information includes institute State the location information of each fringe node in the first CDN;
The determination unit, is specifically used for:
According to preset rules and the content to be distributed each reference position information amount of access information, from it is described all referring to At least one purpose reference position information is determined in location information;
It is that each purpose reference position information chooses an edge section to be distributed from the location information of whole fringe nodes The location information of point, the fringe node to be distributed include at least one edge cache server;
According to the location information of each fringe node to be distributed, at least one side to be distributed is determined for each fringe node to be distributed Edge cache server.
18. central node according to claim 16, which is characterized in that the operation statistical data includes at least one ginseng Location information and the content to be distributed are examined in the amount of access information of each reference position information, the status information includes institute State the location information of each fringe node in the first CDN;
The determination unit, is specifically used for:
According to preset rules and the content to be distributed each reference position information amount of access information, from it is described all referring to At least one purpose reference position information is determined in location information;
It is that each purpose reference position information chooses an edge section to be distributed from the location information of whole fringe nodes The location information of point, the fringe node to be distributed include at least one edge cache server;
According to the location information of each fringe node to be distributed, at least one side to be distributed is determined for each fringe node to be distributed Edge cache server.
19. central node according to claim 17, which is characterized in that at least one described purpose reference bit confidence The reference position information of the first mesh in breath, the determination unit are specifically used for:
If it is identical as the reference position information of first mesh that there are the location informations of fringe node in the whole fringe node, The location information of the fringe node is then determined as to the location information of the first fringe node to be distributed;
If the reference position information of location information and first mesh of the whole fringe node is all different, from it is described entirely The location information of the first fringe node to be distributed is chosen in the location information of portion's fringe node, wherein described first is to be distributed Fringe node location information and the distance between the reference position information of first mesh it is minimum.
20. central node according to claim 19, which is characterized in that the content distribution message further includes purpose distribution Location information;
The determination unit is also used in the location information from whole fringe nodes be each purpose reference position information After the location information for choosing a fringe node to be distributed, and determined extremely for the location information of each fringe node to be distributed Before a few edge cache server to be distributed, if the location information of purpose distribution fringe node is not contained at least one In the location information of fringe node to be distributed, then the location information of purpose distribution fringe node is determined as edge to be distributed The location information of node, the purpose distribution fringe node are contained in the purpose distribution location information.
21. central node according to claim 20, which is characterized in that the status information further includes the first CDN In the storage space utilization of each edge cache server, the attribute value of each edge cache server and each edge it is slow Deposit the memory space numerical value of server;
For the location information of the first fringe node to be distributed in the location information of at least one fringe node to be distributed For, the determination unit is specifically used for:
According to the content to be distributed in the amount of access information and the first preset threshold of the described first fringe node to be distributed, determine The quantity N of the content to be distributed, N >=1 need to be distributed for the described first fringe node to be distributed;
According to preset condition, from whole edge cache servers that the described first fringe node to be distributed includes, X side is chosen Edge cache server is as candidate edge cache server, wherein the preset condition is that the storage of edge cache server is empty Between utilization rate be less than or equal to the second preset threshold, and the attribute value of the edge cache server be less than third predetermined threshold value, X ≥1;
If N >=X, X candidate edge cache server is determined as edge cache server to be distributed;
If N < X, N number of candidate edge cache server is selected from the X candidate edge cache server, and will be described N number of candidate edge cache server is determined as edge cache server to be distributed, and N number of candidate edge cache server is institute State the top n after X candidate edge cache server is arranged successively from big to small according to free memory.
22. central node described in any one of 5-21 according to claim 1, which is characterized in that the operation statistical data Including the content to be distributed at least one code rate amount of access information and the content to be distributed each code rate whole The amount of access information of content fragment;
It is described determining single for the first edge cache server to be distributed at least one edge cache server to be distributed Member is specifically used for:
Determine the free memory numerical value of the described first edge cache server to be distributed;
If the free memory numerical value of the first edge cache server to be distributed is less than the occupancy of the content to be distributed Space values, then according to the content to be distributed in the amount of access information of at least one code rate and the content to be distributed each The amount of access information of the full content fragment of code rate, determining that at least one content fragment is need to be that the described first edge to be distributed is slow The content of server distribution is deposited, the occupied space numerical value of at least one content fragment is slow equal to the described first edge to be distributed Deposit the free memory numerical value of server;
If the free memory numerical value of the first edge cache server to be distributed is greater than or equal to the content to be distributed Occupied space numerical value, then the content to be distributed is determined as need to be the described first edge cache server to be distributed distribution Content.
23. central node according to claim 22, which is characterized in that the determination unit is specifically used for:
Choose the maximum code rate of amount of access information;
Believed according to the maximum code rate of the amount of access and the content to be distributed in the amount of access of the full content fragment of the code rate The maximum content fragment of amount of access information in the code rate is determined as being the described first edge cache server to be distributed point by breath The content of hair, until the free memory numerical value of the described first edge cache server to be distributed is zero.
24. central node according to claim 22, which is characterized in that the operation statistical data includes at least one system Period and the content to be distributed are counted in the amount of access information of each measurement period;
The determination unit is also used in the Dispatching Unit according to the Distribution Results, for each edge cache clothes to be distributed After business device distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, according to described wait divide Content is sent out in the amount of access information of each measurement period, determines the content to be distributed on the side to be distributed each of the first CDN The protection period of edge cache server;
The central node further includes transmission unit,
The transmission unit, for sending setting request to each edge cache server to be distributed, the setting message includes In the protection period of the edge cache server to be distributed, the setting disappears the content to be distributed that the determination unit determines Breath is used to indicate each each protection period for distributing content self of edge cache server setting to be distributed, described to have distributed content Belong to the content to be distributed.
25. central node according to claim 23, which is characterized in that the operation statistical data includes at least one system Period and the content to be distributed are counted in the amount of access information of each measurement period;
The determination unit is also used in the Dispatching Unit according to the Distribution Results, for each edge cache clothes to be distributed After business device distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, according to described wait divide Content is sent out in the amount of access information of each measurement period, determines the content to be distributed on the side to be distributed each of the first CDN The protection period of edge cache server;
The central node further includes transmission unit,
The transmission unit, for sending setting request to each edge cache server to be distributed, the setting message includes In the protection period of the edge cache server to be distributed, the setting disappears the content to be distributed that the determination unit determines Breath is used to indicate each each protection period for distributing content self of edge cache server setting to be distributed, described to have distributed content Belong to the content to be distributed.
26. a kind of content server characterized by comprising
Acquiring unit, for obtaining operation statistical data, the operation statistical data is right in the second content distributing network CDN The statistical data of the amount of access of content to be distributed;
Transmission unit, for sending content distribution message to the first central node, the content distribution message includes described wait divide Send out the content identification of content, the content to be distributed the content server storage location information and the acquiring unit The operation statistical data got, the content distribution message is used to indicate first central node will be described to be distributed Content is distributed in the first CDN, and first central node belongs to the first CDN.
27. content server according to claim 26, which is characterized in that
The transmission unit, if specifically for the mark for getting the 2nd CDN in local content disposition operation management table, Operation statistics request message is sent to the second central node, second central node belongs to the 2nd CDN, local content Deployment operation management table includes the mark and the mapping relations of the content identification of the content to be distributed of the 2nd CDN, described Operation statistics request message includes the content identification of the content to be distributed, and the operation statistics request message is described for requesting Second central node statisticallys analyze amount of access information of the content to be distributed in the 2nd CDN;
The content server further includes receiving unit,
The receiving unit counts response message, the operation statistics for receiving the operation that second central node is sent Response message includes the operation statistical data.
28. content server according to claim 27, which is characterized in that
The operation statistics request message further includes statistical parameter, and the operation statistical message is for requesting second centromere Point statisticallys analyze amount of access information of the content to be distributed in the 2nd CDN, the statistical parameter according to the statistical parameter Include at least one of region granular information, code rate, timestamp information, amount of access measurement period.
29. a kind of content distribution system, which is characterized in that in as described in any one of the claims 15-25 Heart node, the content server as described in any one of the claims 26-28 and the central node management are extremely A few fringe node, each fringe node are made of at least one edge cache server, the content server with it is described By network connection between central node, pass through network connection between the central node and each edge cache server.
CN201511029102.7A 2015-12-31 2015-12-31 A content distribution method, device and system Active CN106936877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511029102.7A CN106936877B (en) 2015-12-31 2015-12-31 A content distribution method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511029102.7A CN106936877B (en) 2015-12-31 2015-12-31 A content distribution method, device and system

Publications (2)

Publication Number Publication Date
CN106936877A CN106936877A (en) 2017-07-07
CN106936877B true CN106936877B (en) 2019-10-25

Family

ID=59441070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511029102.7A Active CN106936877B (en) 2015-12-31 2015-12-31 A content distribution method, device and system

Country Status (1)

Country Link
CN (1) CN106936877B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804585B (en) * 2018-05-25 2021-11-02 网宿科技股份有限公司 Data processing method and device in a CDN system
CN111064760B (en) * 2018-10-17 2023-02-17 中国联合网络通信集团有限公司 Method and device for accessing service in content distribution network
CN109347967B (en) * 2018-11-02 2021-08-03 网宿科技股份有限公司 A method and device for acquiring audio and video data
CN110086857B (en) * 2019-04-15 2022-01-14 哈尔滨工程大学 Information center network cache deployment method based on cache node state and position
JP7336911B2 (en) * 2019-08-08 2023-09-01 三菱電機株式会社 Processing identification device, processing identification method, and processing identification program
CN113315646B (en) * 2020-02-27 2024-11-26 阿里巴巴集团控股有限公司 Abnormal processing method and device for content distribution network and content distribution network
CN113297451B (en) * 2020-04-10 2025-08-19 阿里巴巴集团控股有限公司 Data processing method, device, electronic equipment and storage medium
CN111597259B (en) * 2020-05-12 2023-04-28 北京爱奇艺科技有限公司 Data storage system, method, device, electronic equipment and storage medium
CN115174696B (en) * 2022-09-08 2023-01-20 北京达佳互联信息技术有限公司 Node scheduling method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007089B2 (en) * 2001-06-06 2006-02-28 Akarnai Technologies, Inc. Content delivery network map generation using passive measurement data
US20110078230A1 (en) * 2009-09-25 2011-03-31 Emilio Sepulveda Method and system for providing a cdn with granular quality of service
CN102387176B (en) * 2010-08-31 2017-10-10 中兴通讯股份有限公司 The method of content distribution and the framework of CDN interconnection are realized between interconnection CDN
CN103581245B (en) * 2012-07-30 2018-06-19 腾讯科技(深圳)有限公司 A kind of method and system of content distributing network content distribution
CN103747047A (en) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 CDN file storage method, file distribution control center and system thereof
CN104270371A (en) * 2014-10-13 2015-01-07 无锡云捷科技有限公司 CDN cache server selecting method based on fuzzy logic

Also Published As

Publication number Publication date
CN106936877A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106936877B (en) A content distribution method, device and system
CN109327550B (en) Access request distribution method and device, storage medium and computer equipment
JP6984097B2 (en) Content delivery network architecture with edge proxies
CN108521856A (en) Scheduling method and device in content distribution network
CN111464661B (en) Load balancing method and device, proxy equipment, cache equipment and service node
CN104348798B (en) A kind of method, apparatus, dispatch server and system for distributing network
CN108566370B (en) Method and device for returning data to source
CN104363313A (en) Method and system for guaranteeing resource utilization rate of website using content distribution network
CN116389431A (en) Distributed multi-data center video packaging system
CN102761572B (en) The method and system of dynamic adjusting data flow
CN106230971B (en) Big document distribution method based on CDN
CN113676514B (en) File source returning method and device
CN110198332B (en) Scheduling method and device for content distribution network node and storage medium
Silvestre et al. Aren: a popularity aware replication scheme for cloud storage
CN104468853A (en) Domain name resolution method, server and system
CN102868542B (en) The control method and system of service quality in a kind of service delivery network
CN115706741A (en) Method and device for returning slice file
CN114185942A (en) Data processing method and related device
CN105100224A (en) Data transmission method and device
CN110460879A (en) A kind of video request dispatching method, device, server and storage medium
Li et al. Challenges, designs, and performances of large-scale open-P2SP content distribution
CN105827454A (en) Method and system for constructing topologic CDN (content delivery network) model
CN110099292B (en) Data center node determination method and device and electronic equipment
CN108282668A (en) A kind of acquisition methods and system of video
US8583819B2 (en) System and method for controlling server usage in peer-to-peer (P2P) based streaming service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211223

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Nanjing, Jiangsu.

Patentee before: HUAWEI SOFTWARE TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20211223

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 450000 Henan Province, Zhengzhou City, Free Trade Zone Zhengzhou Area (Zhengdong), Inner Ring North Road of Longhu, No. 99

Patentee after: Super Fusion Digital Technology Co.,Ltd.

Country or region after: China

Address before: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee before: xFusion Digital Technologies Co., Ltd.

Country or region before: China