A kind of content distribution method, apparatus and system
Technical field
The application is related to communication technical field, more particularly to a kind of content distribution method, apparatus and system.
Background technology
Content distributing network (CDN, Content Delivery Network) is by between existing network
One layer of new network architecture is superimposed in agreement (IP, Internet Protocol) transmission network of intercommunication, will be interior
Appearance is published to the network " edge " closest to user, user is obtained required content nearby, to solve
The situation of certainly current network congestion, improves the response speed of customer access network.
CDN is made up of multiple CDN nodes, and each CDN node is general to be cached by one or at least two
Server cluster is constituted.Multiple CDN nodes are divided into Centroid and the class of fringe node two.Centroid has
Standby management content, Scheduling content, cache contents and the function for fringe node distribution content.At present, content
Node distributes a content to be distributed to each fringe node in network centered on distribution method so that each
There are a content to be distributed, or Centroid root in the presence of an edge cache server storage in fringe node
The purpose got according to the Centroid distributes positional information, to the side corresponding with purpose distribution positional information
Edge node distributes a content to be distributed so that deposited in the fringe node corresponding with purpose distribution positional information
There is a content to be distributed in an edge cache server storage.
The above method can be by content distribution to be distributed to the fringe node closest to user a side
Edge caching server so that user can nearby obtain content to be distributed, but got for each to be distributed
For the edge cache server of content, the content to be distributed of the edge cache server storage is possible to cannot
Meet the requirements for access of user, and then cause edge cache server access to be overloaded.
The content of the invention
The embodiment of the present invention provides a kind of content distribution method, apparatus and system, can solve the problem that in the prior art
The problem of edge cache server access overload.
To reach above-mentioned purpose, the embodiment of the present invention is adopted the following technical scheme that:
The embodiment of the present invention provides a kind of content distribution method, and first, the first Centroid is obtained in first
Content to be distributed in content distributing network CDN and the operation statistics in the 2nd CDN, the operation system
Count be visit capacity in the 2nd CDN to the content to be distributed statistics, described first
Centroid belongs to a CDN;Then, first Centroid is according to the operation statistics for getting
Data and with the CDN for getting in advance in whole fringe nodes status information, determined
At least one edge cache server to be distributed and need to be each edge cache server to be distributed distribution
Content;Finally, first Centroid is that each edge cache server distribution to be distributed is described to be distributed
The content distributed for the edge cache server to be distributed is needed in content.
Operation statistics is the statistics of the visit capacity in the 2nd CDN to content to be distributed, the operation
Statistics can truly reflect the visit capacity information of content to be distributed different dimensions in the 2nd CDN, this hair
The first Centroid refers to the operation statistics, in the CDN for determining at least one in bright embodiment
Individual edge cache server to be distributed and the content distribution that need to be each edge cache server distribution to be distributed
Content to be distributed also can really and accurately reflect visit capacity information of the content to be distributed in a CDN, so,
The memory space utilization rate of each edge cache server to be distributed is not only increased, and disclosure satisfy that user
Requirements for access, solve the problems, such as edge cache server access in the prior art overload.
Specifically, first Centroid obtains content to be distributed in a CDN and in the 2nd CDN
In operation statistics, including:First Centroid receive that content server sends including described
The content identification of content to be distributed, the content to be distributed the content server storage location information with
And the content distribution message of the operation statistics;First Centroid according to the content identification and
The storage location information, downloads the content to be distributed.
Optionally, it is described operation statistics include at least one reference position information and it is described it is to be distributed in
Hold the visit capacity information in each reference position information, the status information is including every in a CDN
The positional information of individual fringe node.
Accordingly, first Centroid is complete in the operation statistics and a CDN
The status information of portion's fringe node, obtains the Distribution Results of content to be distributed, specifically includes:In described first
Heart node according to preset rules and the content to be distributed each reference position information visit capacity information, from
It is described all referring to the reference position information that at least one mesh is determined in positional information;First centromere
Point is chosen one and is treated minute from the positional information of whole fringe nodes for each purpose reference position information
The positional information of fringe node is sent out, the fringe node to be distributed includes at least one edge cache server;
First Centroid, according to the positional information of each fringe node to be distributed, is each edge section to be distributed
Point determines at least one edge cache server to be distributed.
When statistics is runed including content to be distributed visit capacity information of region dimension in the 2nd CDN,
First Centroid can determine edge cache server to be distributed according to the operation statistics.
Specifically, for the reference bit confidence of the first mesh in the reference position information of at least one mesh
Breath, first Centroid is the reference of first mesh from the positional information of whole fringe nodes
Positional information chooses the positional information of the first fringe node to be distributed, specifically includes:If whole edge sections
The positional information that there is fringe node in point is identical with the reference position information of first mesh, then and described first
The positional information of the fringe node is defined as Centroid the positional information of the first fringe node to be distributed;
If the positional information of whole fringe nodes is differed with the reference position information of first mesh, institute
State the first Centroid and the first edge section to be distributed is chosen from the positional information of whole fringe nodes
The positional information of point, wherein, the positional 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 also includes that purpose distributes positional information.
Accordingly, first Centroid is each purpose from the positional information of whole fringe nodes
Reference position information is chosen after a positional information for fringe node to be distributed, and first Centroid
Before determining at least one edge cache server to be distributed for the positional information of each fringe node to be distributed,
The content distribution method also includes:If the positional information of purpose distribution fringe node is not contained at least one
In the positional information of individual fringe node to be distributed, then the purpose is distributed edge section by first Centroid
The positional information of point is defined as the positional information of fringe node to be distributed, and the purpose distribution fringe node is included
In female distribution positional information.
If it is understood that comprising purposeful distribution positional information, illustration purpose in content distribution message
The all purposes distribution fringe node that distribution positional information is included is required to distribute content to be distributed.According to fortune
There is the situation for not distributing fringe node comprising purpose in the fringe node to be distributed that battalion's statistics is determined,
In this case, it is necessary to purpose distribution fringe node is set into fringe node to be distributed.
Further, the status information also includes each the edge cache server in a CDN
The storage of memory space utilization rate, the property value of each edge cache server and each edge cache server
Space values.
Accordingly, for the first side to be distributed in the positional information of described at least one fringe node to be distributed
For the positional information of edge node, first Centroid is believed according to the position of the first fringe node to be distributed
Breath, is that the first fringe node to be distributed determines at least one edge cache server to be distributed, is specifically included:
First Centroid according to the content to be distributed the described first fringe node to be distributed visit capacity
Information and the first predetermined threshold value, it is determined that the content to be distributed need to be distributed for the described first fringe node to be distributed
Quantity N, N >=1;First Centroid according to pre-conditioned, from the described first edge section to be distributed
In whole edge cache servers that point is included, choose X edge cache server and cached as candidate edge
Server, wherein, the pre-conditioned memory space utilization rate for edge cache server is less than or equal to
Second predetermined threshold value, and the property value of the edge cache server is less than the 3rd predetermined threshold value, X >=1;If
N >=X, then first Centroid X candidate edge caching server is defined as edge cache to be distributed
Server;If N<X, then first Centroid chosen from the X candidate edge caching server
Go out N number of candidate edge caching server, and N number of candidate edge caching server is defined as to be distributed
Edge cache server, N number of candidate edge caching server is the X candidate edge buffer service
Device be arranged in order from big to small according to free memory after top n.
First Centroid is included after fringe node to be distributed is determined according to each fringe node to be distributed
The memory space utilization rate of edge cache server determine edge cache server to be distributed.
Optionally, the operation statistics includes visit capacity of the content to be distributed at least one code check
The visit capacity information of information and the content to be distributed in the full content burst of each code check.
Accordingly, taken for the first edge cache to be distributed at least one edge cache server to be distributed
Business device, first Centroid determines need to be the content of the described first edge cache server distribution to be distributed
Method, including:First Centroid determines the available of the described first edge cache server to be distributed
Memory space numerical value;If the free memory numerical value of the first edge cache server to be distributed is less than institute
State the numerical value that takes up room of content to be distributed, then first Centroid according to the content to be distributed extremely
The visit of few the visit capacity information and the content to be distributed of code check in the full content burst of each code check
The amount of asking information, determines at least one content fragment for that need to be the described first edge cache server distribution to be distributed
Content, the numerical value that takes up room of at least one content fragment is equal to the described first edge cache to be distributed
The free memory numerical value of server;If the available storage of the first edge cache server to be distributed is empty
Between numerical value more than or equal to the content to be distributed the numerical value that takes up room, then first Centroid is by institute
State content to be distributed and be defined as being the content of the described first edge cache server distribution to be distributed.
Believe with reference to the free memory of edge cache server to be distributed and the visit capacity of each content fragment
Breath, determines to be the content of edge cache server distribution to be distributed, is meeting edge cache to be distributed
While the memory space of server, moreover it is possible to meet the requirements for access of user.
Specifically, first Centroid according to the content to be distributed at least one code check visit capacity
Information and the content to be distributed the full content burst of each code check visit capacity information, it is determined that at least one
It need to be the content of the described first edge cache server distribution to be distributed that individual content fragment is, specifically include:Institute
State the code check that the first Centroid chooses visit capacity information maximization;First Centroid is according to the access
The visit capacity information of code check and the content to be distributed in the full content burst of the code check of maximum is measured, by this
The content fragment of visit capacity information maximization is defined as being the described first edge cache service to be distributed in code check
The content of device distribution, until the free memory numerical value of the first edge cache server to be distributed is
Zero.
The first Centroid preferentially chooses the to be distributed of the code check of visit capacity information maximization in the embodiment of the present invention
Content, and choose visit capacity in the full content burst of the code check of visit capacity information maximization in content to be distributed
The content fragment of information maximization, it need to be the first edge cache server to be distributed point that the content fragment is defined as
The content of hair, it is ensured that the first edge cache server to be distributed can meet the requirements for access of user.
Optionally, the operation statistics includes at least one measurement period and the content to be distributed each
The visit capacity information of individual measurement period.
Accordingly, first Centroid, according to the Distribution Results, is each edge cache clothes to be distributed
After business device is distributed and need in the content to be distributed the content distributed for the edge cache server to be distributed, institute
Stating content distribution method also includes:First Centroid is according to the content to be distributed in each statistics week
The visit capacity information of phase, determines each of the content to be distributed in CDN edge cache clothes to be distributed
The protection period of business device;First Centroid sends to set and asks to each edge cache server to be distributed
Ask, the message package that sets contains protection week of the content to be distributed in the edge cache server to be distributed
Phase, the setting message is used to indicate each edge cache server to be distributed to set distribution content of respectively controlling oneself
Protection period, the content of having distributed belongs to the content to be distributed.
Include visit capacity information of the content to be distributed in each measurement period in operation statistics, in first
Heart node sets the content of each the edge cache server to be distributed in a CDN according to this information
Protection period, can both prevent visit capacity from rising but crossing the situation that the content of protection period is eliminated,
It is also possible to prevent visit capacity and has become very low but also in protection period content still to occupy spatial cache
Situation.
Further, first Centroid according to the Distribution Results, is being that each edge to be distributed delays
Deposit server distribute need in the content to be distributed the content distributed for the edge cache server to be distributed it
Afterwards, and it is determined that the guarantor of each to be distributed edge cache server of the content to be distributed in a CDN
Before the shield cycle, the confirmation message that each edge cache server to be distributed sends is received.
Another embodiment of the present invention provides a kind of content distribution method, including:Content server obtains operation system
Count, the operation statistics is the access in the second content distributing network CDN to content to be distributed
The statistics of amount;The content server sends to the first Centroid to be included in the content to be distributed
Hold mark, the content to be distributed to be counted in the storage location information of the content server and the operation
The content distribution message of data, for indicating first Centroid by the content to be distributed first
Distribute in CDN, first Centroid belongs to a CDN.
Content server is when to the first Centroid transmission content dispatch messages in the embodiment of the present invention, except
The content identification of content to be distributed and content to be distributed are sent out in the storage location information of the content server
Give beyond the first Centroid, also by the access in the second content distributing network CDN to content to be distributed
The statistics of amount is sent to the first Centroid so that the first Centroid is distributed in a CDN and treated point
The visit capacity information of content to be distributed can be referred to during hair content, is accurately determined and is treated in a CDN point
Hair side edge caching server and the content that need to be each edge cache server distribution to be distributed, so as to improve
The memory space utilization rate of each edge cache server to be distributed, and disclosure satisfy that the access of user is needed
Ask, solve the problems, such as that edge cache server access in the prior art is overloaded.
Specifically, the content server obtains operation statistics, specifically include:If the content service
Device gets the mark of the 2nd CDN in local content disposition operation management table, then the content server
Operation statistics request message is sent to the second Centroid, second Centroid belongs to the 2nd CDN,
Local content disposition operation management table includes the mark of the 2nd CDN and the content of the content to be distributed
The mapping relations of mark, the content identification of the operation statistics request message comprising the content to be distributed, institute
State operation statistics request message be used for ask the second Centroid statistical analysis described in content to be distributed exist
Visit capacity information in 2nd CDN;The content server receives the operation that second Centroid sends
Statistics response message, the operation statistics response message includes the operation statistics.
Further, the operation statistics request message also includes statistical parameter, and the operation statistical message is used
In ask second Centroid according to the statistical parameter statistical analysis content to be distributed second
Visit capacity information in CDN, the statistical parameter comprising region granular information, code check, timestamp information,
At least one of visit capacity measurement period.
The embodiment of the present invention provides a kind of Centroid, including:Acquiring unit, determining unit and distribution are single
Unit.
Specifically, the function that 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 second
Operation statistics in CDN, the operation statistics is to described to be distributed in the 2nd CDN
The statistics of the visit capacity of content, the Centroid belongs to a CDN.
Determining unit, for the operation statistics got according to the acquiring unit and described first
The status information of the whole fringe nodes in CDN, obtains the Distribution Results of content to be distributed, the distribution knot
Fruit includes at least one edge cache server to be distributed for determining and need to be each edge cache clothes to be distributed
The content of business device distribution.
Dispatching Unit, is each side to be distributed for the Distribution Results determined according to the determining unit
Edge caching server is needed as in the edge cache server distribution to be distributed in distributing the content to be distributed
Hold.
During the technique effect of Centroid provided in an embodiment of the present invention may refer to first in above-described embodiment
The technique effect of the first Centroid described in content distribution method that heart node is performed, no longer goes to live in the household of one's in-laws on getting married herein
State.
Further, the Centroid also includes receiving unit,
The receiving unit, the content distribution message for receiving content server transmission, the content distribution
Message includes content identification, content to be distributed the depositing in the content server of the content to be distributed
Storage positional information and the operation statistics.
Further, the Centroid also includes download unit,
The download unit, for the content identification and the storage that are received according to the receiving unit
Positional information, downloads the content to be distributed.
Optionally, it is described operation statistics include at least one reference position information and it is described it is to be distributed in
Hold the visit capacity information in each reference position information, the status information is including every in a CDN
The positional information of individual fringe node.
Further, the determining unit, specifically for:
According to preset rules and the content to be distributed each reference position information visit capacity information, from institute
State the reference position information that at least one mesh is determined in the positional information all referring to fringe node;
One is chosen from the positional information of whole fringe nodes for each purpose reference position information to treat
Distribute the positional information of fringe node, the fringe node to be distributed includes at least one edge cache service
Device;
It is that each fringe node to be distributed determines at least one according to the positional information of each fringe node to be distributed
Individual edge cache server to be distributed.
Further, for the reference bit confidence of the first mesh in the reference position information of at least one mesh
Breath, the determining unit, specifically for:
If there is the positional information of fringe node and the reference bit of first mesh in whole fringe nodes
Confidence manner of breathing is same, then the positional information of the fringe node is defined as the position of the first fringe node to be distributed
Information;
If the positional information of whole fringe nodes is differed with the reference position information of first mesh,
The positional information of the first fringe node to be distributed is then chosen from the positional information of whole fringe nodes,
Wherein, the reference position information of the positional information of the described first fringe node to be distributed and first mesh it
Between distance it is minimum.
Further, the content distribution message also includes that purpose distributes positional information.
Further, the determining unit, be additionally operable to be from the positional information of whole fringe nodes
Each purpose reference position information is chosen after a positional information for fringe node to be distributed, and is being each
Before the positional information of fringe node to be distributed determines at least one edge cache server to be distributed, if purpose
The positional information for distributing fringe node is not contained in the positional information of at least one fringe node to be distributed,
The positional information of purpose distribution fringe node is then defined as the positional information of fringe node to be distributed, institute
Purpose distribution fringe node is stated to be contained in the distribution positional information of the mother.
Further, the status information also includes each the edge cache server in a CDN
The storage of memory space utilization rate, the property value of each edge cache server and each edge cache server
Space values.
Further, for first to be distributed in the positional information of described at least one fringe node to be distributed
For the positional information of fringe node, the determining unit, specifically for:
It is pre- in the visit capacity information of the described first fringe node to be distributed and first according to the content to be distributed
If threshold value, it is determined that need to be the quantity N, N that the described first fringe node to be distributed distributes the content to be distributed
≥1;
According to pre-conditioned, from whole edge cache servers that the described first fringe node to be distributed is included
In, X edge cache server is chosen as candidate edge caching server, wherein, it is described pre-conditioned
For the memory space utilization rate of edge cache server is less than or equal to the second predetermined threshold value, and the edge is slow
The property value of server is deposited less than the 3rd predetermined threshold value, X >=1;
If N >=X, X candidate edge caching server is defined as edge cache server to be distributed;
If N<X, then select N number of candidate edge caching clothes from the X candidate edge caching server
Business device, and N number of candidate edge caching server is defined as edge cache server to be distributed, it is described
N number of candidate edge caching server be the X candidate edge caching server according to free memory from
The top n arrived greatly after small being arranged in order.
Optionally, the operation statistics includes visit capacity of the content to be distributed at least one code check
The visit capacity information of information and the content to be distributed in the full content burst of each code check.
Further, for the first edge cache to be distributed at least one edge cache server to be distributed
Server, the determining unit, specifically 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 described to be distributed
The numerical value that takes up room of content, then according to the content to be distributed at least one code check visit capacity information and
The content to be distributed determines at least one content in the visit capacity information of the full content burst of each code check
It need to be the content of the described first edge cache server distribution to be distributed, at least one content point that burst is
The free memory numerical value of the numerical value equal to the described first edge cache server to be distributed that takes up room of piece;
If the free memory numerical value of the first edge cache server to be distributed is more than or equal to described
The numerical value that takes up room of content to be distributed, then being defined as the content to be distributed need to be for described first is to be distributed
The content of edge cache server distribution.
Further, the determining unit, specifically for:
Choose the code check of visit capacity information maximization;
According to the maximum code check of the visit capacity and the content to be distributed the code check full content burst
Visit capacity information, the content fragment of visit capacity information maximization in the code check is defined as need to be for described first treats
The content of distribution edge cache server distribution, until the first edge cache server to be distributed is available
Memory space numerical value is zero.
Optionally, the operation statistics includes at least one measurement period and the content to be distributed each
The visit capacity information of individual measurement period.
Further, the determining unit, is additionally operable in the Dispatching Unit according to the Distribution Results, is
Each edge cache server to be distributed needs to be taken for the edge cache to be distributed in distributing the content to be distributed
Business device distribution content after, according to the content to be distributed each measurement period visit capacity information, really
The protection period of fixed each to be distributed edge cache server of the content to be distributed in a CDN.
Further, the Centroid also includes transmitting element,
The transmitting element, request is set for being sent to each edge cache server to be distributed, described to set
Described to be distributed content of the message package containing determining unit determination is put in the edge cache server to be distributed
Protection period, the setting message is used to indicating each edge cache server to be distributed to set respectively controlling oneself point
The protection period of content is sent out, the content of having distributed belongs to the content to be distributed.
Further, the receiving unit, is additionally operable in the determining unit according to the Distribution Results, is
Each edge cache server to be distributed needs to be taken for the edge cache to be distributed in distributing the content to be distributed
After the content of business device distribution, and it is determined that each side to be distributed of the content to be distributed in a CDN
Before the protection period of edge caching server, the confirmation for receiving each edge cache server transmission to be distributed disappears
Breath.
Another embodiment of the present invention provides a kind of content server, including acquiring unit and transmitting element.
Specifically, the function that unit module provided in an embodiment of the present invention is realized is specific as follows:
Acquiring unit, for obtaining operation statistics, the operation statistics is in the second content distribution
To the statistics of the visit capacity of content to be distributed in network C DN.
Transmitting element, for the first Centroid transmission content dispatch messages, the content distribution message package
Include the content identification of the content to be distributed, the content to be distributed the content server storage location
Information and the operation statistics, the content distribution message are used to indicate first Centroid to incite somebody to action
The content to be distributed is distributed in a CDN, and first Centroid belongs to a CDN.
The technique effect of content server provided in an embodiment of the present invention may refer to content in above-described embodiment
The technique effect of the content server described in content distribution method that server is performed, here is omitted.
Further, the transmitting element, if specifically for being obtained in local content disposition operation management table
The mark of the 2nd CDN is got, then operation statistics request message is sent to the second Centroid, in described second
Heart node belongs to the 2nd CDN, and local content disposition operation management table includes the mark of the 2nd CDN
Know the mapping relations with the content identification of the content to be distributed, the operation statistics request message is comprising described
The content identification of content to be distributed, the operation statistics request message is used to ask second Centroid to be united
Visit capacity information of the meter analysis content to be distributed in the 2nd CDN.
Further, the content server also includes receiving unit,
The receiving unit, response message, institute are counted for receiving the operation that second Centroid sends
Stating operation statistics response message includes the operation statistics.
Further, the operation statistics request message also includes statistical parameter, and the operation statistical message is used
In ask second Centroid according to the statistical parameter statistical analysis content to be distributed second
Visit capacity information in CDN, the statistical parameter comprising region granular information, code check, timestamp information,
At least one of visit capacity measurement period.
The embodiment of the present invention also provides a kind of content delivering system, including the center as described in above-mentioned any one
At least one side of node, the content server as described in above-mentioned any one and the Centroid management
Edge node, each fringe node is by least one edge cache server group into, the content server and institute
State between Centroid by network connection, pass through between the Centroid and each edge cache server
Network connection.
Specifically, Centroid is the first Centroid.
The technique effect of content delivering system provided in an embodiment of the present invention may refer in above-described embodiment
The technique effect and above-mentioned reality of the first Centroid described in content distribution method that one Centroid is performed
The technique effect of the content server described in the content distribution method of content server execution in example is applied, herein
Repeat no more.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing
Example or the accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, retouch below
Accompanying drawing in stating is some embodiments of the present invention.
Fig. 1 is the network structure of content delivering system;
Fig. 2 is the schematic flow sheet of existing content distribution method;
Fig. 3 is the schematic flow sheet one of content distribution method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet two of the content distribution method of offer in the embodiment of the present invention;
Fig. 5 is the schematic flow sheet three of the content distribution method of offer in the embodiment of the present invention;
Fig. 6 is the schematic flow sheet four of the content distribution method of offer in the embodiment of the present invention;
Fig. 7 is the structural representation one of the Centroid of offer in the embodiment of the present invention;
Fig. 8 is the structural representation two of the Centroid of offer in the embodiment of the present invention;
Fig. 9 is the structural representation three of the Centroid of offer in the embodiment of the present invention;
Figure 10 is the structural representation one of the content server of offer in the embodiment of the present invention;
Figure 11 is the structural representation two of the content server of offer in the embodiment of the present invention;
Figure 12 is the structural representation three of the content server of offer in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, implement below in conjunction with the present invention
Accompanying drawing in example, is clearly and completely described to the technical scheme in the embodiment of the present invention.
Term " first ", " second ", " in description and claims of this specification and above-mentioned accompanying drawing
Three " and " the 4th " etc. is for distinguishing different objects, rather than for limiting particular order.Additionally, art
Language " comprising " and " having " and their any deformations, it is intended that covering is non-exclusive to be included.For example
Process, method, system, product or the equipment for containing series of steps or unit are not limited to list
The step of or unit, but alternatively also include the step of do not list or unit, or alternatively also include it is right
In these processes, method, product or other intrinsic steps of equipment or unit.
Below describe in, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface,
The detail of technology etc, to cut the understanding present invention thoroughly.However, those skilled in the art should be clear
Chu, can also realize the present invention in the other embodiments without these details.In other situations,
The detailed description to well-known device, circuit and method is omitted, in case unnecessary details hinders this
The description of invention.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents
There may be three kinds of relations, for example, A and/or B, can represent:Individualism A, while there is A
And B, individualism B these three situations.In addition, character "/" herein, typicallys represent forward-backward correlation pair
As if a kind of relation of "or".
Fig. 1 is the network structure of content delivering system.Referring to Fig. 1, the content delivering system includes content
Server 10 and one or more CDN11.Wherein, pass through between CDN11 and content server 10
Network connection.
Optionally, content server 10 can be serviced for content supplier (CP, Content Provider)
Device, or service provider (SP, Service Provider) server.
CDN11 includes Centroid 110 and one or more fringe nodes with the connection of Centroid 110
111.Wherein, network connection is passed through between Centroid 110 and fringe node 111.Each fringe node
Include one or more edge cache servers 112.
Centroid 110 has the functions, energy such as management content, Scheduling content, cache contents and distribution content
Enough know the geographical location information of all fringe nodes 111, the storage letter of all edge cache servers 112
The information such as breath and service state.
Content server 10 is mainly used in the transmission content dispatch messages of Centroid 110 in CDN11,
For Deictic Center node 110 according to the content identification of content to be distributed in content distribution message, will be to be distributed
Content is distributed in the CDN11 that the Centroid 110 belongs to.
Wherein, the self maintained of content server 10 has content disposition operation management table, content disposition operation
Include content identification, CDN marks, the parameter such as moment and offline moment of reaching the standard grade in management table, wherein,
CDN identifies the CDN for indicating distribution to have content corresponding with content identification.
Centroid 110 be mainly used in receive content server 10 send content distribution message, and according to
Storage location information in the content distribution message for receiving, downloads content to be distributed.Centroid 110 is also
For the content distribution to be distributed that determines to get to which edge cache server 112, and for root
The content identification that the operation statistics request bag sent according to content server 10 contains, analysing content mark is indicated
Visit capacity information of the content in CDN11.
There is the content protecting phase in the content distributed in CDN.Wherein, the content protecting phase is CDN to new deployment
Content on to system 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 Centroid gets content to be distributed from CP servers/SP servers, network is triggered
In one of caching server in each fringe node download a content to be distributed, with realizing network
All fringe nodes are stored with a content to be distributed.
(2) after Centroid gets content to be distributed from CP servers/SP servers, Centroid
According to the purpose distribution position letter included in the content distribution task message that CP servers/SP servers send
Breath, determines to be distributed in the caching server that fringe node corresponding with purpose distribution positional information is included
Caching server, and trigger caching server to be distributed and download a content to be distributed, to realize treating point
A content to be distributed is stored in the caching server of hair.
Specifically, as shown in Fig. 2 above-mentioned second content distribution method is specially:
1st, the Centroid transmission content dispatch messages that content server is included to CDN, wherein, the content
The storage location of content identification, to be distributed content of the dispatch messages comprising content to be distributed in content server
Information and purpose distribution positional information.
2nd, Centroid distributes positional information according to purpose, at edge corresponding with purpose distribution positional information
The selection edge cache server that memory space utilization rate is minimum, service state is best is used as to be distributed in node
Caching server.
3rd, all caching servers to be distributed of Centroid triggering download content to be distributed.
4th, after content to be distributed is downloaded and terminated by each caching server to be distributed, sent to Centroid
Confirmation message.
5th, Centroid sends to each caching server to be distributed and includes the default content protecting phase
Set message, with cause each caching server to be distributed to download the default content protecting of curriculum offering
Phase.
Above-mentioned CDN content distribution method can be realized content distribution to be distributed to network " edge ", but
For each edge cache server for getting content to be distributed, the edge cache server storage
Content to be distributed is possible to meet the requirements for access of user, and then causes edge cache server access
Carry.
Specifically, the visit capacity of content has following feature on different dimensions:
1st, visit capacity having differences property of the content in different regions.
The reasons such as the cultural difference due to different regions user, the visit capacity of different content in each department is that have
Difference.For example, the data of certain Video Applications statistics are:First three area of the visit capacity highest of film X
Be respectively A ground, B and C ground, and first three area of the visit capacity highest of film Y be respectively L,
M ground and N ground.
Serviced nearby to provide the user as much as possible, when content distribution is carried out, it should preferential by content
It is distributed to that visit capacity is high, i.e. the big region of user's request, and general visit capacity is bigger, the distribution number of content
Amount should be more, to tackle the pressure for concurrently accessing.
2nd, the visit capacity of content changes over time having differences property.
After content is reached the standard grade, its visit capacity typically follows the process for first rising and then declining, and this is from rising to down
The time cycle of drop is referred to as the visit capacity damped cycle of content.The visit capacity damped cycle of different content is to differ
Sample, visit capacity rising declines also fast soon after some contents are reached the standard grade, and visit capacity rises after some contents are reached the standard grade
It is relatively slow, but the time that visit capacity retains is also long, that is, and what is declined is also very slow.
When content distribution is carried out, more satisfactory situation is the visit capacity damped cycle according to content to be set
The different protection periods, so can both prevent visit capacity from rising but cross what the content of protection period was eliminated
Situation, it is also possible to prevent visit capacity from having become very low but also in the protection period content and still occupy caching sky
Between situation.
3rd, visit capacity having differences property of the content on different code checks and different time stamp
Due to the complexity of network environment, for streaming medium content, can typically there is various code rate,
Ensure the fluency of streaming medium content transmission in transmission by switching code rate.
Additionally, current HTTP (HTTP, Hypertext Transfer Protocol) is general
Require and streaming medium content be cut into many content fragments of short time (such as 10 seconds, one minute etc.),
Each content can burst have a timestamp, be used to refer to the content fragment relative to streaming medium content rise
The time of beginning.
From code check, user is not uniform to the visit capacity of every kind of code check, there is dividing for cold and hot code check.
From timestamp, user is also uneven to the access on content each timestamp, and user is not always
From the beginning content is seen into tail, some contents may the most of parts that only have viewed beginning, some possibility
It is the part that have viewed beginning or ending.
When streaming medium content is distributed, it should preferential by visit capacity code check high and visit capacity period high
Content fragment be distributed to fringe node and stored.
For the problem that content distribution method in the prior art is present, the embodiment of the present invention is based on the access of content
The feature measured in different dimensions provides a kind of content distribution method, apparatus and system, disappears by content distribution
Increase the visit capacity information of content to be distributed different dimensions in the 2nd CDN in breath, that is, increase in be distributed
Hold the operation statistics of the different dimensions in the 2nd CDN so that distribute in a CDN in be distributed
Rong Shi, can accurately calculate edge cache server to be distributed and each edge cache server to be distributed
The content of storage, so as to the problem for avoiding edge cache server access from overloading, can better meet user
Requirements for access.
Embodiment one
Fig. 3 is a kind of schematic flow sheet of content distribution method provided in an embodiment of the present invention, the content distribution
Method can be applied in the application scenarios shown in Fig. 1.
Referring to Fig. 3, the content distribution method includes:
S100, content server obtain operation statistics.
Wherein, operation statistics is the statistics of the visit capacity in the 2nd CDN to content to be distributed.
S101, content server send to the first Centroid to be included the content identification of content to be distributed, treats point
Hair content is in the storage location information of content server and the content distribution message of operation statistics.
Wherein, content distribution message is used to indicate the first Centroid by content to be distributed in a CDN
Distribution, the first Centroid belongs to a CDN.
S102, the first Centroid download content to be distributed according to content identification and storage location information.
First Centroid downloads content to be distributed from content server, the process and existing Centroid from
The process that content to be distributed is downloaded in content server is identical, is no longer described in detail herein.
The whole fringe nodes of S103, the first Centroid in operation statistics and a CDN
Status information, at least one edge cache server to be distributed for being determined and need to be each edge to be distributed
The content of caching server distribution.
S104, the first Centroid for each edge cache server to be distributed distribute need in content to be distributed for
The content of the edge cache server distribution to be distributed.
Generally, content server self maintained has content disposition operation management table, content disposition fortune
Include content identification, CDN marks, the parameter such as moment and offline moment of reaching the standard grade in battalion's management table, its
In, CDN identifies the CDN for indicating distribution to have content corresponding with content identification.
Content server performs S100, obtains operation statistics.
Specifically, content distribution operation of the content server in response to keeper, inquires about local content disposition
Whether the content identification of to be distributed content is included in operation management table, and the content distribution operation of keeper is to use
The first Centroid in triggering content server transmission content dispatch messages are to a CDN, in order to
First Centroid distributes content to be distributed in a CDN.
If there is the content identification of content to be distributed in content disposition operation management table, content server is obtained
CDN marks corresponding with the content identification of content to be distributed, that is, obtain the 2nd CDN marks.
If in the absence of the content identification of content to be distributed in content disposition operation management table, content server is pressed
Corresponding steps are performed according to existing content distribution method.
Wherein, local content disposition operation management table includes the mark and content to be distributed of the 2nd CDN
The mapping relations of content identification.
It is understood that due to content distribution operation be for trigger in a CDN will it is to be distributed in
Hold distribution, illustrate never to distribute content to be distributed in a CDN.Content disposition fortune in content server
What is recorded in battalion's management table is to have distributed what content in which CDN, therefore, if content disposition operation
There is the content identification of content to be distributed in management table, then illustrate content to be distributed in other CDN
Distribution, and the CDN is different from a CDN.
Specifically, content server sends the fortune of the content identification comprising content to be distributed to the second Centroid
Battalion's statistics request message, for the second Centroid statistical analysis content to be distributed of request in the 2nd CDN
Visit capacity information.Wherein, the second Centroid belongs to the 2nd CDN.
Further, operation statistics request message also includes statistical parameter, and operation statistics request message is used for
Ask visit capacity of second Centroid according to statistical parameter statistical analysis content to be distributed in the 2nd CDN
Information.
Preferably, the statistical parameter in the embodiment of the present invention includes region granular information, code check, timestamp letter
At least one of breath, visit capacity measurement period.
Wherein, region granular information refers to the region granularity of regional information statistics, such as with " province " for unit,
Or with " city " for unit.Code check refers to the code check of content.Timestamp information refers to statistics streaming medium content
Time granularity when measuring distribution is accessed on timestamp, for example, statistics access was carried out in units of 10 minutes
Amount.Visit capacity measurement period refers to the time cycle for counting visit capacity, such as 24 hours.
Wherein, the Centroid in the embodiment of the present invention is provided with statistics default parameters in advance, the Centroid
It can be the first Centroid, or the second Centroid.
If specifically, do not include statistical parameter in operation statistics request message, the second Centroid according to
Visit capacity information of the statistics default parameters statistical analysis content to be distributed in the 2nd CDN.
Because content to be distributed is distributed in the 2nd CDN, therefore the second Centroid can be calculated
The visit capacity information of content to be distributed each dimension in the 2nd CDN, i.e. the second Centroid can be calculated
Go out to run statistics.The operation statistics that second Centroid will be calculated sends to content server,
So, content server can get operation statistics.
If including statistical parameter in statistics request message, corresponding to statistical parameter, statistical data packet is runed
Including distribution in the 2nd CDN has the visit capacity information, to be distributed of each reference position information of content to be distributed
Content the visit capacity information of at least one code check, content to be distributed each code check full content burst
The visit capacity information of visit capacity information and content to be distributed in each measurement period.
Accordingly, content server performs S101, to the first centromere after operation statistics is got
Point send include the content identification of content to be distributed, content to be distributed content server storage location information
And the content distribution message of operation statistics.
Optionally, content distribution message can also include that purpose distributes positional information and/or default content protecting
Phase.
First Centroid after content distribution message is received, according to content identification and storage location information,
Content to be distributed is downloaded, that is, performs S102.
First Centroid downloads the process of content to be distributed and existing Centroid is downloaded from content server
The process of content to be distributed is identical, is no longer described in detail herein.
First Centroid get content to be distributed and operation statistics after, according to operation statistics
With the status information of the whole fringe nodes in a CDN, at least one edge to be distributed for being determined
Caching server and the content that need to be each edge cache server distribution to be distributed, that is, perform S103.
Wherein, the status information in the embodiment of the present invention includes the position of each fringe node in a CDN
Confidence breath, the memory space utilization rate of each edge cache server, the attribute of each edge cache server
The memory space numerical value of value and each edge cache server.The property value of edge cache server is used to show
Whether the operation of edge cache server is normal, and the property value can be the center treatment of edge cache server
Device (CPU, Central Processing Unit) occupancy.
If specifically, operation statistics includes at least one reference position information and described to be distributed interior
Hold the visit capacity information in each reference position information, then the first Centroid is according to operation statistics and the
The status information of the whole fringe nodes in one CDN, determines at least one edge cache server to be distributed
Process be:
1st, the first Centroid according to preset rules and content to be distributed each reference position information access
Amount information, determines the reference bit confidence of at least one mesh from the positional information all referring to fringe node
Breath.
Wherein, preset rules can be to choose reference position information of the visit capacity more than requesting threshold, also may be used
Several reference position information above are chosen successively with for the order according to visit capacity information from big to small, this
Inventive embodiments are not especially limited to this.
2nd, the first Centroid is each purpose reference position information from the positional information of whole fringe nodes
Choose a positional information for 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 Centroid is determined according to operation statistics, Neng Gouwei
Distribute content to be distributed in a CDN to refer to, therefore, the first Centroid is needed according to a CDN
In whole fringe nodes positional information, be that each purpose reference position information determines an edge to be distributed
The positional information of node.
Further, if content distribution message also includes that purpose distributes positional information, illustrates the first centromere
Point must for the purpose of the purpose distribution fringe node distributed included by positional information distribute content to be distributed.If
The positional information of purpose distribution fringe node is not contained in the position letter of at least one fringe node to be distributed
In breath, then the positional information of purpose distribution fringe node is defined as fringe node to be distributed by the first Centroid
Positional information.
3rd, the first Centroid, according to the positional information of each fringe node to be distributed, is each side to be distributed
Edge node determines at least one edge cache server to be distributed.
Specifically, for each the edge section to be distributed in the positional information of at least one fringe node to be distributed
For the positional information of point, the condition that the first Centroid chooses edge cache server foundation to be distributed is:
The memory space utilization rate of edge cache server is less than or equal to the second predetermined threshold value, edge cache server
Property value be less than the 3rd predetermined threshold value, and edge cache server to be distributed quantity be less than or equal to content
Copy amount.
Wherein, piece of content is stored in edge cache server and is referred to as a copy, edge cache server is deposited
Many parts of contents of storage, cope with the pressure for concurrently accessing.
For the position of the first fringe node to be distributed in the positional information of at least one fringe node to be distributed
For confidence breath, the first Centroid, according to the positional information of the first fringe node to be distributed, is first to treat point
Hair fringe node determines that the process of at least one edge cache server to be distributed is:
A, the first Centroid according to content to be distributed in the visit capacity information of the first fringe node to be distributed and
First predetermined threshold value, it is determined that need to be the quantity N that the first fringe node to be distributed distributes content to be distributed, N >=1.
Preferably, the first predetermined threshold value is requesting threshold, wherein, requesting threshold can rule of thumb enter
Row is set, and the embodiment of the present invention is not especially limited to this.For example by content in a CDN all sides
The average access amount information of edge node is used as requesting threshold.
B, the first Centroid according to pre-conditioned, from whole edges that the first fringe node to be distributed is included
In caching server, X edge cache server is chosen as candidate edge caching server, wherein, in advance
If condition is less than or equal to the second predetermined threshold value, and edge for the memory space utilization rate of edge cache server
The property value of caching server is less than the 3rd predetermined threshold value, X >=1.
If C, N >=X, be defined as X candidate edge caching server to be distributed by the first Centroid
Edge cache server.
It is understood that first edge node N parts of content to be distributed of distribution is if desired given, and the first center
Node selects X candidate edge caching in all edge cache servers that first edge node is included
Server, and N >=X, then need all candidate edge caching servers that will select as to be distributed
Edge cache server.
If D, N<X, then the first Centroid selected from X candidate edge caching server N number of
Candidate edge caching server, and N number of candidate edge caching server is defined as edge cache clothes to be distributed
Business device, N number of candidate edge caching server is X candidate edge caching server according to free memory
Top n after being arranged in order from big to small.
It is understood that the quantity of candidate edge caching server that the first Centroid is selected is more than in
Hold copy amount, then need to be chosen again from candidate edge caching server, treated in order to final determination
Distribution edge cache server.
If specifically, not including at least one reference position information and described to be distributed in operation statistics
Content each reference position information visit capacity information, then the first Centroid determine edge cache to be distributed
The method of server and the method that the first Centroid determines edge cache server to be distributed in the prior art
It is identical, no longer it is described in detail herein.
Further, after first node determines at least one edge cache server to be distributed, it is determined that needing
For the content that each edge cache server to be distributed is distributed.
If specifically, operation statistics include content to be distributed at least one code check visit capacity information and
Content to be distributed the full content burst of each code check visit capacity information, then it is to be distributed at least one
The first edge cache server to be distributed in edge cache server, the first Centroid determines need to be first
The method of the content of edge cache server to be distributed distribution is:
A, the first Centroid determine the free memory numerical value of the first edge cache server to be distributed.
First Centroid manages all fringe nodes and all edge cache servers in a CDN, because
This, the first Centroid can in advance know the free memory number of the first edge cache server to be distributed
Value.
If the free memory numerical value of B, the first edge cache server to be distributed is less than content to be distributed
Take up room numerical value, then the first Centroid according to content to be distributed at least one code check visit capacity information
With content to be distributed in the visit capacity information of the full content burst of each code check, at least one content point is determined
It need to be the content of the first edge cache server distribution to be distributed that piece is, wherein, at least one content fragment
The numerical value that takes up room is equal to the free memory numerical value of the first edge cache server to be distributed.
If it is understood that the free memory numerical value of the first edge cache server to be distributed is less than treating
Distribute the numerical value that takes up room of content, then illustrate that the first edge cache server to be distributed is only capable of storage part point
Content to be distributed.Therefore, visit capacity letter of first Centroid according to each content fragment in content to be distributed
Breath, is the first edge cache server-assignment visit capacity information highest content fragment to be distributed.
Specifically, visit capacity of first Centroid first according to content to be distributed at least one code check is believed
Breath, determines the code check of visit capacity information maximization, and then, the first Centroid is chosen and visited in same code check
The content fragment of the amount of asking information maximization, the first Centroid selects each content in this order, one by one
Burst, until take up room numerical value and the first edge cache server to be distributed of the content fragment of selection can
It is identical with memory space numerical value, i.e., until the free memory numerical value of the first edge cache server to be distributed
It is zero.
If the free memory numerical value of C, the first edge cache server to be distributed is more than or equal to be distributed
The numerical value that takes up room of content, then it need to be the first side to be distributed that be defined as content to be distributed by the first Centroid
The content of edge caching server distribution.
If it is understood that the free memory numerical value of the first edge cache server to be distributed be more than or
Equal to the numerical value that takes up room of content to be distributed, then illustrate that the first edge cache server to be distributed can be stored
Whole contents to be distributed, therefore, it need to be the first side to be distributed that be defined as content to be distributed by the first Centroid
The content of edge caching server distribution.
First Centroid determines at least one edge cache server to be distributed and need to be that each is to be distributed
After the content of edge cache server distribution, S104 is performed, the first Centroid is slow for each edge to be distributed
Depositing during server distributes content to be distributed needs to be the content of the edge cache server distribution to be distributed.
The embodiment of the present invention provides a kind of content distribution method, and operation statistical number is increased in content distribution message
According to operation statistics is the statistics of the visit capacity in the 2nd CDN to content to be distributed, the fortune
Battalion's statistics can truly reflect the visit capacity information of content to be distributed different dimensions in the 2nd CDN,
So that the first Centroid refers at least one of the operation statistics, the CDN for determining and treats
Distribution edge cache server and need to be that the content distribution of each edge cache server to be distributed distribution is treated point
Hair content also can really and accurately reflect visit capacity information of the content to be distributed in a CDN, so, no
The memory space utilization rate of each edge cache server to be distributed is improve only, and disclosure satisfy that user's
Requirements for access, solves the problems, such as that edge cache server access in the prior art is overloaded.
Embodiment two
Fig. 4 is a kind of schematic flow sheet of content distribution method provided in an embodiment of the present invention, the content distribution
Method can be applied in the application scenarios shown in Fig. 1.
Referring to Fig. 4, the content distribution method includes:
S200, content server inquire about local content disposition fortune in response to the content distribution operation of keeper
Whether the content identification of to be distributed content is included in battalion's management table.
Specifically, content server can get the content mark of content to be distributed according to content distribution operation
Know, storage location information of the content to be distributed in content server, and/or purpose distribution positional information and
/ or the default content protecting cycle.
Wherein, content identification can be Content identity mark (ID, Identity), or content name,
The embodiment of the present invention is not especially limited to this.
Exemplary, content server is according to the content identification that content distribution operation gets content to be distributed
0110jmvod02, purpose distribution positional information is " Beijing ";The default content protecting cycle is 24 hours.
Generally, content server self maintained has content disposition operation management table, content disposition fortune
Include content identification, CDN marks, the parameter such as moment and offline moment of reaching the standard grade in battalion's management table, its
In, CDN identifies the CDN for indicating distribution to have content corresponding with content identification.
Specifically, after content server gets the content identification of content to be distributed according to content distribution operation,
Whether the content identification of to be distributed content is included in the local content disposition operation management table of inquiry.
If include the content identification of content to be distributed in content disposition operation management table, and with content to be distributed
The corresponding CDN of content identification be designated the 2nd CDN mark, then content server can be according to second
CDN gets the statistics of the visit capacity to content to be distributed in the 2nd CDN.
If the content identification not comprising content to be distributed, content server root in content disposition operation management table
Respective handling is carried out according to existing content distribution method.
If there is the content identification of content to be distributed, content service in S201, content disposition operation management table
Device obtains 2nd CDN marks corresponding with the content identification of content to be distributed.
S202, content server send the operation of the content identification comprising content to be distributed to the second Centroid
Statistics request message.
Wherein, the second Centroid belongs to the 2nd CDN.Operation statistics request message is used to ask in second
Heart node statistics analyze visit capacity information of the content to be distributed in the 2nd CDN.
Further, operation statistics request message also includes statistical parameter, and operation statistics request message is used for
Ask visit capacity of second Centroid according to statistical parameter statistical analysis content to be distributed in the 2nd CDN
Information.
Preferably, the statistical parameter in the embodiment of the present invention includes region granular information, code check, timestamp letter
At least one of breath, visit capacity measurement period.
Exemplary, the statistics request message that content server sends includes:Content ID be 0110jmvod02,
Region granular information is city, code check for 3 Mbytes (MB, Megabytes) and 1MB, timestamp are 20
Minute, measurement period are 24 hours.
S203, the second Centroid send to content server includes that the operation for runing statistics counts response
Message.
Because content to be distributed is distributed in the 2nd CDN, therefore the second Centroid can be calculated
The visit capacity information of content to be distributed each dimension in the 2nd CDN, i.e. the second Centroid can be calculated
Go out to run statistics.Second Centroid sends to content server includes that the operation for runing statistics is united
Meter response message.
Wherein, the Centroid in the embodiment of the present invention is provided with statistics default parameters in advance, the Centroid
It can be the first Centroid, or the second Centroid.
If specifically, do not include statistical parameter in operation statistics request message, the second Centroid according to
Visit capacity information of the statistics default parameters statistical analysis content to be distributed in the 2nd CDN.Accordingly,
Two Centroids count the operation statistics in response message to the operation that content server sends
Meter default parameters is corresponding.
If including statistical parameter in operation statistics request message, the operation system in operation statistics response message
It is the statistical parameter configuration in operation statistics request message to count.
Preferably, operation statistics includes that content to be distributed is believed in the visit capacity of each reference position information
Breath, content to be distributed the visit capacity information of at least one code check, content to be distributed each code check whole
The visit capacity information and content to be distributed of content fragment in the visit capacity information of each measurement period at least
One.
Exemplary, the second Centroid includes following to the operation statistics response message that content server sends
Content:
Content server counts response message and knows content identification in 0110jmvod02 according to above-mentioned operation
First five statistics held in the visit capacity information of Law Firm Suzhou Jiangsu and Tianjin, the content in Law Firm Suzhou Jiangsu and Tianjin is all
In visit capacity information, the content of phase three content fragments Law Firm Suzhou Jiangsu and Tianjin visit capacity information, with
And the content of different code checks is in the visit capacity information of Law Firm Suzhou Jiangsu and Tianjin.
S204, content server send to the first Centroid to be included the content identification of content to be distributed, treats point
Hair content is in the storage location information of content server and the content distribution message of operation statistics.
S205, the first Centroid download content to be distributed according to content identification and storage location information.
S204-S205 is identical with the S101-S102 in embodiment one in the embodiment of the present invention, no longer enters herein
Row is described in detail.
The whole fringe nodes of S206, the first Centroid in operation statistics and a CDN
Status information, at least one edge cache server to be distributed for being determined and need to be each edge to be distributed
The content of caching server distribution.
Specifically, the first Centroid is according to operation statistics, from whole fringe nodes of a CDN
It is middle to determine fringe node to be distributed, then at least one edge to be distributed is determined from each fringe node to be distributed
Caching server, and for each edge cache server to be distributed determines need to be the edge cache service to be distributed
The content of device distribution.
First Centroid determines at least one edge cache server to be distributed and need to be each side to be distributed
The detailed process of the content of edge caching server distribution, refer to follow-up explanation.
It need to be itself distribution that S207, the first Centroid trigger each edge cache server to be distributed to be downloaded
Content.
After S208, each edge cache server to be distributed will terminate for the content download of itself distribution, to
First Centroid sends confirmation message.
Each edge cache server to be distributed will be after the content download itself distributed terminates, in first
Heart node sends confirmation message, determines content distribution to be distributed success in order to the first Centroid.
S209, the first Centroid determine that each edge to be distributed of content to be distributed in a CDN delays
Deposit the protection period of server.
There is the content protecting phase in the content distributed in CDN, the content protecting device is to carry out pressure guarantor to content
Shield makes the time cycle that it is not eliminated.
If specifically, operation statistics includes that at least one measurement period and content to be distributed are counted at each
The visit capacity information in cycle, then the first Centroid according to content to be distributed each measurement period visit capacity
Information, determines the protection week of the content to be distributed edge cache server to be distributed of each in a CDN
Phase.
Optionally, the first Centroid can choose previous measurement period that visit capacity declines first as interior
Hold the protection period.
Exemplary, in the examples described above, content identification is the content of 0110jmvod02 at " Law Firm Suzhou Jiangsu "
The visit capacity of each measurement period decline appear in the 4th day first, then the first Centroid sets the content
It it is (4-1) × 24=72 hours in the content protecting phase of " Law Firm Suzhou Jiangsu ".Content identification is 0110jmvod02
Content decline first in the visit capacity of each measurement period of " Tianjin " and appear in the 3rd day, then in first
Heart node set the content " Tianjin " the content protecting phase be (3-1) × 24=48 hours.
Further, if content distribution message includes the default content protecting phase, the first Centroid will
Itself determine content to be distributed each edge cache server to be distributed the content protecting phase according to preset
The content protecting phase be modified.
Optionally, the first Centroid can be protected using the content protecting phase more long access time as final content
The shield phase.
Exemplary, if the default content protecting phase is 24 hours, the first Centroid access time is more long
The content protecting phase as the final content protecting phase, then content identification is the content of 0110jmvod02 in " river
The content protecting phase of Su Suzhou " is finally 72 hours, and the content protecting phase in " Tianjin " is finally 48 small
When.
If operation statistics does not include at least one measurement period and content to be distributed in each measurement period
Visit capacity information, then the first Centroid determine that each of content to be distributed in a CDN is to be distributed
The protection period of edge cache server is the default content protecting phase.
Exemplary, in above-mentioned example, in " Tianjin " area, content identification is interior for 0110jmvod02's
The visit capacity of appearance declined suddenly at the 3rd day, and content can be avoided still to be forced at the 3rd day in this way
Occupy caching.
S210, the first Centroid send to each edge cache server to be distributed and exist comprising content to be distributed
The setting request of the protection period of the edge cache server to be distributed.
Request is set and distributes the guarantor of content for indicating each edge cache server setting to be distributed respectively to control oneself
The shield cycle, wherein, distribute content and belong to content to be distributed.
As can be seen that the first Centroid is the change of the actual access amount according to content in the embodiment of the present invention
To determine the content protecting phase, so, can both prevent visit capacity from rising but cross the content of protection period
Situation about being eliminated, it is also possible to prevent visit capacity from having become very low but also in the protection period content and still account for
According to the situation of spatial cache.
The embodiment of the present invention provides a kind of content distribution method, increases to be distributed by content distribution message
The visit capacity information of content different dimensions in the 2nd CDN, that is, increase content to be distributed in the 2nd CDN
The operation statistics of different dimensions so that when distributing content to be distributed in a CDN, can be accurate
The content for calculating edge cache server to be distributed and each edge cache server storage to be distributed, from
And the problem for avoiding edge cache server access from overloading, the requirements for access of user can be better met.
In the embodiment of the present invention the first Centroid perform S206 when, if operation statistics include to
Few reference position information and content to be distributed each reference position information visit capacity information, then the
The status information of whole fringe nodes of one Centroid in operation statistics and a CDN, really
Fixed at least one edge cache server to be distributed.
Specifically, as shown in figure 5, the first Centroid determines at least one edge cache server to be distributed
Method be:
S206a, the first Centroid are according to preset rules and content to be distributed in each reference position information
Visit capacity information, determines the reference position information of at least one mesh from all referring to positional information.
Wherein, preset rules can be to choose reference position information of the visit capacity more than requesting threshold, also may be used
Several reference position information above are chosen successively with for the order according to visit capacity information from big to small, this
Inventive embodiments are not especially limited to this.
Exemplary, if requesting threshold is 3000000, the first Centroid determines " river in above-mentioned example
Su Suzhou " and " Tianjin " are purpose reference position information.
S206b, the reference position information for the first mesh in the reference position information of at least one mesh, the
One Centroid judge in whole fringe nodes of a CDN with the presence or absence of fringe node positional information with
The reference position information of the first mesh is identical.
Wherein, the reference position information of the first mesh is any one in the reference position information of at least one mesh
It is individual.
Because purpose reference position information is that the first Centroid is selected according to operation statistics, and the
One Centroid is to be distributed content to be distributed in a CDN, therefore, the first Centroid
Need to judge to whether there is and purpose reference position information identical fringe node in a CDN.
If S206c, in the presence of, the first Centroid by the reference position information identical edge with the first mesh
The positional information of node is defined as the positional information of the first fringe node to be distributed.
If S206d, not existing, the first Centroid chosen from the positional information of whole fringe nodes with
The minimum fringe node of the distance between reference position information of first mesh is used as the first fringe node to be distributed.
Exemplary, the positional information of the fringe node in a CDN is:" Tianjin ", " Beijing " and " river
Southern Jiangsu capital ", the first Centroid determine purpose reference position information be:" Tianjin " and " Law Firm Suzhou Jiangsu ".
Have " Tianjin " in the fringe node positional information of the first CDN, therefore, the first Centroid is by " Tianjin "
It is defined as the positional information of fringe node to be distributed.Be can not find in the fringe node positional information of the first CDN
" Law Firm Suzhou Jiangsu ", therefore " Nanjing " determination that the first Centroid will be nearest with " Law Firm Suzhou Jiangsu "
It is fringe node positional information to be distributed.
If S206e, content distribution message also include that purpose distributes positional information, the first Centroid judges
Whether the positional information of purpose distribution fringe node is contained in the fringe node to be distributed of previous step determination
Positional information in.
Wherein, purpose distribution fringe node is contained in purpose distribution positional information.
If the positional information of S206f, purpose distribution fringe node is not contained in treating point for previous step determination
Send out in the positional information of fringe node, then the first Centroid is true by the positional information of purpose distribution fringe node
It is set to the positional information of fringe node to be distributed.
If the positional information of S206g, purpose distribution fringe node is contained in the to be distributed of previous step determination
In the positional information of fringe node, then the positional information of the fringe node to be distributed that previous step determines is final
The positional information of the fringe node to be distributed for determining.
If it is understood that content distribution message includes that purpose distributes positional information, illustrating in first
Heart node must be distributed in all purposes distribution fringe node that purpose distribution positional information is included to be treated point
Hair content.If the first Centroid does not include mesh in the fringe node to be distributed with reference to operation statistics determination
Distribution fringe node, then the first Centroid need by purpose distribution fringe node positional information also determine
It is the positional information of fringe node to be distributed.
Exemplary, distribute positional information, purpose distribution positional information comprising purpose in content distribution message
It is " Beijing ", and the positional information of the fringe node to be distributed that the first Centroid determines in above-mentioned steps
It is " Nanjing " and " Tianjin ", not including " Beijing ", therefore, the first Centroid is by " Beijing "
Also it is defined as the positional information of fringe node to be distributed.
S206h, for the first edge section to be distributed in the positional information of at least one fringe node to be distributed
The positional information of point, the first Centroid determines need to be that the first fringe node to be distributed distributes content to be distributed
Quantity N, N >=1.
Wherein, the first fringe node to be distributed is any one at least one fringe node to be distributed,
One predetermined threshold value can be requesting threshold.
Each fringe node to be distributed can store at least a content to be distributed, the first Centroid it is determined that
After going out fringe node to be distributed, it is determined that need to be the quantity that each fringe node to be distributed distributes content to be distributed
N。
Optionally, visit capacity of first Centroid according to content to be distributed in the first fringe node to be distributed is believed
Breath and the first predetermined threshold value, determine N.
If it should be noted that distribute positional information for the purpose of the positional information of the first Centroid, and this
One Centroid is not belonging to the 2nd CDN, then the first Centroid using existing content distribution method come really
Surely need to be the quantity of the first Centroid distribution content to be distributed.
Exemplary, if requesting threshold is 3000000, it need to be " Tianjin " that the first Centroid determines
Distribute the quantity of content to be distributed for 3000000/3000000=1, need to for " Nanjing " distribute it is to be distributed
The quantity of content refers to " Law Firm Suzhou Jiangsu " 10000000/3000000=3.
Wherein, the quantity of content to be distributed is also referred to as copy amount.
S206i, the first Centroid according to pre-conditioned, from the whole that the first fringe node to be distributed is included
In edge cache server, X edge cache server is chosen as candidate edge caching server.
Wherein, the pre-conditioned memory space utilization rate for edge cache server is preset less than or equal to second
Threshold value, and the property value of edge cache server is less than the 3rd predetermined threshold value, X >=1.
If S206j, N >=X, X candidate edge caching server is defined as treating point by the first Centroid
Hair side edge caching server.
If S206k, N<X, then the first Centroid select N from X candidate edge caching server
Individual candidate edge caching server, and N number of candidate edge caching server is defined as edge cache to be distributed
Server, N number of candidate edge caching server is X candidate edge caching server empty according to available storage
Between be arranged in order from big to small after top n.
Exemplary, if " Nanjing " and " Tianjin " each remaining 2 and 5 candidate edge caching clothes
Business device, the copy amount of " Nanjing " and " Tianjin " is respectively 3 and 1." Nanjing "
The quantity 2 of candidate edge caching server is less than the copy amount 3 of " Nanjing ", therefore, in first
Heart node directly takes 2 candidate edge caching servers of " Nanjing " as edge cache to be distributed
Business device.The quantity 5 of the candidate edge caching server of " Tianjin " is more than the copy amount 1 of " Tianjin ", because
This, the first Centroid selects memory space to utilize from 5 candidate edge caching servers of " Tianjin "
1 minimum edge cache server of rate is used as edge cache server to be distributed.For " Beijing ", by
Content to be distributed cannot be known in " Beijing " visit capacity information in the first Centroid, therefore, the first center
Node can select space utilisation minimum according to existing content distribution method, the best edge of service state
Caching server is used as edge cache server to be distributed.
Further, in the embodiment of the present invention the first Centroid perform S206 when, if operation statistical number
Include content to be distributed in the visit capacity information of at least one code check and treat point according to including runing statistics
In the visit capacity information of the full content burst of each code check, then the first Centroid is according to operation system for hair content
The free memory numerical value with each edge cache server in a CDN is counted, it is determined that need to be every
The content of individual edge cache server distribution to be distributed.
Specifically, as shown in fig. 6, being treated point for first at least one edge cache server to be distributed
Hair side edge caching server, the first edge cache server to be distributed is at least one edge cache clothes to be distributed
Any one in business device, the first Centroid determines need to be the first edge cache server to be distributed distribution
The method of content is:
S206w, the first Centroid determine the free memory number of the first edge cache server to be distributed
Value.
Specifically, free memory=the first edge to be distributed of the first edge cache server to be distributed delays
Deposit server total memory space × space availability ratio threshold value-the first edge cache server to be distributed it is current
Memory space is used.
S206x, the first Centroid judge the free memory number of the first edge cache server to be distributed
Whether value is more than the numerical value that takes up room of content to be distributed.
If the free memory numerical value of S206y, the first edge cache server to be distributed is more than or equal to treating
Distribute the numerical value that takes up room of content, be then defined as content to be distributed need to be for first treats point the first Centroid
The content of hair side edge caching server distribution.
If the free memory numerical value of S206z, the first edge cache server to be distributed is interior less than to be distributed
The numerical value that takes up room for holding, then the first Centroid choose the code check of visit capacity information maximization, and same
In code check, the content fragment for choosing visit capacity information maximization in the code check is defined as being the first edge to be distributed
The content of caching server distribution, until the free memory numerical value of the first edge cache server to be distributed
It is zero.
It is exemplary, if two of " Nanjing " edge cache servers to be distributed can in above-mentioned example
2GB and 1GB (wherein, 1GB=1024MB), the side to be distributed of " Tianjin " are respectively with memory space
The free memory of edge caching server is 10GB, and taking up room for content to be distributed is 1.75GB, then
It need to be the edge cache to be distributed of " Tianjin " that directly be defined as complete content to be distributed by the first Centroid
The content of server distribution, complete content to be distributed is defined as need to be for that can use storage in " Nanjing "
The content that space is distributed for the edge cache server to be distributed of 2GB.
It is the edge cache server to be distributed of 1GB for free memory in " Nanjing ", by
In content identification for 0110jmvod02 content code check for 3MB visit capacity apparently higher than 1MB visit
The amount of asking, therefore the first Centroid preferably selects the content that code check is 3MB.Under same code check, each
The visit capacity information of content fragment is followed successively by ending 20 minutes, beginning 20 minutes and middle 20 from high to low
Minute, therefore, the order that the first Centroid chooses content fragment is 20 points of ending when code check is 3MB
Clock, beginning 20 minutes, middle 20 minutes content fragment, followed by code check are 20 points of the ending of 1MB
Clock, beginning 20 minutes and middle 20 minutes burst.In this order, the first Centroid is in choosing
After code fetch rate is for ending 20 minutes, the content fragment of beginning 20 minutes or so of 3MB, can be empty with storage
Between be the edge cache server to be distributed just no longer remaining free memory of 1GB, therefore, in first
Heart node determine need to be " Nanjing " in free memory for 1G edge cache server to be distributed
The content of distribution is content fragment that code check is ending 20 minutes and the beginning 20 minutes of 3MB.
For the edge cache server to be distributed in " Beijing ", the first Centroid is according to existing content point
Forwarding method carries out respective handling.
In sum, content distribution method provided in an embodiment of the present invention, the first Centroid is according to be distributed
Content real visit capacity information in the 2nd CDN determines which the edge cache service in a CDN
Distribute in device, and determine to need the content to distribute in each edge cache server to be distributed, can keep away
Exempt from the problem of edge cache server access overload, better meet the requirements for access of user.
Embodiment three
The embodiment of the present invention provides a kind of Centroid 1, and the Centroid 1 is the first Centroid, institute
Centroid 1 is stated for the step performed by the first Centroid for performing in above method.The centromere
Point 1 can include the module corresponding to corresponding steps.As shown in fig. 7, the Centroid 1 includes:
Acquiring unit 20, for obtaining the content to be distributed in first content distribution network CDN and
Operation statistics in two CDN, the operation statistics is to be treated to described in the 2nd CDN
Distribute the statistics of the visit capacity of content, the Centroid belongs to a CDN.
Determining unit 21, for the operation statistics got according to the acquiring unit 20 and institute
The status information of the whole fringe nodes in a CDN is stated, the Distribution Results of content to be distributed, institute are obtained
State Distribution Results include determine at least one edge cache server to be distributed and need to be each side to be distributed
The content of edge caching server distribution
Dispatching Unit 22, is that each is treated for the Distribution Results determined according to the determining unit 21
Distribution edge cache server needs to be the edge cache server to be distributed point in distributing the content to be distributed
The content of hair.
Further, as shown in figure 8, the Centroid 1 also includes receiving unit 23,
The receiving unit 23, the content distribution message for receiving content server transmission, the content point
Hair message includes content identification, the content to be distributed of the content to be distributed in the content server
Storage location information and the operation statistics.
Further, as shown in figure 8, the Centroid 1 also includes download unit 24,
The download unit 24, for the content identification received according to the receiving unit 23 and institute
Storage location information is stated, the content to be distributed is downloaded.
Optionally, it is described operation statistics include at least one reference position information and it is described it is to be distributed in
Hold the visit capacity information in each reference position information, the status information is included in a CDN
The positional information of each fringe node.
Further, the determining unit 21, specifically for:
According to preset rules and the content to be distributed each reference position information visit capacity information, from institute
State all referring to the reference position information that at least one mesh is determined in positional information;
One is chosen from the positional information of whole fringe nodes for each purpose reference position information to treat
Distribute the positional information of fringe node, the fringe node to be distributed includes at least one edge cache service
Device;
It is that each fringe node to be distributed determines at least one according to the positional information of each fringe node to be distributed
Individual edge cache server to be distributed.
Further, for the reference bit confidence of the first mesh in the reference position information of at least one mesh
Breath, the determining unit 21, specifically for:
If there is the positional information of fringe node and the reference bit of first mesh in whole fringe nodes
Confidence manner of breathing is same, then the positional information of the fringe node is defined as the position of the first fringe node to be distributed
Information;
If the positional information of whole fringe nodes is differed with the reference position information of first mesh,
The positional information of the first fringe node to be distributed is then chosen from the positional information of whole fringe nodes,
Wherein, the reference position information of the positional information of the described first fringe node to be distributed and first mesh it
Between distance it is minimum.
Further, the content distribution message also includes that purpose distributes positional information.
Accordingly, the determining unit 21, be additionally operable to be from the positional information of whole fringe nodes
Each purpose reference position information is chosen after a positional information for fringe node to be distributed, and is being each
Before the positional information of fringe node to be distributed determines at least one edge cache server to be distributed, if purpose
The positional information for distributing fringe node is not contained in the positional information of at least one fringe node to be distributed,
The positional information of purpose distribution fringe node is then defined as the positional information of fringe node to be distributed, institute
Purpose distribution fringe node is stated to be contained in the distribution positional information of the mother.
Further, the status information also includes each the edge cache server in a CDN
Memory space utilization rate, the property value of each edge cache server and each edge cache server deposit
Storage space values.
Accordingly, for the first side to be distributed in the positional information of described at least one fringe node to be distributed
For the positional information of edge node, the determining unit 21, specifically for:
It is pre- in the visit capacity information of the described first fringe node to be distributed and first according to the content to be distributed
If threshold value, it is determined that need to be the quantity N, N that the described first fringe node to be distributed distributes the content to be distributed
≥1;
According to pre-conditioned, from whole edge cache servers that the described first fringe node to be distributed is included
In, X edge cache server is chosen as candidate edge caching server, wherein, it is described pre-conditioned
For the memory space utilization rate of edge cache server is less than or equal to the second predetermined threshold value, and the edge is slow
The property value of server is deposited less than the 3rd predetermined threshold value, X >=1;
If N >=X, X candidate edge caching server is defined as edge cache server to be distributed;
If N<X, then select N number of candidate edge caching from the X candidate edge caching server
Server, and N number of candidate edge caching server is defined as edge cache server to be distributed, institute
N number of candidate edge caching server is stated for the X candidate edge caching server is empty according to available storage
Between be arranged in order from big to small after top n.
Optionally, the operation statistics includes visit capacity of the content to be distributed at least one code check
The visit capacity information of information and the content to be distributed in the full content burst of each code check.
Accordingly, taken for the first edge cache to be distributed at least one edge cache server to be distributed
Business device, the determining unit 21, specifically 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 described to be distributed
The numerical value that takes up room of content, then according to the content to be distributed at least one code check visit capacity information and
The content to be distributed determines at least one content in the visit capacity information of the full content burst of each code check
It need to be the content of the described first edge cache server distribution to be distributed, at least one content point that burst is
The free memory numerical value of the numerical value equal to the described first edge cache server to be distributed that takes up room of piece;
If the free memory numerical value of the first edge cache server to be distributed is more than or equal to described
The numerical value that takes up room of content to be distributed, then being defined as the content to be distributed need to be for described first is to be distributed
The content of edge cache server distribution.
Further, the determining unit 21, specifically for:
Choose the code check of visit capacity information maximization;
According to the maximum code check of the visit capacity and the content to be distributed the code check full content burst
Visit capacity information, the content fragment of visit capacity information maximization in the code check is defined as need to be for described first treats
The content of distribution edge cache server distribution, until the first edge cache server to be distributed is available
Memory space numerical value is zero.
Further, the receiving unit 23, is additionally operable in the determining unit 21 according to the distribution knot
Really, it is to be needed as the edge to be distributed is slow during each edge cache server to be distributed distributes the content to be distributed
Deposit after the content of server distribution, receive the confirmation message that each edge cache server to be distributed sends.
Optionally, the operation statistics includes at least one measurement period and the content to be distributed each
The visit capacity information of individual measurement period.
Accordingly, the determining unit 21, is additionally operable in the Dispatching Unit according to the Distribution Results, is
Each edge cache server to be distributed needs to be taken for the edge cache to be distributed in distributing the content to be distributed
Business device distribution content after, according to the content to be distributed each measurement period visit capacity information, really
The protection period of fixed each to be distributed edge cache server of the content to be distributed in a CDN.
Further, as shown in figure 8, the Centroid 1 also includes transmitting element 25,
The transmitting element 25, request is set for being sent to each edge cache server to be distributed, described
Message package is set to be taken in the edge cache to be distributed containing the content described to be distributed that the determining unit 21 determines
The protection period of business device, the setting message is used to indicate each edge cache server to be distributed to set respective
The protection period of content is distributed, the content of having distributed belongs to the content to be distributed.
It is understood that the Centroid 1 of the present embodiment only according to the Centroid 1 realize function
The logical partitioning for carrying out, in practical application, can carry out the superposition or fractionation of said units.And the implementation
A pair of the content distribution method 1 that the function that the Centroid 1 that example is provided is realized is provided with above-described embodiment
Should, for the more detailed handling process that the Centroid 1 is realized, in above method embodiment
It is described in detail, is not described in detail herein.
Another embodiment of the present invention provides a kind of Centroid, as shown in figure 9, the Centroid includes interface
Circuit 20, processor 21, memory 22 and system bus 23.
Wherein, the system is passed through between the interface circuit 20, the processor 21 and the memory 22
System bus 23 is connected, and completes communication each other.
It will be understood by those skilled in the art that the structure of the Centroid shown in Fig. 9 is not to Centroid
Restriction, it can be included than illustrating more or less part, or combine some parts, or different
Part arrangement.
Specifically, when the Centroid runs, the Centroid performs above method embodiment and is retouched
The content distribution method stated.Specific content distribution method can be found in above-mentioned embodiment as shown in figures 3 to 6
In associated description, here is omitted.
Specifically, interface circuit 20 be used for realize the Centroid respectively with content server and edge cache
Communication connection between server.
Specifically, the memory 22 can be used to store software program and application module, processor 21 leads to
Software program and application module of the operation storage in memory 22 are crossed, so that implementation center's node is various
Application of function and data processing.Memory 22 can mainly include storing program area and storage data field, its
In, the application program that storing program area can be needed for storage program area, at least one function (treat by such as distribution
Distribution content) etc.;Storage data field can store content to be distributed etc..
Wherein, the memory 22 can include volatile memory, such as high-speed random access memory
(RAM, Random Access Memory), the memory 22 can also include non-volatile memories
Device, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Specifically, the processor 21 is the control centre of Centroid, connected using various interfaces and circuit
The various pieces of whole Centroid are connect, by running or performing software program of the storage in memory 22
And/or application module, and call data of the storage in memory 22, the various work(of implementation center's node
Energy and processing data, so as to carry out integral monitoring to Centroid.
Wherein, processor 21 can be central processing unit (CPU, Central Processing Unit).Institute
It can also be other general processors, digital signal processor (DSP, Digital Signal to state processor 101
) or other PLDs or transistor logic, discrete hardware components etc. Processing.
General processor can be microprocessor or the processor can also be any conventional processor etc..
The system bus 23 can include that data/address bus, power bus, controlling bus and signal condition are total
Line etc..For clear explanation in the present embodiment, various buses are all illustrated as system bus 23 in fig .9.
Centroid reference operation statistics in the embodiment of the present invention, in the CDN for determining
At least one edge cache server to be distributed and need to be the interior of each edge cache server to be distributed distribution
Holding distribution content to be distributed also can really and accurately reflect that content to be distributed is believed in the visit capacity of a CDN
Breath, so, not only increases the memory space utilization rate of each edge cache server to be distributed, Er Qieneng
Enough meet the requirements for access of user, solve the problems, such as that edge cache server access in the prior art is overloaded.
Example IV
The embodiment of the present invention provides a kind of content server 1, and the content server 1 is used to perform with top
The step performed by content server in method.The content server 1 can be included corresponding to corresponding steps
Module.As shown in Figure 10, the content server 1 includes:
Acquiring unit 30, for obtaining operation statistics, the operation statistics is in the second content point
To the statistics of the visit capacity of content to be distributed in hairnet network CDN.
Transmitting element 31, for the first Centroid transmission content dispatch messages, the content distribution message
Content identification including the content to be distributed, the content to be distributed are in the storage position of the content server
The operation statistics that confidence ceases and the acquiring unit 30 gets, the content distribution message
For indicating first Centroid to distribute the content to be distributed in a CDN, described first
Centroid belongs to a CDN.
Further, the transmitting element 31, if specifically in local content disposition operation management table
The mark of the 2nd CDN is got, then sends operation statistics request message, described the to the second Centroid
Two Centroids belong to the 2nd CDN, and local content disposition operation management table includes described second
The mapping relations of the mark of CDN and the content identification of the content to be distributed, the operation statistics request disappears
Content identification of the breath comprising the content to be distributed, the operation statistics request message is used to ask described second
Visit capacity information of the content to be distributed in the 2nd CDN described in Centroid statistical analysis.
Further, as shown in figure 11, content server 1 also includes receiving unit 32,
The receiving unit 32, response message is counted for receiving the operation that second Centroid sends,
The operation statistics response message includes the operation statistics.
Further, the operation statistics request message also includes statistical parameter, and the operation statistical message is used
In ask second Centroid according to the statistical parameter statistical analysis content to be distributed second
Visit capacity information in CDN.
Preferably, the statistical parameter includes region granular information, code check, timestamp information, visit capacity system
At least one of meter cycle.
It is understood that the content server 1 of the present embodiment only according to the content server 1 realize
The logical partitioning that function is carried out, in practical application, can carry out the superposition or fractionation of said units.And should
The content distribution side that the function that the content server 1 that embodiment is provided is realized is provided with above method embodiment
Method is corresponded, for the more detailed handling process that the content server 1 is realized, in the above method
It has been described in detail in embodiment, has been not described in detail herein.
Another embodiment of the present invention provides a kind of content server, as shown in figure 12, the content server bag
Include interface circuit 40, processor 41, memory 42 and system bus 43.
Wherein, the system is passed through between the interface circuit 40, the processor 41 and the memory 42
System bus 43 is connected, and completes communication each other.
It will be understood by those skilled in the art that the structure of the content server shown in Figure 12 is not to content
The restriction of server, it can include part more more or less than diagram, or combine some parts, or
The different part arrangement of person.
Specifically, when the content server runs, the content server is performed as described in Fig. 3-Fig. 6
Embodiment content distribution method.Specific content distribution method can be found in it is above-mentioned as shown in figures 3 to 6
Associated description in embodiment, here is omitted.
Specifically, interface circuit 40 is used to realize the communication connection between the content server and Centroid.
Specifically, the memory 42 can be used to store software program and application module, processor 41 leads to
Software program and application module of the operation storage in memory 42 are crossed, so as to perform each of content server
Plant application of function and data processing.Memory 42 can mainly including storing program area, the storing program area can
Application program (such as transmission content dispatch messages function) needed for storage program area, at least one function
Deng.
Wherein, the memory 42 can include volatile memory, such as high-speed random access memory
(RAM, Random Access Memory), the memory 42 can also include non-volatile memories
Device, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Specifically, the processor 41 is the control centre of content server, using various interfaces and circuit
The various pieces of entire content server are connected, by running or performing software of the storage in memory 42
Program and/or application module, and data of the storage in memory 42 are called, perform content server
Various functions and processing data, so as to carry out integral monitoring to content server.
Wherein, processor 41 can be central processing unit (CPU, Central Processing Unit).Institute
It can also be other general processors, digital signal processor (DSP, Digital Signal to state processor 41
) or other PLDs or transistor logic, discrete hardware components etc. Processing.
General processor can be microprocessor or the processor can also be any conventional processor etc..
The system bus 43 can include that data/address bus, power bus, controlling bus and signal condition are total
Line etc..For clear explanation in the present embodiment, various buses are all illustrated as system bus 43 in fig. 12.
Content server in the embodiment of the present invention is removed when to the first Centroid transmission content dispatch messages
By the content identification of content to be distributed and content to be distributed the content server storage location information
Be sent to beyond the first Centroid, also by the second content distributing network CDN to content to be distributed
The statistics of visit capacity is sent to the first Centroid so that the first Centroid divides in a CDN
The visit capacity information of content to be distributed can be referred to when sending out content to be distributed, is accurately determined in a CDN
In edge cache server to be distributed and need to be each edge cache server to be distributed distribution content so that
The memory space utilization rate of each edge cache server to be distributed is improve, and disclosure satisfy that the visit of user
Demand is asked, solves the problems, such as that edge cache server access in the prior art is overloaded.
Embodiment five
The embodiment of the present invention provides a kind of content delivering system, and the content delivering system is included such as the institute of embodiment three
At least the one of the Centroid stated, the content server as described in example IV and the Centroid management
Individual fringe node, each fringe node by least one edge cache server group into, wherein, content service
By network connection between device and Centroid, net is passed through between Centroid and each edge cache server
Network is connected.
For the more detailed handling process that Centroid is realized, done in above-described embodiment three in detail
Description, is not described in detail herein.
For the more detailed handling process that content server is realized, done in above-described embodiment four in detail
Thin description, 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
The division of each functional module is carried out for example, in practical application, as needed can divide above-mentioned functions
With being completed by different functional module, will the internal structure of device be divided into different functional modules, with complete
Into all or part of function described above.The specific works mistake of the system, apparatus, and unit of foregoing description
Journey, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, device and side
Method, can realize by another way.For example, device embodiment described above is only schematic
, for example, the division of module or unit, only a kind of division of logic function, can have when actually realizing
Other dividing mode, such as multiple units or component can combine or be desirably integrated into another system,
Or some features can be ignored, or do not perform.It is another, shown or discussed coupling each other or
Direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces
Connect, can be electrical, mechanical or other forms.
As separating component illustrate unit can be or may not be it is physically separate, as unit
The part of display can be or may not be physical location, you can with positioned at a place, or also may be used
To be distributed on multiple NEs.Some or all of unit therein can according to the actual needs be selected
To realize the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a unit
In.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ SFU software functional unit
Form is realized.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can
To be completed by the related hardware of programmed instruction, foregoing program can be stored in an embodied on computer readable and deposit
In storage media, the program upon execution, performs the step of including above method embodiment;And foregoing storage
Medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Although having been described for the alternative embodiment of the application, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include alternative embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the present invention
Bright spirit and scope.So, if it is of the invention these modification and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprising these changes and modification.