[go: up one dir, main page]

CN106936877B - A kind of content distribution method, apparatus and system - Google Patents

A kind of content distribution method, apparatus 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.)
Huawei Technologies Co Ltd
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

The problem of the invention discloses a kind of content distribution methods, apparatus and system, are related to field of communication technology, are able to solve the overload of edge cache server access in the prior art.The content distribution method includes: that the first central node obtains the content to be distributed in first content distribution network CDN and the operation statistical data in the 2nd CDN, runing statistical data is in the 2nd CDN to the statistical data of the amount of access of content to be distributed, and the first central node belongs to the first CDN;First central node is according to the status information for runing whole fringe nodes in statistical data and the first CDN, the Distribution Results of content to be distributed are obtained, Distribution Results include at least one determining edge cache server to be distributed and need to be the content of each edge cache server distribution to be distributed;First central node is that each edge cache server to be distributed distributes the content for needing to distribute in content to be distributed for the edge cache server to be distributed according to Distribution Results.

Description

A kind of content distribution method, apparatus and system
Technical field
This application involves field of communication technology more particularly to a kind of content distribution methods, apparatus and system.
Background technique
Content distributing network (CDN, Content Delivery Network) passes through the intercommunication between existing network It is superimposed one layer of new network architecture in agreement (IP, Internet Protocol) transmission network, content is published to closest to use The network " edge " at family, allows user to obtain required content nearby, to solve the situation of current network congestion, improves user Access the response speed of network.
CDN is made of multiple CDN nodes, and each CDN node is generally by one or at least two cache server cluster groups At.Multiple CDN nodes are divided into two class of central node and fringe node.Central node has management content, Scheduling content, in caching Hold and distribute for fringe node the function of content.Currently, content distribution method is each edge section of the center node into network A content to be distributed of point distribution, so that there is an edge cache server in each fringe node, to be stored with portion to be distributed The purpose distribution location information that content or central node are got according to the central node, distributes location information to purpose Corresponding a content to be distributed of fringe node distribution, so that being deposited in fringe node corresponding with purpose distribution location information A content to be distributed is stored in an edge cache server.
The above method can be by an edge cache of the content distribution to be distributed into the fringe node closest to user Server allows user to obtain content to be distributed nearby, but each edge cache for getting content to be distributed is taken It is engaged in for device, the content to be distributed of edge cache server storage is possible to be unable to satisfy the requirements for access of user, and then leads Cause edge cache server access overload.
Summary of the invention
The embodiment of the present invention provides a kind of content distribution method, apparatus and system, and it is slow to be able to solve edge in the prior art The problem of depositing server access overload.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
The embodiment of the present invention provides a kind of content distribution method, distributes firstly, the first central node is obtained in first content Content to be distributed in network C DN and the operation statistical data in the 2nd CDN, the operation statistical data are described second To the statistical data of the amount of access of the content to be distributed in CDN, first central node belongs to the first CDN;Then, First central node according to the operation statistical data got and with whole sides in the first CDN that gets in advance The status information of edge node obtains at least one determining edge cache server to be distributed and need to delay for each edge to be distributed Deposit the content of server distribution;Finally, first central node be each edge cache server to be distributed distribution it is described to The content distributed for the edge cache server to be distributed is needed in distribution content.
Runing statistical data is in the 2nd CDN to the statistical data of the amount of access of content to be distributed, the operation statistical number According to the amount of access information that can really reflect content to be distributed different dimensions in the 2nd CDN, first in the embodiment of the present invention in Heart node refers to the operation statistical data, at least one of the first CDN determined edge cache server to be distributed and need Content distribution content to be distributed for each edge cache server distribution to be distributed also can really and accurately reflect in be distributed The amount of access information of mono- CDN of Rong, in this way, the memory space for not only increasing each edge cache server to be distributed utilizes Rate, and can satisfy the requirements for access of user, solve the problems, such as the overload of edge cache server access in the prior art.
Specifically, first central node obtains the content to be distributed in the first CDN and the operation in the 2nd CDN Statistical data, comprising: the content mark including the content to be distributed that the first central node reception content server is sent Know, the content to be distributed is in the storage location information of the content server and the content distribution of the operation statistical data Message;First central node downloads the content to be distributed according to the content identification and the storage location information.
Optionally, the operation statistical data includes at least one reference position information and the content to be distributed every The amount of access information of a reference position information, the status information include the position of each fringe node in the first CDN Information.
Correspondingly, first central node is according to whole edges in the operation statistical data and the first CDN The status information of node obtains the Distribution Results of content to be distributed, specifically includes: first central node is according to preset rules With the content to be distributed each reference position information amount of access information, from described all referring to being determined in location information At least one purpose reference position information;First central node is each from the location information of whole fringe nodes Purpose reference position information chooses the location information of a fringe node to be distributed, and the fringe node to be distributed includes at least one A edge cache server;First central node is each wait divide according to the location information of each fringe node to be distributed Hair fringe node determines at least one edge cache server to be distributed.
When runing statistical data includes content to be distributed amount of access information of region dimension in the 2nd CDN, in first Heart node can determine edge cache server to be distributed according to the operation statistical data.
Specifically, for the reference position information of the first mesh at least one described purpose reference position information, it is described First central node is that the reference position information of first mesh chooses first from the location information of whole fringe nodes The location information of fringe node to be distributed, specifically includes: if there are the location informations of fringe node in the whole fringe node Identical as the reference position information of first mesh, then the location information of the fringe node is determined as by first central node The location information of first fringe node to be distributed;If the reference of the location information and first mesh of the whole fringe node Location information is all different, then first central node chooses first wait divide from the location information of whole fringe nodes The location information of the fringe node of hair, wherein the location information of the described first fringe node to be distributed and first purpose The distance between reference position information minimum.
Further, the content distribution message further includes purpose distribution location information.
Correspondingly, first central node is each purpose reference bit from the location information of whole fringe nodes After confidence breath chooses the location information of a fringe node to be distributed, and first central node is each edge to be distributed Before the location information of node determines at least one edge cache server to be distributed, 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 described The location information of purpose distribution fringe node is determined as the location information of fringe node to be distributed, institute by the first central node Purpose distribution fringe node is stated to be contained in the distribution location information of the mother.
It is understood that if comprising purposeful distribution location information in content distribution message, illustration purpose distributes position Confidence ceases included all purposes distribution fringe node and is required to distribute content to be distributed.It is determined according to operation statistical data Fringe node to be distributed exist include purpose distribute fringe node the case where, in this case it is necessary to which purpose is distributed Fringe node is set as fringe node to be distributed.
Further, the status information further includes that the storage of each edge cache server in the first CDN is empty Between utilization rate, the attribute value of each edge cache server and each edge cache server memory space numerical value.
Correspondingly, for the first fringe node to be distributed in the location information of at least one fringe node to be distributed Location information for, first central node is first to be distributed according to the location information of the first fringe node to be distributed Fringe node determines at least one edge cache server to be distributed, specifically includes: first central node according to it is described to Distribute content the described first fringe node to be distributed amount of access information and the first preset threshold, determination need to for described first to Distribution fringe node distributes the quantity N of the content to be distributed, N >=1;First central node is according to preset condition, from institute It states in whole edge cache servers that the first fringe node to be distributed includes, chooses X edge cache server as candidate Edge cache server, wherein the preset condition is that the storage space utilization of edge cache server is less than or equal to the Two preset thresholds, and the attribute value of the edge cache server is less than third predetermined threshold value, X >=1;If N >=X, described X candidate edge cache server is determined as edge cache server to be distributed by one central node;If N < X, described first Central node selects N number of candidate edge cache server 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 the X A candidate edge cache server be arranged successively from big to small according to free memory after top n.
First central node is after determining fringe node to be distributed, the edge that includes according to each fringe node to be distributed The storage space utilization of cache server determines edge cache server to be distributed.
Optionally, the operation statistical data include the content to be distributed at least one code rate amount of access information and Amount of access information of the content to be distributed in the full content fragment of each code rate.
Correspondingly, for the first edge cache server to be distributed at least one edge cache server to be distributed, The first central node determination need to be the method for the content of the described first edge cache server distribution to be distributed, comprising: institute State the free memory numerical value that the first central node determines the described first edge cache server to be distributed;If described first to The free memory numerical value for distributing edge cache server is less than the occupied space numerical value of the content to be distributed, then and described the One central node is 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 big In or equal to the content to be distributed occupied space numerical value, then the content to be distributed is determined as by first central node It need to be the content of the described first edge cache server distribution to be distributed.
In conjunction with the free memory of edge cache server to be distributed and the amount of access information of each content fragment, determine It need to be out the content of the edge cache server distribution to be distributed, meet the memory space of edge cache server to be distributed Simultaneously, moreover it is possible to meet the requirements for access of user.
Specifically, first central node according to the content to be distributed at least one code rate amount of access information and The content to be distributed determines that at least one content fragment is to be in the amount of access information of the full content fragment of each code rate The content of the first edge cache server distribution to be distributed, specifically include: first central node chooses amount of access letter Cease maximum code rate;First central node is according to the maximum code rate of the amount of access and the content to be distributed in the code rate Full content fragment amount of access information, the maximum content fragment of amount of access information in the code rate is determined as need to be described the The content of one edge cache server distribution to be distributed, until the available storage of the described first edge cache server to be distributed is empty Between numerical value be zero.
The first central node preferentially chooses the content to be distributed of the maximum code rate of amount of access information in the embodiment of the present invention, and The maximum content of amount of access information point is chosen in the full content fragment of the maximum code rate of amount of access information in content to be distributed The content fragment is determined as being the content of the first edge cache server distribution to be distributed, guarantees the first side to be distributed by piece Edge cache server is able to satisfy the requirements for access of user.
Optionally, the operation statistical data includes at least one measurement period and the content to be distributed in each statistics The amount of access information in period.
Correspondingly, first central node divides according to the Distribution Results for each edge cache server to be distributed After needing the content distributed for the edge cache server to be distributed in sending out content to be distributed described, the content distribution method is also Include: first central node according to the content to be distributed each measurement period amount of access information, determine it is described to Distribute content in the protection period of each of the first CDN edge cache server to be distributed;First central node is to every A edge cache server to be distributed sends setting request, and the setting message includes the content to be distributed on the side to be distributed The protection period of edge cache server, it is each self that the setting message is used to indicate each edge cache server setting to be distributed Distribute the protection period of content, the content of having distributed belongs to the content to be distributed.
Runing in statistical data includes amount of access information of the content to be distributed in each measurement period, the first central node According to this information, the content protecting period of each of the first CDN edge cache server to be distributed is set, can both be prevented Amount of access is rising but is crossing the case where content of protection period is eliminated, be also possible to prevent amount of access become it is very low, But the content also in protection period still occupies the case where spatial cache.
Further, first central node according to the Distribution Results, is being each edge cache service to be distributed After device distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, and determine it is described to Distribute content before the protection period of each of the first CDN edge cache server to be distributed, receives each side to be distributed The confirmation message that edge cache server is sent.
Another embodiment of the present invention provides a kind of content distribution methods, comprising: and content server obtains operation statistical data, The operation statistical data is in the second content distributing network CDN to the statistical data of the amount of access of content to be distributed;It is described Content server sends the content identification for including the content to be distributed, the content to be distributed described to the first central node The content distribution message of the storage location information of content server and the operation statistical data, is used to indicate in described first Heart node distributes the content to be distributed in the first CDN, and first central node belongs to the first CDN.
In the embodiment of the present invention content server to the first central node send content distribution message when, in addition to will to point The content identification and content to be distributed for sending out content in the storage location information of the content server are sent to the first central node In addition, also the first center will be sent to the statistical data of the amount of access of content to be distributed in the second content distributing network CDN Node is believed when the first central node being enabled to distribute content to be distributed in the first CDN with reference to the amount of access of content to be distributed Breath, accurately determines the edge cache server to be distributed in the first CDN and need to be each edge cache server to be distributed The content of distribution to improve the storage space utilization of each edge cache server to be distributed, and can satisfy use The requirements for access at family solves the problems, such as the overload of edge cache server access in the prior art.
Specifically, the content server obtains operation statistical data, specifically include: if the content server is in local Content disposition operation management table in get the mark of the 2nd CDN, then the content server is sent to the second central node Operation statistics request message, second central node belong to the 2nd CDN, and local content disposition operation management table includes The mark and the mapping relations of the content identification of the content to be distributed of 2nd CDN, the operation count request message packet Content identification containing the content to be distributed, the operation statistics request message is for requesting the second central node statistical Analyse amount of access information of the content to be distributed in the 2nd CDN;The content server receives the second central node hair The operation statistics response message sent, the operation statistics response message includes the operation statistical data.
Further, the operation statistics request message further includes statistical parameter, and the operation statistical message is for requesting Second central node, which statisticallys analyze amount of access of the content to be distributed in the 2nd CDN according to the statistical parameter, to be believed Breath, the statistical parameter include at least one of region granular information, code rate, timestamp information, amount of access measurement period.
The embodiment of the present invention provides a kind of central node, comprising: acquiring unit, determination unit and Dispatching Unit.
Specifically, the function that each unit module provided in an embodiment of the present invention is realized is specific as follows:
Acquiring unit, for obtaining the content to be distributed in first content distribution network CDN and the fortune in the 2nd CDN Statistical data is sought, the operation statistical data is in the 2nd CDN to the statistical number of the amount of access of the content to be distributed According to the central node belongs to the first CDN.
Determination unit, in the operation statistical data according to the information acquired by the acquisition unit and the first CDN Whole fringe nodes status information, obtain the Distribution Results of content to be distributed, the Distribution Results include it is determining at least One edge cache server to be distributed and the content that need to distribute for each edge cache server to be distributed.
Dispatching Unit, the Distribution Results for being determined according to the determination unit are each edge cache to be distributed Server distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed.
The technical effect of central node provided in an embodiment of the present invention may refer to the first central node in above-described embodiment The technical effect of first central node described in the content distribution method of execution, details are not described herein again.
Further, 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 package Include the storage location information and institute of the content identification, the content to be distributed of the content to be distributed in the content server State operation statistical data.
Further, the central node further includes download unit,
The download unit, the content identification and storage location letter for being received according to the receiving unit Breath downloads the content to be distributed.
Optionally, the operation statistical data includes at least one reference position information and the content to be distributed every The amount of access information of a reference position information, the status information include the position of each fringe node in the first CDN Information.
Further, 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 the whole At least one purpose reference position information is determined in the location information of reference edge node;
It is that each purpose reference position information chooses a side to be distributed from the location information of whole fringe nodes The location information of edge node, 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, determine that at least one is waited for point for each fringe node to be distributed Hair side edge cache server.
Further, for the reference position information of the first mesh at least one described purpose reference position information, institute Determination unit is stated, is specifically used for:
If in the whole fringe node, there are the reference position information of the location information of fringe node and first mesh It is identical, then the location information of the fringe node is determined as to the location information of the first fringe node to be distributed;
If the reference position information of the location information and first mesh of the whole fringe node is all different, from institute State in the location information of whole fringe nodes choose the first fringe node to be distributed location information, wherein described first to The distance between the location information of the fringe node of distribution and the reference position information of first mesh are minimum.
Further, the content distribution message further includes purpose distribution location information.
Further, the determination unit is also used in the location information from whole fringe nodes be each mesh Reference position information choose the location information of a fringe node to be distributed after, and for each fringe node to be distributed Before location information determines at least one edge cache server to be distributed, if purpose distribution fringe node location information not by It is contained in the location information of at least one fringe node to be distributed, then it is the location information of purpose distribution fringe node is true It is set to the location information of fringe node to be distributed, the purpose distribution fringe node is contained in the distribution location information of the mother In.
Further, the status information further includes that the storage of each edge cache server in the first CDN is empty Between utilization rate, the attribute value of each edge cache server and each edge cache server memory space numerical value.
Further, for the first edge section to be distributed in the location information of at least one fringe node to be distributed For the location information of point, the determination unit is specifically used for:
According to the content to be distributed the described first fringe node to be distributed amount of access information and the 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, from whole edge cache servers that the described first fringe node to be distributed includes, X is chosen A edge cache server is as candidate edge cache server, wherein the preset condition is depositing for edge cache server It stores up space utilization rate and is less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than third and presets 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 N number of candidate edge cache server is determined as edge cache server to be distributed, N number of candidate edge cache server Top n after being arranged successively from big to small for the X candidate edge cache server according to free memory.
Optionally, the operation statistical data include the content to be distributed at least one code rate amount of access information and Amount of access information of the content to be distributed in the full content fragment of each code rate.
Further, for the first edge cache service to be distributed at least one edge cache server to be distributed Device, the determination unit, 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 content to be distributed Occupied space numerical value then exists 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 The amount of access information of the full content fragment of each code rate, determining that at least one content fragment is need to be the described first side to be distributed The occupied space numerical value of the content of edge cache server distribution, at least one content fragment is equal to the described first side to be distributed The free memory numerical value of edge cache server;
If the free memory numerical value of the first edge cache server to be distributed is greater than or equal to described to be distributed The content to be distributed then is determined as being the described first edge cache server to be distributed point by the occupied space numerical value of content The content of hair.
Further, the determination unit, is specifically used for:
Choose the maximum code rate of amount of access information;
According to the maximum code rate of the amount of access and the content to be distributed the full content fragment of the code rate access Information is measured, the maximum content fragment of amount of access information in the code rate is determined as need to be the described first edge cache service to be distributed The content of device distribution, until the free memory numerical value of the described first edge cache server to be distributed is zero.
Optionally, the operation statistical data includes at least one measurement period and the content to be distributed in each statistics The amount of access information in period.
Further, the determination unit is also used in the Dispatching Unit according to the Distribution Results, for each wait divide After hair side edge cache server distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, According to the content to be distributed in the amount of access information of each measurement period, determine the content to be distributed in the first CDN The protection period of each edge cache server to be distributed.
Further, the central node further includes transmission unit,
The transmission unit, for sending setting request, the setting message to each edge cache server to be distributed Comprising the determination unit determine the content to be distributed the edge cache server to be distributed protection period, it is described to set It sets message and is used to indicate each each protection period for distributing content self of edge cache server setting to be distributed, it is described to have distributed Content belongs to the content to be distributed.
Further, the receiving unit is also used in the determination unit according to the Distribution Results, for each wait divide After hair side edge cache server distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, And determining that the content to be distributed before the protection period of each of the first CDN edge cache server to be distributed, connects Receive the confirmation message that each edge cache server to be distributed is sent.
Another embodiment of the present invention provides a kind of content servers, including acquiring unit and transmission unit.
Specifically, the function that each unit module provided in an embodiment of the present invention is realized is specific as follows:
Acquiring unit, for obtaining operation statistical data, the operation statistical data is in the second content distributing network CDN In to 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 The content identification of content to be distributed, the content to be distributed the content server storage location information and the operation Statistical data, the content distribution message are used to indicate first central node for the content to be distributed in the first CDN Distribution, first central node belong to the first CDN.
The technical effect of content server provided in an embodiment of the present invention may refer to content server in above-described embodiment The technical effect of content server described in the content distribution method of execution, details are not described herein again.
Further, the transmission unit, if specifically for getting the in local content disposition operation management table The mark of two CDN, then send operation statistics request message to the second central node, and second central node belongs to described second CDN, local content disposition operation management table include the content identification of the mark and the content to be distributed of the 2nd CDN Mapping relations, the operation statistics request message include the content identification of the content to be distributed, and the operation statistics request disappears Breath is for requesting second central node to statistically analyze amount of access information of the content to be distributed in the 2nd CDN.
Further, the content server further includes receiving unit,
The receiving unit counts response message, the operation for receiving the operation that second central node is sent Counting response message includes the operation statistical data.
Further, the operation statistics request message further includes statistical parameter, and the operation statistical message is for requesting Second central node, which statisticallys analyze amount of access of the content to be distributed in the 2nd CDN according to the statistical parameter, to be believed Breath, the statistical parameter include at least one of region granular information, code rate, timestamp information, amount of access measurement period.
The embodiment of the present invention also provides a kind of content distribution system, including as described in above-mentioned any one central node, At least one fringe node of content server and the central node management as described in above-mentioned any one, each edge Node is made of at least one edge cache server, is connected between the content server and the central node by network It connects, passes through network connection between the central node and each edge cache server.
Specifically, central node is the first central node.
The technical effect of content distribution system provided in an embodiment of the present invention may refer to the first center in above-described embodiment Content server in the technical effect and above-described embodiment of first central node described in the content distribution method that node executes The technical effect of content server described in the content distribution method of execution, details are not described herein again.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments.
Fig. 1 is the network structure of content distribution system;
Fig. 2 is the flow diagram of existing content distribution method;
Fig. 3 is the flow diagram one of content distribution method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram two of the content distribution method provided in the embodiment of the present invention;
Fig. 5 is the flow diagram three of the content distribution method provided in the embodiment of the present invention;
Fig. 6 is the flow diagram four of the content distribution method provided in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram one of the central node provided in the embodiment of the present invention;
Fig. 8 is the structural schematic diagram two of the central node provided in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram three of the central node provided in the embodiment of the present invention;
Figure 10 is the structural schematic diagram one of the content server provided in the embodiment of the present invention;
Figure 11 is the structural schematic diagram two of the content server provided in the embodiment of the present invention;
Figure 12 is the structural schematic diagram three of the content server provided in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
Description and claims of this specification and term " first ", " second ", " third " and " in above-mentioned attached drawing Four " etc. be for distinguishing different objects, rather than for limiting particular order.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
In being described below, for illustration and not for limitation, propose such as specific system structure, interface, technology it The detail of class understands the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, omit to well-known device, circuit and The detailed description of method, in case unnecessary details interferes description of the invention.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Fig. 1 is the network structure of content distribution system.Referring to Fig. 1, which includes content server 10 And one or more CDN11.Wherein, pass through network connection between CDN11 and content server 10.
Optionally, content server 10 can be content supplier (CP, Content Provider) server, can also be with For service provider (SP, Service Provider) server.
CDN11 includes the fringe node 111 that central node 110 and one or more and central node 110 connect.Its In, pass through network connection between central node 110 and fringe node 111.Each fringe node includes one or more edges Cache server 112.
Central node 110 has the function of management content, Scheduling content, cache contents and distribution content etc., can know institute There are the geographical location information of fringe node 111, the information such as the storage information and service state of all edge cache servers 112.
Content server 10 is mainly used for central node 110 into CDN11 and sends content distribution message, is used to indicate Heart node 110 returns content to be distributed in the central node 110 according to the content identification of content to be distributed in content distribution message It is distributed in the CDN11 of category.
Wherein, 10 self maintained of content server has content disposition operation management table, in the content disposition operation management table It include the parameters such as content identification, CDN mark, online moment and offline moment, wherein CDN mark, which is used to indicate distribution, to be had The CDN of content corresponding with content identification.
Central node 110 is mainly used for the content distribution message of the transmission of reception content server 10, and according to receiving Storage location information in content distribution message, downloads content to be distributed.Central node 110 be also used to determine will acquire to Distribute content distribution to which edge cache server 112, and the operation for sending according to content server 10 is counted and asked Ask the content identification for including, amount of access information of the content of analysis content identification instruction in CDN11.
There are the content protecting phases for the content distributed in CDN.Wherein, the content protecting phase is CDN to being newly deployed in system Content, which carries out mandatory protection, makes the time cycle that it is not eliminated.
In the prior art, there are following two content distribution methods in CDN:
(1) after central node gets content to be distributed from CP server/SP server, each edge in network is triggered A content to be distributed of one of cache server downloading in node, to realize, all fringe nodes are stored in network A content to be distributed.
(2) after central node gets content to be distributed from CP server/SP server, central node is serviced according to CP The purpose distribution location information for including in the content distribution task message that device/SP server is sent is believed with purpose distribution position It ceases and determines cache server to be distributed in the cache server that corresponding fringe node includes, and trigger caching clothes to be distributed A content to be distributed of business device downloading stores portion content to be distributed to realize in cache server to be distributed.
Specifically, as shown in Fig. 2, above-mentioned second of content distribution method specifically:
1, the central node that content server includes to CDN sends content distribution message, wherein the content distribution message package The storage location information and purpose of content identification, content to be distributed containing content to be distributed in content server distribute position Information.
2, central node distributes location information according to purpose, selects in fringe node corresponding with purpose distribution location information Take the edge cache server that storage space utilization is minimum, service state is best as cache server to be distributed.
3, central node triggers all cache servers to be distributed and downloads content to be distributed.
4, after each cache server to be distributed is by content to be distributed downloading, confirmation is sent to central node and is disappeared Breath.
5, central node disappears to the setting that each cache server transmission to be distributed includes the preset content protecting phase Breath, so that each cache server to be distributed is to the curriculum offering of the downloading preset content protecting phase.
Above-mentioned CDN content distribution method can be realized by content distribution to be distributed to network " edge ", but for each For getting the edge cache server of content to be distributed, the content to be distributed of edge cache server storage is possible to nothing Method meets the requirements for access of user, and then edge cache server access is caused to be overloaded.
Specifically, the amount of access of content has following feature on different dimensions:
1, amount of access having differences property of the content in different regions.
Due to cultural difference of different regions user etc., amount of access of the different contents in each department is variant 's.For example, certain Video Applications statistics data are as follows: first three highest area of the amount of access of film X be respectively A, B and C Ground, and the amount of access of film Y first three highest area be respectively L, M and N.
In order to provide nearest service as much as possible for user, when carrying out content distribution, it should preferentially arrive content distribution Amount of access is high, i.e. the big region of user demand, and general amount of access is bigger, and the distribution quantity of content should be more, with reply The pressure concurrently accessed.
2, the amount of access of content changes over time having differences property.
After content is online, amount of access generally follow first rise then decline process, this from rise to decline when Between the period be known as the amount of access damped cycle of content.The amount of access damped cycle of different content be it is different, in some contents Amount of access rising declines also fast fastly after line, and amount of access rises slower after some contents are online, but the time that amount of access retains Long, that is, what is declined is also very slow.
When carrying out content distribution, more satisfactory situation be arranged according to the amount of access damped cycle of content it is different Protection period both can prevent amount of access from rising but cross the case where content of protection period is eliminated, be also possible to prevent in this way Amount of access has become very low but also the case where the content of protection period still occupies spatial cache.
3, amount of access having differences property of the content on different code rates and different time stamp
Due to the complexity of network environment, for streaming medium content, can generally there be various code rate, lead in the transmission Switching code rate is crossed to guarantee the fluency of streaming medium content transmission.
In addition, current hypertext transfer protocol (HTTP, Hypertext Transfer Protocol) generally requires Streaming medium content is cut into the content fragment of many short time (such as 10 seconds, one minute etc.), each content being capable of fragment There is a timestamp, is used to refer to the time that the content fragment is originated relative to streaming medium content.
From code rate, user is not uniformly, to there is cold and hot code rate to the amount of access of every kind of code rate.From timestamp On see, user be also to the access on each timestamp of content it is non-uniform, user is not always from the beginning content is seen tail, is had A little possible most of a part for only being had viewed beginning of contents, some may be to have viewed the part of beginning or ending.
When distributing streaming medium content, it should preferentially by the content of the high code rate of amount of access and amount of access high period Fragment is distributed to fringe node and is stored.
Content distribution method in the prior art there are aiming at the problem that, the embodiment of the present invention is based on the amount of access of content not Feature with dimension provides a kind of content distribution method, apparatus and system, by increasing in be distributed in content dispatch messages The amount of access information of different dimensions in bis- CDN of Rong increases the operation system of content to be distributed different dimensions in the 2nd CDN Count, when so that distributing content to be distributed in the first CDN, can accurately calculate edge cache server to be distributed and The content of each edge cache server storage to be distributed, thus avoid the problem that edge cache server access is overloaded, it can Better meet the requirements for access of user.
Embodiment one
Fig. 3 is a kind of flow diagram of content distribution method provided in an embodiment of the present invention, which can In application application scenarios shown in Fig. 1.
Referring to Fig. 3, which includes:
S100, content server obtain operation statistical data.
Wherein, operation statistical data is in the 2nd CDN to the statistical data of the amount of access of content to be distributed.
S101, content server send the content identification for including content to be distributed, content to be distributed to the first central node In the storage location information of content server and the content distribution message of operation statistical data.
Wherein, content distribution message is used to indicate the first central node and distributes content to be distributed in the first CDN, and first Central node belongs to the first CDN.
S102, the first central node download content to be distributed according to content identification and storage location information.
First central node downloads content to be distributed from content server, and the process and existing central node take from content The process that content to be distributed is downloaded in business device is identical, is no longer described in detail herein.
S103, the first central node according to operation statistical data and the first CDN in whole fringe nodes status information, It obtains at least one determining edge cache server to be distributed and need to distribute for each edge cache server to be distributed interior Hold.
S104, the first central node are that each edge cache server to be distributed is distributed and needs to wait for for this in content to be distributed point The content of hair side edge cache server distribution.
Under normal circumstances, content server self maintained has content disposition operation management table, the content disposition operation management It include the parameters such as content identification, CDN mark, online moment and offline moment in table, wherein CDN mark is used to indicate point Hair has the CDN of content corresponding with content identification.
Content server executes S100, obtains operation statistical data.
Specifically, content distribution operation of the content server in response to administrator, inquires local content disposition operation pipe In reason table whether include content to be distributed content identification, the content distribution operation of administrator is for triggering content server Content distribution message is sent to the first central node in the first CDN, in order to the first central node by content to be distributed the Distribute in one CDN.
If content server obtains and wait divide there are the content identification of content to be distributed in content disposition operation management table Send out the corresponding CDN mark of content identification of content, i.e. the 2nd CDN of acquisition mark.
If the content identification of content to be distributed is not present in content disposition operation management table, content server is according to existing Content distribution method execute corresponding steps.
Wherein, local content disposition operation management table includes the content identification of the mark and content to be distributed of the 2nd CDN Mapping relations.
It is understood that since content distribution operation is said for triggering content distribution to be distributed in the first CDN Never distribute content to be distributed in bright first CDN.What is recorded in content disposition operation management table in content server is at which Any content distributed in a CDN, therefore, if there are the content identification of content to be distributed in content disposition operation management table, Illustrate that content to be distributed has been distributed in other CDN, and the CDN is different from the first CDN.
Specifically, content server sends the operation statistics of the content identification comprising content to be distributed to the second central node Request message, for requesting the second central node to statistically analyze amount of access information of the content to be distributed in the 2nd CDN.Wherein, Second central node belongs to the 2nd CDN.
Further, operation statistics request message further includes statistical parameter, which counts request message for requesting the Two central nodes statistically analyze amount of access information of the content to be distributed in the 2nd CDN according to statistical parameter.
Preferably, the statistical parameter in the embodiment of the present invention includes region granular information, code rate, timestamp information, access Measure at least one of measurement period.
Wherein, region granular information refers to the region granularity of regional information statistics, such as with " province " for unit, or with " city " is unit.Code rate refers to the code rate of content.Timestamp information refers to that statistics streaming medium content accesses measurement on timestamp Time granularity when distribution, such as statistics amount of access is carried out as unit of 10 minutes.Amount of access measurement period refers to statistics access The time cycle of amount, such as 24 hours.
Wherein, the central node in the embodiment of the present invention is provided with statistics default parameters in advance, which can be First central node, or the second central node.
Specifically, the second central node is silent according to statistics if not including statistical parameter in operation statistics request message Recognize amount of access information of the Parameter statistical analysis content to be distributed in the 2nd CDN.
Since content to be distributed is distributed in the 2nd CDN, the second central node can be calculated in be distributed The amount of access information of each dimension in bis- CDN of Rong, i.e. the second central node can calculate operation statistical data.In second Heart node sends calculated operation statistical data to content server, in this way, content server can get operation system It counts.
If counting in request message includes statistical parameter, correspond to statistical parameter, operation statistical data includes second Distribution has the amount of access information of each reference position information of content to be distributed, content to be distributed at least one code rate in CDN Amount of access information, content to be distributed in the amount of access information of the full content fragment of each code rate and content to be distributed each The amount of access information of measurement period.
Correspondingly, content server executes S101 after getting operation statistical data, sends and wrap to the first central node Include the content identification of content to be distributed, content to be distributed content server storage location information and operation statistical data Content distribution message.
Optionally, content distribution message can also include purpose distribution location information and/or preset content protecting phase.
First central node is after receiving content distribution message, according to content identification and storage location information, downloading to Distribute content, i.e. execution S102.
The process that first central node downloads content to be distributed is downloaded with existing central node from content server to be distributed The process of content is identical, is no longer described in detail herein.
First central node is after getting content to be distributed and operation statistical data, according to operation statistical data and first The status information of whole fringe nodes in CDN, obtains at least one determining edge cache server to be distributed and need to be every The content of a edge cache server distribution to be distributed, i.e. execution S103.
Wherein, the status information in the embodiment of the present invention includes the location information, every of each fringe node in the first CDN The storage space utilization of a edge cache server, the attribute value of each edge cache server and each edge cache service The memory space numerical value of device.The attribute value of edge cache server is used for showing whether the operation of edge cache server is normal, The attribute value can be central processing unit (CPU, Central Processing Unit) occupancy of edge cache server.
Specifically, if including at least one reference position information and the content to be distributed in operation statistical data every The amount of access information of a reference position information, then the first central node is according to whole sides in operation statistical data and the first CDN The status information of edge node determines the process of at least one edge cache server to be distributed are as follows:
1, the first central node according to preset rules and content to be distributed each reference position information amount of access information, At least one purpose reference position information is determined from the location information all referring to fringe node.
Wherein, preset rules can be greater than the reference position information of requesting threshold for selection amount of access, or root Successively choose several reference position information of front according to the sequence of amount of access information from big to small, the embodiment of the present invention to this not Make specific limit.
2, the first central node is that each purpose reference position information chooses one from the location information of whole fringe nodes The location information of a fringe node to be distributed.
Wherein, fringe node to be distributed includes at least one edge cache server.
Purpose reference position information is that the first central node is determined according to operation statistical data, can be for first Distribute content to be distributed in CDN to refer to, therefore, the first central node is needed according to whole fringe nodes in the first CDN Location information determines the location information of a fringe node to be distributed for each purpose reference position information.
Further, if content distribution message further includes purpose distribution location information, illustrate that the first central node is certain Distribute the distribution fringe node of purpose included by location information for the purpose of wanting and distributes content to be distributed.If purpose distributes fringe node Location information be not contained in the location information of at least one fringe node to be distributed, then the first central node is by purpose point The location information of hair fringe node is determined as the location information of fringe node to be distributed.
3, the first central node is that each fringe node to be distributed is true according to the location information of each fringe node to be distributed At least one fixed edge cache server to be distributed.
Specifically, the position of fringe node to be distributed for each of the location information of at least one fringe node to be distributed For confidence breath, the first central node chooses the condition of edge cache server foundation to be distributed are as follows: edge cache server Storage space utilization is less than or equal to the second preset threshold, and the attribute value of edge cache server is less than third predetermined threshold value, And the quantity of edge cache server to be distributed is less than or equal to copy of content quantity.
Wherein, piece of content being stored in edge cache server and being known as a copy, edge cache server stores more parts Content copes with the pressure concurrently accessed.
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 first central node is that the first fringe node to be distributed determines extremely according to the location information of the first fringe node to be distributed The process of a few edge cache server to be distributed are as follows:
A, the first central node is pre- in the amount of access information of the first fringe node to be distributed and first according to content to be distributed If threshold value, determination need to distribute the quantity N of content to be distributed, N >=1 for the first fringe node to be distributed.
Preferably, the first preset threshold is requesting threshold, wherein requesting threshold can be rule of thumb configured, The present invention is not especially limit this.Such as the average access amount of content all fringe nodes in the first CDN is believed Breath is used as requesting threshold.
B, the first central node is according to preset condition, the whole edge cache services for including from the first fringe node to be distributed In device, X edge cache server is chosen as candidate edge cache server, wherein preset condition is edge cache service The storage space utilization of device is less than or equal to the second preset threshold, and the attribute value of edge cache server is default less than third Threshold value, X >=1.
If C, N >=X, X candidate edge cache server is determined as edge cache to be distributed and taken by the first central node Business device.
It is understood that if desired distribute N parts of contents to be distributed to first edge node, and the first central node is the X candidate edge cache server, and N >=X are selected in all edge cache servers that one fringe node includes, then are needed It regard all candidate edge cache servers selected as edge cache server to be distributed.
If D, N < X, the first central node selects N number of candidate edge caching from X candidate edge cache server Server, and N number of candidate edge cache server is determined as edge cache server to be distributed, N number of candidate edge caching clothes Business device is the top n after X candidate edge cache server is arranged successively from big to small according to free memory.
It is understood that the quantity for the candidate edge cache server that the first central node selects is greater than copy of content Quantity then needs to choose again from candidate edge cache server, in order to finally determine edge cache service to be distributed Device.
Specifically, if not including that at least one reference position information and the content to be distributed exist in operation statistical data The amount of access information of each reference position information, then the first central node determines the method for edge cache server to be distributed and shows There is the first central node in technology to determine that the method for edge cache server to be distributed is identical, is no longer described in detail herein.
Further, after first node determines at least one edge cache server to be distributed, determination need to be each The content of edge cache server distribution to be distributed.
Specifically, if operation statistical data includes content to be distributed in the amount of access information of at least one code rate and to be distributed Content the full content fragment of each code rate amount of access information, then at least one edge cache server to be distributed The first edge cache server to be distributed, the first central node determination need to be the first edge cache server to be distributed distribution The method of content are as follows:
A, the first central node determines the free memory numerical value of the first edge cache server to be distributed.
First central node manages all fringe nodes and all edge cache servers in the first CDN, therefore, in first Heart node can know the free memory numerical value of the first edge cache server to be distributed in advance.
If B, the free memory numerical value of the first edge cache server to be distributed is less than the occupancy sky of content to be distributed Between numerical value, then the first central node according to content to be distributed in the amount of access information of at least one code rate and content to be distributed every The amount of access information of the full content fragment of a code rate, determining that at least one content fragment is need to be the first edge cache to be distributed The content of server distribution, wherein the occupied space numerical value of at least one content fragment is equal to the first edge cache clothes to be distributed The free memory numerical value of business device.
It is understood that if the free memory numerical value of the first edge cache server to be distributed is less than in be distributed The occupied space numerical value of appearance then illustrates that the first edge cache server to be distributed is only capable of storage section content to be distributed.Therefore, First central node takes according to the amount of access information of content fragment each in content to be distributed for the first edge cache to be distributed Business device distributes the highest content fragment of amount of access information.
Specifically, the first central node determines first according to content to be distributed in the amount of access information of at least one code rate The maximum code rate of amount of access information, then, the first central node choose the maximum content of amount of access information point in same code rate Piece, the first central node in this order, select each content fragment one by one, until the occupancy of the content fragment of selection is empty Between numerical value it is identical as the free memory numerical value of the first edge cache server to be distributed, i.e., until the first edge to be distributed is slow The free memory numerical value for depositing server is zero.
If C, the free memory numerical value of the first edge cache server to be distributed is greater than or equal to content to be distributed Occupied space numerical value, then content to be distributed is determined as to distribute for the first edge cache server to be distributed by the first central node Content.
It is understood that if the free memory numerical value of the first edge cache server to be distributed be greater than or equal to Distribute the occupied space numerical value of content, then illustrate that the first edge cache server to be distributed can store all contents to be distributed, Therefore, content to be distributed is determined as being the content of the first edge cache server distribution to be distributed by the first central node.
First central node determines at least one edge cache server to be distributed and need to be slow for each edge to be distributed After the content for depositing server distribution, S104 is executed, the first central node is that each edge cache server to be distributed is distributed wait divide The content distributed for the edge cache server to be distributed is needed in hair content.
The embodiment of the present invention provides a kind of content distribution method, increases operation statistical data, fortune in content dispatch messages Seeking statistical data is to the statistical data of the amount of access of content to be distributed in the 2nd CDN, which can be true Reflect the amount of access information of content to be distributed different dimensions in the 2nd CDN, so that the first central node is counted with reference to the operation Data, at least one of the first CDN determined edge cache server to be distributed and need to be each edge cache to be distributed The content distribution content to be distributed of server distribution also can really and accurately reflect that amount of access of the content to be distributed in the first CDN is believed Breath, in this way, not only increasing the storage space utilization of each edge cache server to be distributed, and can satisfy user's Requirements for access solves the problems, such as the overload of edge cache server access in the prior art.
Embodiment two
Fig. 4 is a kind of flow diagram of content distribution method provided in an embodiment of the present invention, which can In application application scenarios shown in Fig. 1.
Referring to fig. 4, which includes:
S200, content server inquire local content disposition operation management in response to the content distribution operation of administrator In table whether include content to be distributed content identification.
Specifically, content server according to the available content identification to content to be distributed of content distribution operation, to point Send out storage location information, and/or purpose distribution location information, and/or preset content protecting of the content in content server Period.
Wherein, content identification can identify (ID, Identity) for Content identity, or content name, the present invention Embodiment is not especially limited this.
Illustratively, content server is according to the content identification that content distribution operation gets content to be distributed 0110jmvod02, it is " Beijing " that purpose, which distributes location information,;The preset content protecting period is 24 hours.
Under normal circumstances, content server self maintained has content disposition operation management table, the content disposition operation management It include the parameters such as content identification, CDN mark, online moment and offline moment in table, wherein CDN mark is used to indicate point Hair has the CDN of content corresponding with content identification.
Specifically, inquiry is originally after content server gets the content identification of content to be distributed according to content distribution operation In the content disposition operation management table on ground whether include content to be distributed content identification.
If in content disposition operation management table including the content identification of content to be distributed, and the content with content to be distributed It identifies corresponding CDN and is identified as the 2nd CDN mark, then content server can be got right in the 2nd CDN according to the 2nd CDN The statistical data of the amount of access of content to be distributed.
If not including the content identification of content to be distributed in content disposition operation management table, content server is according to existing Content distribution method carry out respective handling.
If there are the content identification of content to be distributed in S201, content disposition operation management table, content server is obtained 2nd CDN mark corresponding with the content identification of content to be distributed.
S202, content server are asked to the operation statistics that the second central node sends the content identification comprising content to be distributed Seek message.
Wherein, the second central node belongs to the 2nd CDN.Operation statistics request message is for requesting the second central node statistics Analyze amount of access information of the content to be distributed in the 2nd CDN.
Further, operation statistics request message further includes statistical parameter, which counts request message for requesting the Two central nodes statistically analyze amount of access information of the content to be distributed in the 2nd CDN according to statistical parameter.
Preferably, the statistical parameter in the embodiment of the present invention includes region granular information, code rate, timestamp information, access Measure at least one of measurement period.
Illustratively, content server send statistics request message include: content ID be 0110jmvod02, region grain Degree information is city, code rate is 3 Mbytes (MB, Megabytes) and 1MB, timestamp are 20 minutes, measurement period is 24 hours.
It includes the operation statistics response message for runing statistical data that S203, the second central node are sent to content server.
Since content to be distributed is distributed in the 2nd CDN, the second central node can be calculated in be distributed The amount of access information of each dimension in bis- CDN of Rong, i.e. the second central node can calculate operation statistical data.In second It includes the operation statistics response message for runing statistical data that heart node is sent to content server.
Wherein, the central node in the embodiment of the present invention is provided with statistics default parameters in advance, which can be First central node, or the second central node.
Specifically, the second central node is silent according to statistics if not including statistical parameter in operation statistics request message Recognize amount of access information of the Parameter statistical analysis content to be distributed in the 2nd CDN.Correspondingly, the second central node is to content service The operation statistical data in operation statistics response message that device is sent is corresponding with statistics default parameters.
If including statistical parameter in operation statistics request message, the operation statistical data in statistics response message is runed It is to be configured according to the statistical parameter in operation statistics request message.
Preferably, operation statistical data include content to be distributed each reference position information amount of access information, to point Content is sent out to believe in the amount of access information of at least one code rate, content to be distributed in the amount of access of the full content fragment of each code rate At least one of the amount of access information of breath and content to be distributed in each measurement period.
Illustratively, the operation statistics response message that the second central node is sent to content server includes the following contents:
Content server according to above-mentioned operation count response message know content identification be 0110jmvod02 content in river The amount of access information of Su Suzhou and Tianjin, the content first five of Law Firm Suzhou Jiangsu and Tianjin measurement period amount of access information, In the content three content fragments Law Firm Suzhou Jiangsu and Tianjin amount of access information, and different code rate content in Law Firm Suzhou Jiangsu With the amount of access information of Tianjin.
S204, content server send the content identification for including content to be distributed, content to be distributed to the first central node In the storage location information of content server and the content distribution message of operation statistical data.
S205, the first central node download content to be distributed according to content identification and storage location information.
S204-S205 is identical as the S101-S102 in embodiment one in the embodiment of the present invention, is no longer gone to live in the household of one's in-laws on getting married in detail herein It states.
S206, the first central node according to operation statistical data and the first CDN in whole fringe nodes status information, It obtains at least one determining edge cache server to be distributed and need to distribute for each edge cache server to be distributed interior Hold.
Specifically, the first central node is determined from whole fringe nodes of the first CDN wait divide according to operation statistical data Fringe node is sent out, then determines at least one edge cache server to be distributed from each fringe node to be distributed, and be each Edge cache server determination to be distributed need to be the content of the edge cache server distribution to be distributed.
First central node determines at least one edge cache server to be distributed and need to be each edge cache to be distributed The detailed process of the content of server distribution, please refers to subsequent explanation.
S207, the first central node, which trigger each edge cache server downloading to be distributed, to be the content of itself distribution.
S208, each edge cache server to be distributed will need to be after the content itself distributed is downloaded, in first Heart node sends confirmation message.
Each edge cache server to be distributed will need to be after the content itself distributed is downloaded, to the first central node Confirmation message is sent, in order to which the first central node is determined content distribution to be distributed success.
S209, the first central node determine content to be distributed in each of the first CDN edge cache server to be distributed Protection period.
For the content distributed in CDN there are the content protecting phase, which is to carry out mandatory protection to content to make it not The time cycle being eliminated.
Specifically, if operation statistical data includes at least one measurement period and content to be distributed in each measurement period Amount of access information, then the first central node determines to be distributed according to content to be distributed in the amount of access information of each measurement period Protection period of the content in each of the first CDN edge cache server to be distributed.
Optionally, the first central node can choose previous measurement period that amount of access declines for the first time as content protecting Phase.
Illustratively, in the examples described above, each system of the content at " Law Firm Suzhou Jiangsu " that content identification is 0110jmvod02 The amount of access in meter period declines appearance on day 4 for the first time, then the content is arranged in the content of " Law Firm Suzhou Jiangsu " in the first central node Protection period is (4-1) × 24=72 hours.Each measurement period of the content that content identification is 0110jmvod02 in " Tianjin " Amount of access decline for the first time appearance on day 3, then the first central node be arranged the content " Tianjin " the content protecting phase be (3-1) × 24=48 hours.
Further, if in content distribution message including the preset content protecting phase, the first central node is true by itself Fixed content to be distributed is carried out in the content protecting phase of each edge cache server to be distributed according to the preset content protecting phase Amendment.
Optionally, the first central node can be using the access time longer content protecting phase as the final content protecting phase.
Illustratively, if the preset content protecting phase is 24 hours, the first central node access time, longer content was protected The shield phase as the final content protecting phase, then content identification is 0110jmvod02 content protecting of the content at " Law Firm Suzhou Jiangsu " Phase is finally 72 hours, and the content protecting phase in " Tianjin " is finally 48 hours.
If runing statistical data does not include the access of at least one measurement period and content to be distributed in each measurement period Information is measured, then the first central node determines content to be distributed in the guarantor of each of the first CDN edge cache server to be distributed The shield period is the preset content protecting phase.
Illustratively, in above-mentioned example, in " Tianjin " area, content identification is the amount of access of the content of 0110jmvod02 Decline suddenly in third day, can still force to occupy caching in this way in third day to avoid content.
S210, the first central node send to each edge cache server to be distributed and wait for point comprising content to be distributed at this The setting of the protection period of hair side edge cache server is requested.
Request is set and is used to indicate each each protection period for distributing content self of edge cache server setting to be distributed, Wherein, distribute content and belong to content to be distributed.
As can be seen that the first central node is determined according to the variation of the actual access amount of content in the embodiment of the present invention The content protecting phase, in this way, both can prevent amount of access from rising but cross the case where content of protection period is eliminated, it can also To prevent amount of access from having become very low but also the case where the content of protection period still occupies spatial cache.
The embodiment of the present invention provides a kind of content distribution method, is existed by increasing content to be distributed in content dispatch messages The amount of access information of different dimensions in 2nd CDN, that is, increase the operation statistical number of content to be distributed different dimensions in the 2nd CDN According to can accurately calculate edge cache server to be distributed and each when so that distributing content to be distributed in the first CDN The content of edge cache server storage to be distributed, thus avoid the problem that edge cache server access is overloaded, it can be more preferable The requirements for access for meeting user.
The first central node is when executing S206 in the embodiment of the present invention, if in operation statistical data including at least one ginseng Location information and content to be distributed are examined in the amount of access information of each reference position information, then the first central node is according to operation The status information of statistical data and whole fringe nodes in the first CDN determines at least one edge cache server to be distributed.
Specifically, as shown in figure 5, the method that the first central node determines at least one edge cache server to be distributed Are as follows:
S206a, the first central node according to preset rules and content to be distributed each reference position information amount of access Information determines at least one purpose reference position information from all referring to location information.
Wherein, preset rules can be greater than the reference position information of requesting threshold for selection amount of access, or root Successively choose several reference position information of front according to the sequence of amount of access information from big to small, the embodiment of the present invention to this not Make specific limit.
Illustratively, if requesting threshold is 3000000, the first central node determines " Law Firm Suzhou Jiangsu " in above-mentioned example " Tianjin " is purpose reference position information.
S206b, for the reference position information of the first mesh at least one purpose reference position information, the first centromere Point judges the reference position information in whole fringe nodes of the first CDN with the presence or absence of the location information of fringe node and the first mesh It is identical.
Wherein, the reference position information of the first mesh is any one at least one purpose reference position information.
It is selected since purpose reference position information is the first central node according to operation statistical data, and the first center Node is to be distributed content to be distributed in the first CDN, therefore, the first central node need to judge be in the first CDN It is no to there is fringe node identical with purpose reference position information.
S206c, if it exists, then the first central node is by the position of fringe node identical with the reference position information of the first mesh Confidence ceases the location information for being determined as the first fringe node to be distributed.
S206d, if it does not exist, then the first central node is chosen and the first purpose from the location information of whole fringe nodes The smallest fringe node of the distance between reference position information is as the first fringe node to be distributed.
Illustratively, the location information of the fringe node in the first CDN are as follows: " Tianjin ", " Beijing " and " Nanjing ", the The purpose reference position information that one central node determines are as follows: " Tianjin " and " Law Firm Suzhou Jiangsu ".Believe the fringe node position of first CDN There is " Tianjin " in breath, therefore, " Tianjin " is determined as the location information of fringe node to be distributed by the first central node.First CDN Fringe node location information in can not find " Law Firm Suzhou Jiangsu ", the therefore " river that the first central node will be nearest with " Law Firm Suzhou Jiangsu " Southern Jiangsu capital " is determined as fringe node location information to be distributed.
If S206e, content distribution message further include purpose distribution location information, the first central node judges that purpose is distributed Whether the location information of fringe node is contained in the location information for the fringe node to be distributed that previous step determines.
Wherein, purpose distribution fringe node is contained in purpose distribution location information.
If the location information of S206f, purpose distribution fringe node is not contained in the edge to be distributed that previous step determines In the location information of node, then the location information of purpose distribution fringe node is determined as edge section to be distributed by the first central node The location information of point.
If the location information of S206g, purpose distribution fringe node is contained in the edge section to be distributed that previous step determines In the location information of point, then the location information for the fringe node to be distributed that previous step determines is the edge to be distributed finally determined The location information of node.
It is understood that illustrating the first central node if including that purpose distributes location information in content distribution message It has to distribute in all purposes distribution fringe node that location information includes in purpose and distributes content to be distributed.If the first center Node does not include that purpose distributes fringe node with reference to runing in the fringe node to be distributed that statistical data determines, then the first centromere Put the location information for needing the location information that purpose is distributed fringe node to be also determined as fringe node to be distributed.
Illustratively, distribute location information comprising purpose in content distribution message, it is " north which, which distributes location information, Capital ", and the location information for the fringe node to be distributed that the first central node determines in above-mentioned steps is " Nanjing " and " day Saliva " does not include " Beijing ", and therefore, " Beijing " is also determined as the location information of fringe node to be distributed by the first central node.
S206h, for the position of the first fringe node to be distributed in the location information of at least one fringe node to be distributed Confidence breath, the first central node determination need to distribute the quantity N of content to be distributed, N >=1 for the first fringe node to be distributed.
Wherein, the first fringe node to be distributed is any one at least one fringe node to be distributed, and first is default Threshold value can be requesting threshold.
Each fringe node to be distributed can store at least a content to be distributed, and the first central node is being determined wait divide After sending out fringe node, determination need to distribute the quantity N of content to be distributed for each fringe node to be distributed.
Optionally, the first central node is according to content to be distributed in the amount of access information of the first fringe node to be distributed and One preset threshold, determines N.
It should be noted that if distributing location information for the purpose of the location information of the first central node, and first center Node is not belonging to the 2nd CDN, then the first central node uses existing content distribution method to determine being the first central node Distribute the quantity of content to be distributed.
Illustratively, if requesting threshold is 3000000, the first central node determination need to distribute to be distributed for " Tianjin " The quantity of content is 3000000/3000000=1, and the quantity of content to be distributed need to be distributed for " Nanjing " with reference to " Jiangsu Soviet Union State " 10000000/3000000=3.
Wherein, the quantity of content to be distributed is also referred to as copy amount.
S206i, the first central node are according to preset condition, whole edge caches for including from the first fringe node to be distributed In server, X edge cache server is chosen as candidate edge cache server.
Wherein, preset condition is that the storage space utilization of edge cache server is less than or equal to the second preset threshold, And the attribute value of edge cache server is less than third predetermined threshold value, X >=1.
If S206j, N >=X, X candidate edge cache server is determined as edge to be distributed and delayed by the first central node Deposit server.
If S206k, N < X, the first central node selects N number of candidate edge from X candidate edge cache server Cache server, and N number of candidate edge cache server is determined as edge cache server to be distributed, N number of candidate edge is slow Depositing server is the top n after X candidate edge cache server is arranged successively from big to small according to free memory.
Illustratively, if " Nanjing " and " Tianjin " is each to be left 2 and 5 candidate edge cache servers, " Jiang Sunan The copy amount of capital " and " Tianjin " is respectively 3 and 1.The quantity 2 of the candidate edge cache server of " Nanjing " is less than The copy amount 3 of " Nanjing ", therefore, the first central node is directly by 2 candidate edge buffer services of " Nanjing " Device is as edge cache server to be distributed.The quantity 5 of the candidate edge cache server of " Tianjin " is greater than the copy of " Tianjin " Quantity 1, therefore, the first central node select storage space utilization most from 5 candidate edge cache servers of " Tianjin " 1 low edge cache server is as edge cache server to be distributed.For " Beijing ", since the first central node can not Content to be distributed is known in " Beijing " amount of access information, and therefore, the first central node can be according to existing content distribution method Select space utilisation minimum, the best edge cache server of service state is as edge cache server to be distributed.
Further, the first central node is when executing S206 in the embodiment of the present invention, if including in operation statistical data Operation statistical data include content to be distributed in the amount of access information of at least one code rate and content to be distributed in each code rate The amount of access information of full content fragment, then the first central node is slow according to each edge in operation statistical data and the first CDN The free memory numerical value of server is deposited, determination need to be the content of each edge cache server distribution to be distributed.
Specifically, as shown in fig. 6, slow for the first edge to be distributed at least one edge cache server to be distributed Server is deposited, the first edge cache server to be distributed is any one at least one edge cache server to be distributed, First central node determination need to be the method for the content of the first edge cache server distribution to be distributed are as follows:
S206w, the first central node determine the free memory numerical value of the first edge cache server to be distributed.
Specifically, free memory=the first edge cache the service to be distributed of the first edge cache server to be distributed The edge cache server to be distributed of total memory space × space utilization rate threshold value-the first of device has currently used memory space.
S206x, the first central node judge the first edge cache server to be distributed free memory numerical value whether Greater than the occupied space numerical value of content to be distributed.
If the free memory numerical value of S206y, the first edge cache server to be distributed is greater than or equal in be distributed The occupied space numerical value of appearance, then content to be distributed is determined as being the first edge cache server to be distributed by the first central node The content of distribution.
If the free memory numerical value of S206z, the first edge cache server to be distributed is less than accounting for for content to be distributed With space values, then the first central node chooses the maximum code rate of amount of access information, and in same code rate, chooses the code rate The middle maximum content fragment of amount of access information is determined as being the content of the first edge cache server distribution to be distributed, until the The free memory numerical value of one edge cache server to be distributed is zero.
Illustratively, if the available storage of two of " Nanjing " edge cache servers to be distributed is empty in above-mentioned example Between be respectively 2GB and 1GB (wherein, 1GB=1024MB), the free memory of the edge cache server to be distributed of " Tianjin " For 10GB, the occupied space of content to be distributed is 1.75GB, then the first central node directly determines complete content to be distributed For need to be " Tianjin " edge cache server to be distributed distribution content, complete content to be distributed is determined as being " river The content that the edge cache server to be distributed that free memory is 2GB in southern Jiangsu capital " is distributed.
The edge cache server to be distributed for being 1GB for free memory in " Nanjing ", due to content identification The amount of access of 1MB is apparently higher than in the amount of access that code rate is 3MB for the content of 0110jmvod02, therefore the first central node is excellent Select code rate for the content of 3MB.Under same code rate, the amount of access information of each content fragment is followed successively by ending from high to low 20 minutes, beginning 20 minutes and 20 minutes intermediate, therefore, it be code rate is 3MB that the first central node, which chooses the sequence of content fragment, When ending 20 minutes, beginning 20 minutes, intermediate 20 minutes content fragments, followed by code rate be 1MB ending 20 minutes, open First 20 minutes and intermediate 20 minutes fragments.In this order, the first central node is choosing the ending 20 that code rate is 3MB Minute, after 20 minutes or so content fragments of beginning, the edge cache server to be distributed that free memory is 1GB is just no longer Remaining free memory, therefore, the first central node determination need to be 1G for free memory in " Nanjing " wait divide The content of hair side edge cache server distribution be code rate be 3MB ending 20 minutes and beginning 20 minutes content fragment.
For the edge cache server to be distributed in " Beijing ", the first central node according to existing content distribution method into Row respective handling.
In conclusion content distribution method provided in an embodiment of the present invention, the first central node exists according to content to be distributed True amount of access information is determined in 2nd CDN distributes in which edge cache server in the first CDN, and determining need to To be the content distributed in each edge cache server to be distributed, can be avoided asking for edge cache server access overload Topic, better meets the requirements for access of user.
Embodiment three
The embodiment of the present invention provides a kind of central node 1, and the central node 1 is the first central node, the centromere Point 1 is for executing step performed by the first central node in above method.The central node 1 may include corresponding steps Corresponding module.As shown in fig. 7, the central node 1 includes:
Acquiring unit 20, for obtaining content to be distributed in first content distribution network CDN and in the 2nd CDN Statistical data is runed, the operation statistical data is in the 2nd CDN to the statistics of the amount of access of the content to be distributed Data, the central node belong to the first CDN.
Determination unit 21, the operation statistical data and described first for being got according to the acquiring unit 20 The status information of whole fringe nodes in CDN, obtains the Distribution Results of content to be distributed, and the Distribution Results include determining At least one edge cache server to be distributed and the content that need to distribute for each edge cache server to be distributed
Dispatching Unit 22, the Distribution Results for being determined according to the determination unit 21 are each edge to be distributed Cache server distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed.
Further, as shown in figure 8, the central node 1 further includes receiving unit 23,
The receiving unit 23, for the content distribution message that reception content server is sent, the content distribution message Content identification, the content to be distributed including the content to be distributed the content server storage location information and The operation statistical data.
Further, as shown in figure 8, the central node 1 further includes download unit 24,
The download unit 24, the content identification and the storage position for being received according to the receiving unit 23 Confidence breath, downloads the content to be distributed.
Optionally, the operation statistical data includes at least one reference position information and the content to be distributed every The amount of access information of a reference position information, the status information include the position of each fringe node in the first CDN Information.
Further, the determination unit 21, is specifically used for:
According to preset rules and the content to be distributed each reference position information amount of access information, from the whole At least one purpose reference position information is determined in the information of reference position;
It is that each purpose reference position information chooses a side to be distributed from the location information of whole fringe nodes The location information of edge node, 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, determine that at least one is waited for point for each fringe node to be distributed Hair side edge cache server.
Further, for the reference position information of the first mesh at least one described purpose reference position information, institute Determination unit 21 is stated, is specifically used for:
If in the whole fringe node, there are the reference position information of the location information of fringe node and first mesh It is identical, then the location information of the fringe node is determined as to the location information of the first fringe node to be distributed;
If the reference position information of the location information and first mesh of the whole fringe node is all different, from institute State in the location information of whole fringe nodes choose the first fringe node to be distributed location information, wherein described first to The distance between the location information of the fringe node of distribution and the reference position information of first mesh are minimum.
Further, the content distribution message further includes purpose distribution location information.
Correspondingly, the determination unit 21, is also used in the location information from whole fringe nodes be each mesh Reference position information choose the location information of a fringe node to be distributed after, and for each fringe node to be distributed Before location information determines at least one edge cache server to be distributed, if purpose distribution fringe node location information not by It is contained in the location information of at least one fringe node to be distributed, then it is the location information of purpose distribution fringe node is true It is set to the location information of fringe node to be distributed, the purpose distribution fringe node is contained in the distribution location information of the mother In.
Further, the status information further includes that the storage of each edge cache server in the first CDN is empty Between utilization rate, the attribute value of each edge cache server and each edge cache server memory space numerical value.
Correspondingly, for the first fringe node to be distributed in the location information of at least one fringe node to be distributed Location information for, the determination unit 21 is specifically used for:
According to the content to be distributed the described first fringe node to be distributed amount of access information and the 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, from whole edge cache servers that the described first fringe node to be distributed includes, X is chosen A edge cache server is as candidate edge cache server, wherein the preset condition is depositing for edge cache server It stores up space utilization rate and is less than or equal to the second preset threshold, and the attribute value of the edge cache server is less than third and presets 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 N number of candidate edge cache server is determined as edge cache server to be distributed, N number of candidate edge cache server Top n after being arranged successively from big to small for the X candidate edge cache server according to free memory.
Optionally, the operation statistical data include the content to be distributed at least one code rate amount of access information and Amount of access information of the content to be distributed in the full content fragment of each code rate.
Correspondingly, for the first edge cache server to be distributed at least one edge cache server to be distributed, The determination unit 21, 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 content to be distributed Occupied space numerical value then exists 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 The amount of access information of the full content fragment of each code rate, determining that at least one content fragment is need to be the described first side to be distributed The occupied space numerical value of the content of edge cache server distribution, at least one content fragment is equal to the described first side to be distributed The free memory numerical value of edge cache server;
If the free memory numerical value of the first edge cache server to be distributed is greater than or equal to described to be distributed The content to be distributed then is determined as being the described first edge cache server to be distributed point by the occupied space numerical value of content The content of hair.
Further, the determination unit 21, is specifically used for:
Choose the maximum code rate of amount of access information;
According to the maximum code rate of the amount of access and the content to be distributed the full content fragment of the code rate access Information is measured, the maximum content fragment of amount of access information in the code rate is determined as need to be the described first edge cache service to be distributed The content of device distribution, until the free memory numerical value of the described first edge cache server to be distributed is zero.
Further, the receiving unit 23 is also used in the determination unit 21 according to the Distribution Results, is each Edge cache server to be distributed distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed Later, the confirmation message that each edge cache server to be distributed is sent is received.
Optionally, the operation statistical data includes at least one measurement period and the content to be distributed in each statistics The amount of access information in period.
Correspondingly, the determination unit 21, is also used in the Dispatching Unit according to the Distribution Results, for each wait divide After hair side edge cache server distributes the content for needing to distribute in the content to be distributed for the edge cache server to be distributed, According to the content to be distributed in the amount of access information of each measurement period, determine the content to be distributed in the first CDN The protection period of each edge cache server to be distributed.
Further, as shown in figure 8, the central node 1 further includes transmission unit 25,
The transmission unit 25, for sending setting request to each edge cache server to be distributed, the setting disappears Protection period of the breath comprising the determining content to be distributed of the determination unit 21 in the edge cache server to be distributed, institute State setting message and be used to indicate each each protection period for distributing content self of edge cache server to be distributed setting, it is described Distribution content belongs to the content to be distributed.
It is understood that the central node 1 of the present embodiment only according to the central node 1 realize function carry out patrol It collects and divides, in practical application, the superposition or fractionation of said units can be carried out.And 1 institute of central node that the embodiment provides The function of realization and content distribution method provided by the above embodiment correspond, which is realized more Detailed process flow, has been described in detail in above method embodiment, is not described in detail herein.
Another embodiment of the present invention provides a kind of central nodes, as shown in figure 9, the central node include interface circuit 20, Processor 21, memory 22 and system bus 23.
Wherein, pass through the system bus 23 between the interface circuit 20, the processor 21 and the memory 22 Connection, and complete communication each other.
It will be understood by those skilled in the art that the structure of central node shown in Fig. 9 is not the restriction to central node, It may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Specifically, the central node executes in described in above method embodiment when central node operation Hold distribution method.Specific content distribution method can be found in the associated description in above-mentioned embodiment as shown in figures 3 to 6, herein It repeats no more.
Specifically, interface circuit 20 for realizing the central node respectively with content server and edge cache server it Between communication connection.
Specifically, the memory 22 can be used for storing software program and application module, processor 21 is deposited by operation The software program and application module in memory 22 are stored up, at the various function application and data of central node Reason.Memory 22 can mainly include storing program area and storage data area, wherein storing program area can storage program area, extremely Application program (for example distributing content to be distributed) needed for a few function etc.;Storage data area can store content to be distributed etc..
Wherein, the memory 22 may include volatile memory, such as high-speed random access memory (RAM, Random Access Memory), the memory 22 also may include nonvolatile memory, and for example, at least a disk is deposited Memory device, flush memory device or other volatile solid-state parts.
Specifically, the processor 21 is the control centre of central node, using various interfaces and connection it is entire in The various pieces of heart node, by running or executing the software program being stored in memory 22 and/or application module, and tune With the data being stored in memory 22, the various functions and processing data of implementation center's node, to be carried out to central node Integral monitoring.
Wherein, processor 21 can be central processing unit (CPU, Central Processing Unit).The processor 101 can also for other general processors, digital signal processor (DSP, Digital Signal Processing) or its His programmable logic device or transistor logic, discrete hardware components etc..General processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
The system bus 23 may include data/address bus, power bus, control bus and signal condition bus etc..This reality It applies for clear explanation in example, various buses is all illustrated as system bus 23 in Fig. 9.
Central node in the embodiment of the present invention is with reference to operation statistical data, at least one of the first CDN determined Edge cache server to be distributed and the content distribution content to be distributed that need to distribute for each edge cache server to be distributed It can really and accurately reflect content to be distributed in the amount of access information of the first CDN, in this way, not only increasing each edge to be distributed The storage space utilization of cache server, and can satisfy the requirements for access of user, it is slow to solve edge in the prior art The problem of depositing server access overload.
Example IV
The embodiment of the present invention provides a kind of content server 1, and the content server 1 is interior in above method for executing Hold step performed by server.The content server 1 may include module corresponding to corresponding steps.As shown in Figure 10, The content server 1 includes:
Acquiring unit 30, for obtaining operation statistical data, the operation statistical data is in the second content distributing network To the statistical data of the amount of access of content to be distributed in CDN.
Transmission unit 31, for sending content distribution message to the first central node, 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 described obtain The operation statistical data that unit 30 is got is taken, the content distribution message is used to indicate first central node for institute It states content to be distributed to distribute in the first CDN, first central node belongs to the first CDN.
Further, the transmission unit 31, if specifically for being got in local content disposition operation management table The mark of 2nd CDN, then send operation statistics request message to the second central node, and second central node belongs to described the Two CDN, local content disposition operation management table include the content identification of the mark and the content to be distributed of the 2nd CDN Mapping relations, the operation statistics request message includes the content identification of the content to be distributed, and operation statistics is requested Message is for requesting second central node to statistically analyze amount of access information of the content to be distributed in the 2nd CDN.
Further, as shown in figure 11, content server 1 further includes receiving unit 32,
The receiving unit 32 counts response message, the fortune for receiving the operation that second central node is sent Battalion's statistics response message includes the operation statistical data.
Further, the operation statistics request message further includes statistical parameter, and the operation statistical message is for requesting Second central node, which statisticallys analyze amount of access of the content to be distributed in the 2nd CDN according to the statistical parameter, to be believed Breath.
Preferably, the statistical parameter is comprising in region granular information, code rate, timestamp information, amount of access measurement period At least one.
It is understood that the content server 1 of the present embodiment only according to the content server 1 realize function carry out Logical partitioning, in practical application, the superposition or fractionation of said units can be carried out.And the content service that the embodiment provides The content distribution method that the function and above method embodiment that device 1 is realized provide corresponds, for 1 institute of content server The more detailed process flow realized, has been described in detail in above method embodiment, has been not described in detail herein.
Another embodiment of the present invention provides a kind of content servers, and as shown in figure 12, which includes interface electricity Road 40, processor 41, memory 42 and system bus 43.
Wherein, pass through the system bus 43 between the interface circuit 40, the processor 41 and the memory 42 Connection, and complete communication each other.
It will be understood by those skilled in the art that the structure of content server shown in Figure 12 is not to content server It limits, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Specifically, the content server executes such as Fig. 3-Fig. 6 the embodiment described when content server operation Content distribution method.Specific content distribution method can be found in the associated description in above-mentioned embodiment as shown in figures 3 to 6, Details are not described herein again.
Specifically, interface circuit 40 is for realizing the communication connection between the content server and central node.
Specifically, the memory 42 can be used for storing software program and application module, processor 41 is deposited by operation The software program and application module in memory 42 are stored up, at the various function application and data of content server Reason.Memory 42 can mainly include that the storing program area storing program area can be needed for storage program area, at least one function Application program (for example sending content distribution message function) etc..
Wherein, the memory 42 may include volatile memory, such as high-speed random access memory (RAM, Random Access Memory), the memory 42 also may include nonvolatile memory, and for example, at least a disk is deposited Memory device, flush memory device or other volatile solid-state parts.
Specifically, the processor 41 is the control centre of content server, it is entire using various interfaces and connection The various pieces of content server, by running or executing the software program being stored in memory 42 and/or application module, with And the data being stored in memory 42 are called, the various functions and processing data of content server are executed, to take to content Business device carries out integral monitoring.
Wherein, processor 41 can be central processing unit (CPU, Central Processing Unit).The processor 41 can also for other general processors, digital signal processor (DSP, Digital Signal Processing) or its His programmable logic device or transistor logic, discrete hardware components etc..General processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
The system bus 43 may include data/address bus, power bus, control bus and signal condition bus etc..This reality It applies for clear explanation in example, various buses is all illustrated as system bus 43 in Figure 12.
Content server in the embodiment of the present invention is when sending content distribution message to the first central node, in addition to will be to The content identification and content to be distributed for distributing content in the storage location information of the content server are sent to the first centromere Other than point, the statistical data of the amount of access of content to be distributed will be also sent in first in the second content distributing network CDN Heart node refers to the amount of access of content to be distributed when the first central node being enabled to distribute content to be distributed in the first CDN Information, accurately determines the edge cache server to be distributed in the first CDN and need to be each edge cache service to be distributed The content of device distribution, to improve the storage space utilization of each edge cache server to be distributed, and can satisfy The requirements for access of user solves the problems, such as the overload of edge cache server access in the prior art.
Embodiment five
The embodiment of the present invention provides a kind of content distribution system, the content distribution system include as described in embodiment three in At least one fringe node of heart node, the content server as described in example IV and the central node management, each Fringe node is made of at least one edge cache server, wherein is connected between content server and central node by network It connects, passes through network connection between central node and each edge cache server.
For the more detailed process flow that central node is realized, it has been described in detail in above-described embodiment three, It is not described in detail herein.
For the more detailed process flow that content server is realized, does in above-described embodiment four and retouched in detail It states, is not described in detail herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, module or unit Division, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Although the alternative embodiment of the application has been described, created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as include can It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended 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 kind of content distribution method, apparatus 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 kind of content distribution method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511029102.7A CN106936877B (en) 2015-12-31 2015-12-31 A kind of content distribution method, apparatus 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 kind of content distribution method, apparatus 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 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 网宿科技股份有限公司 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
CN113297451A (en) * 2020-04-10 2021-08-24 阿里巴巴集团控股有限公司 Data processing method and 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 kind of content distribution method, apparatus and system
US8930489B2 (en) Distributed rate limiting of handling requests
CN109040259B (en) CDN node distribution method and system based on MEC
CN108881448B (en) API request processing method and device
CN103716251B (en) For the load-balancing method and equipment of content distributing network
CN108494891A (en) A kind of domain name analytic method, server and system
US10002011B2 (en) Centralized networking configuration in distributed systems
CN102281190B (en) Networking method for load balancing apparatus, server and client access method
CN104348647B (en) Multi-source bandwidth scheduling method, apparatus and system
CN110401657B (en) Processing method and device for access log
EP3066569B1 (en) Centralized networking configuration in distributed systems
CN109151009B (en) CDN node distribution method and system based on MEC
CN103701916A (en) Dynamic load balancing method of distributed storage system
US20130007253A1 (en) Method, system and corresponding device for load balancing
CN110198332B (en) Scheduling method and device for content distribution network node and storage medium
CN110224943B (en) Flow service current limiting method based on URL, electronic equipment and computer storage medium
CN107124453A (en) Platform Interworking GateWay stacks the SiteServer LBS and video call method of deployment
CN109951543A (en) A kind of data search method of CDN node, device and the network equipment
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
US20140143427A1 (en) Providing Resources in a Cloud
US10027559B1 (en) Customer defined bandwidth limitations in distributed systems
CN109639796A (en) A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing
CN112087382B (en) Service routing method and device
CN109600818A (en) Wifi sharing method, electronic device and storage medium
CN112261133A (en) CDN node control method, device, server and storage medium

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