CN103905923A - Content caching method and device - Google Patents

Content caching method and device Download PDF

Info

Publication number
CN103905923A
CN103905923A CN201410104911.9A CN201410104911A CN103905923A CN 103905923 A CN103905923 A CN 103905923A CN 201410104911 A CN201410104911 A CN 201410104911A CN 103905923 A CN103905923 A CN 103905923A
Authority
CN
China
Prior art keywords
content
ssu
access
session request
distribution situation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410104911.9A
Other languages
Chinese (zh)
Inventor
罗泽文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201410104911.9A priority Critical patent/CN103905923A/en
Publication of CN103905923A publication Critical patent/CN103905923A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the invention relates to the technical field of digital televisions and discloses a content caching method and device. The content caching method comprises the steps of receiving a session establishment request transmitted by a digital television terminal; selecting the corresponding SSU according to the session establishment request with combination of loading conditions and content access distribution of an SSU; updating the content access distribution according to selection of the SSU; calculating content hot values of contents in the SSU according to the updated content access distribution; caching the contents ranking in the tops in the content hot values on the SSU. By means of the content caching method and device, coupling degree of an SSG and the SSU is decreased while the hit rate of local cache is increased under the existing network condition.

Description

A kind of content buffering method and device
Technical field
The present invention relates to digital television techniques field, be specifically related to a kind of content buffering method and device.
Background technology
Along with the high speed development of two-way video demand (telecommunication) service (VOD), video concurrency more and more comes, pressure to dry net is also more and more higher, in order to reduce the pressure of dry net, requires more and more higher to the hit rate of the cache node from the nearest stream pushing server of user's side or CDN.
One of prior art is to carry out buffer memory based on temperature, specifically comprise: for the access temperature of single video stream pushing server (VSS), according to certain temperature algorithm, carry out a rank to the temperature of all the elements of the machine, then according to memory space, content forward rank is downloaded to this locality and carry out buffer memory, when user visits, preferentially use local content that service is provided.But, in this mode, buffer memory between VSS is unordered, between many VSS, may repeat the same content of buffer memory, multiplicity is higher, causes rationally utilizing the storage capacity of local many VSS, and the memory space utilance of many VSS is low, thereby cause overall hit rate not high, after all the limited storage space of separate unit VSS.
Two of prior art is by increasing a SSG (service selection gateway, can be described as again front end processor), the VSS of local node is carried out to unified management, can adopt by actual content and distribute and distribute plug-flow resource, so just can comparatively reasonably utilize the storage resources between VSS, improve the shortcoming of prior art one.But, owing to needing comparatively real-time synchronizing content distributed intelligence between SSG and plug-flow unit (SSU), add that SSG must be active and standby two-shipper while being online network element commercialization, make system comparatively complicated, coupling is too high, moreover, in the method, for not forming content before local cache, to carry out plug-flow distribution comparatively random and unordered, cause forming in time local cache, for example, suppose that there are 10 VSS this locality, cache policy is: if local ordering 5 times just at local cache, so actual be likely program request just likely have for 41 times wherein a VSS do local cache (reason is before local cache not, all generally to adopt average scheduling), can cause like this local cache condition difficulty to strengthen and can not form in time local cache, to such an extent as to still can produce the situation that hit rate is low.
Summary of the invention
The embodiment of the invention discloses a kind of content buffering method and device, can, in reducing the degree of coupling of SSG and SSU, provide the hit rate of local cache.
The first aspect of the embodiment of the present invention provides a kind of content buffering method, and described method comprises:
The session request of setting up that receiving digital television terminal sends;
Set up session request according to described, and select corresponding SSU in conjunction with plug-flow cell S SU loading condition and access to content distribution situation;
According to the selection of described SSU being upgraded to described access to content distribution situation;
Calculate the content temperature value of the content in described SSU according to the described access to content distribution situation after upgrading;
On described SSU, the forward content of rank in content temperature value is carried out to buffer memory.
Further, describedly set up session request according to described, and select corresponding SSU to comprise in conjunction with SSU loading condition and access to content distribution situation:
Judge and describedly set up whether the content that session request will access is accessed for the first time;
If described content is not accessed for the first time, according to SSU loading condition, select load factor to be less than or equal to the SSU of threshold value;
According to access to content distribution situation, from being less than or equal to the SSU of threshold value, described load factor selects the maximum SSU of accessed described content number of times.
Further, described judge described set up content that session request will access be whether accessed for the first time after, also comprise:
If described content is accessed for the first time, selecting sequence number is the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
Judge that described sequence number is whether delay machine or full load of the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
Machine or full load if delay, select the machine of not delaying after the value of sequence number after the content ID of described content is divided by SSU quantity remainder number or the SSU of full load.
Further, the described content temperature value of calculating the content in described SSU according to the described access to content distribution situation after upgrading comprises:
According to the described access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in described SSU, obtain the content temperature value of the content in described SSU.
Further, described on described SSU, after in content temperature value, the forward content of rank is carried out buffer memory, described method also comprises:
Respond the described session request of setting up, set up session with described digital TV terminal;
Receive the playing request that described digital TV terminal sends;
Set up the content that session request will access and be pushed to described digital TV terminal described.
The second aspect of the embodiment of the present invention provides a kind of content caching device, and described device comprises:
Session receiver module, the session request of setting up sending for receiving digital television terminal;
SSU selects module, describedly sets up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation for what receive according to described session receiver module;
Distributed update module, for selecting module to upgrade described access to content distribution situation to the selection of described SSU according to described SSU;
Temperature computing module, for calculating the content temperature value of the content of described SSU according to the described access to content distribution situation after upgrading;
Cache module, for the described SSU that selects module to select at described SSU, carries out buffer memory to the forward content of rank in content temperature value.
Further, described SSU selects module to comprise:
The first judging unit, describedly sets up whether the content that session request will access is accessed for the first time for judging;
The first selected cell, while not being accessed for the first time, according to SSU loading condition, selects load factor to be less than or equal to the SSU of threshold value for judge described content at described the first judging unit;
The second selected cell, for according to access to content distribution situation, the described load factor of selecting from described the first selected cell is less than or equal to the SSU of threshold value selects the maximum SSU of accessed described content number of times.
Further, described SSU selects module also to comprise:
The 3rd selected cell, while being accessed for the first time for judge described content at described the first judging unit, the SSU of the value after selecting content ID that sequence number is described content divided by SSU quantity remainder number;
The second judging unit, for judging that described sequence number is whether delay machine or full load of the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
The 4th selected cell, be the SSU of the content ID of the described content value after divided by SSU quantity remainder number while delaying machine or full load for judge described sequence number at described the second judging unit, select the machine of not delaying after the value of sequence number after the content ID of described content is divided by SSU quantity remainder number or the SSU of full load.
Further, described temperature computing module specifically for:
According to the described access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in described SSU, obtain the content temperature value of the content in described SSU.
Further, described device also comprises:
Respond module, for responding the described session request of setting up, sets up session with described digital TV terminal;
Playing request receiver module, the playing request sending for receiving described digital TV terminal;
Pushing module, for setting up the content that session request will access and be pushed to described digital TV terminal described.
In the embodiment of the present invention, the session request of setting up can receiving digital television terminal sending, according to setting up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation, upgrade access to content distribution situation according to the selection to SSU, calculate the content temperature value of the content in SSU according to the access to content distribution situation after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, the hit rate of local cache is provided.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of a kind of content buffering method of providing of the embodiment of the present invention;
Fig. 2 is the flow chart of the another kind of content buffering method that provides of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of content caching device of providing of the embodiment of the present invention;
Fig. 4 is the structural representation of the another kind of content caching device that provides of the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of VSS of providing of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention the embodiment of the invention discloses a kind of content buffering method and device, can, in reducing the degree of coupling of SSG and SSU, provide the hit rate of local cache.Following examples are elaborated respectively.
Refer to Fig. 1, Fig. 1 shows the flow chart of a kind of content buffering method that the embodiment of the present invention provides.As shown in Figure 1, this content buffering method can comprise the following steps:
S101: the session request of setting up that receiving digital television terminal sends;
Particularly, the session request of setting up that VSS can receiving digital television terminal (for example, Set Top Box (STB)) sends, this sets up the content ID of the content that session request portability will access.
S102: according to setting up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation;
Particularly, can select suitable SSU by the SSG in VSS.Can first judge whether this content of setting up that session request will access is accessed for the first time, if this content of setting up that session request will access is not accessed for the first time, can be according to SSU loading condition, select the satisfactory SSU of load, for example, select load factor to be less than or equal to the SSU of threshold value, the threshold value of the load factor here can be, for example, 80%~90%, then can be according to access to content distribution situation, from the satisfactory SSU of load, select accessed this to set up the maximum SSU of content number of times that session request will be accessed, access to content distribution situation can be obtained by the access to content distribution management module in VSS, if this content of setting up that session request will access is accessed for the first time, the sequence number of so selected SSU is Content ID%n, wherein, Content ID sets up the content ID of the content that session request will access for this, n is the quantity of SSU, the sequence number that is selected SSU is the value of this content ID that sets up the content that session request will access after divided by SSU quantity remainder number, then can judge that sequence number is whether delay machine or full load of the SSU of Content ID%n, machine or full load if this SSU delays, can select not the delay machine of sequence number after ContentID%n or the SSU of full load, for example, can select sequence number is the SSU of ContentID%n+1, machine or full load if the SSU that sequence number is ContentID%n+1 delays, can select sequence number is the SSU of ContentID%n+2, the like, until find not the delay machine of sequence number after ContentID%n or the SSU of full load.
S103: upgrade access to content distribution situation according to the selection to SSU;
Particularly, owing to having selected a SSU to prepare to provide the above-mentioned content that session request will be accessed of setting up, therefore, can there is corresponding variation in the access to content distribution situation on VSS, therefore, needs according to the selection of SSU is upgraded to access to content distribution situation.Access to content distribution situation can be, for example, and as shown in Table 1:
Table one
? SSU-1 SSU-2 SSU-3 SSU-4 SSU-5
Content_1 5 1 ? ? ?
Content_2 ? 3 ? 1 ?
Content_3 ? ? 7 ? 1
Content_4 ? 1 ? 5 ?
Content_5 1 ? ? ? 8
Wherein, Cnntent_1~Cnntent_5 represent content in table one is numbered 1~5 content, SSU-1~SSU-5 representative is numbered 1~5 SSU, and a certain content of digitized representation in form accessed number of times in a certain SSU, for example, 5 represent contents of this line of Content_1 are numbered 1 content in SSU-1 accessed 5 times again.It is to be noted, can be by the access to content distribution management module records access to content distribution situation in VSS, and access to content distributes and be actual content distribute, SSG without know SSU whether this content caching local or no this content is deleted from this locality, therefore, this mode that forms access to content distribution situation (access to content distribution table) by self-learning method can reduce the coupling between SSG and SSU, realize the strategy that carries out buffer memory by temperature described below if make SSU inside, just dispatch and can accomplish by the effect of content scheduling as long as treat cache contents by access to content distribution situation so.
S104: the content temperature value of calculating the content in SSU according to the access to content distribution situation after upgrading;
Particularly, can, according to the access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in SSU, obtain the content temperature value of the content in SSU; For example, can calculate by following formula the content temperature value of the content in selecteed SSU:
Temperature value=this content of certain content the same day access times * weight on the same day+this content when all access times * when Zhou Quanchong+this content when all access times * when of that month weight+this content of the of that month access times * of Zhou Quanchong+this content when season access times * is when the * of the access times then weight then of season weight+this content.
Wherein, the same day, weight can be 1.0, and when Zhou Quanchong can be 0.8, of that month weight can be 0.5, when season weight can be 0.1, weight can be 0.02 then.Therefore, the temperature algorithm in the embodiment of the present invention can be considered ageing, and different time sections has different weights, and higher from the shorter weight of current time, the weight longer from current time is lower, is even 0.
S105: on SSU, the forward content of rank in content temperature value is carried out to buffer memory;
Particularly, on the SSU that can be to select in step S102, the forward content of rank in content temperature value is carried out to buffer memory, first from high to low the content in selected SSU is sorted according to the size of content temperature value, then choose several contents of high order end and carry out buffer memory.It is pointed out that the forward content of rank in said content temperature value here might not be receivedly in step S101 to set up the content that session request will be accessed.But in the time that the forward content of rank in the content temperature value on this SSU next time is accessed, this SSU has carried out buffer memory, and corresponding content can be provided rapidly.
In the content buffering method providing at Fig. 1, the session request of setting up can receiving digital television terminal sending, according to setting up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation, upgrade access to content distribution situation according to the selection to SSU, calculate the content temperature value of the content in SSU according to the access to content distribution situation after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, the hit rate of local cache is provided.
Refer to Fig. 2, Fig. 2 shows the flow chart of a kind of content buffering method that the embodiment of the present invention provides.As shown in Figure 2, this content buffering method can comprise the following steps:
S201: send the session request of setting up;
Particularly, STB can send and set up session request to session manager (SM).
S202:IPQAM resource is distributed;
Particularly, SM receives setting up after session request of STB transmission, can carry out edge modulator (IPQAM) resource for this session request of setting up and distribute, and distributing IP QAM resource is given this session request of setting up.
S203: send the session request of setting up;
Particularly, SM can send and set up session request to the SSG in VSS; SM send this set up and in session request, carry IPQAM resource information.
S204: send the request of access to content distributed acquisition;
Particularly, SSG can send the request of access to content distributed acquisition to the access to content distribution management module in VSS, and what this access to content distributed acquisition request portability STB or SM sent sets up the content ID(Content ID comprising in session request).
S205: the access to content distribution situation of obtaining content;
Particularly, access to content distribution module can return to SSG by the access to content distribution situation of this content according to Content ID.It is pointed out that the access to content distribution situation that can also simultaneously return to the forward multiple contents of accessed number of times rank is to SSG.For example,, as shown in above-mentioned table one.
S206: select SSU according to SSU loading condition and access to content distribution situation;
Particularly, SSG can first judge whether the content that the session request of setting up of STB or SM transmission will be accessed is accessed for the first time, the content that session request will access if set up is not accessed for the first time, can be according to SSU loading condition, select the satisfactory SSU of load, for example, select load factor to be less than or equal to the SSU of threshold value, the threshold value of the load factor here can be, for example, 80%~90%, then can be according to access to content distribution situation, from the satisfactory SSU of load, select accessed this to set up the maximum SSU of content number of times that session request will be accessed, the content that session request will access if set up is accessed for the first time, the sequence number of so selected SSU is Content ID%n, wherein, the content ID that Content ID is the content setting up session request and will access, n is the quantity of SSU, the sequence number that is selected SSU is the value of this content ID that sets up the content that session request will access after divided by SSU quantity remainder number, then can judge that sequence number is whether delay machine or full load of the SSU of Content ID%n, machine or full load if this SSU delays, can select not the delay machine of sequence number after ContentID%n or the SSU of full load, for example, can select sequence number is the SSU of ContentID%n+1, machine or full load if the SSU that sequence number is ContentID%n+1 delays, can select sequence number is the SSU of ContentID%n+2, the like, until find not the delay machine of sequence number after ContentID%n or the SSU of full load.
S207: send the control command of upgrading access to content distribution situation;
Particularly, SSG can send the control command of upgrading access to content distribution situation to access to content distribution management module, the sequence number of the selecteed SSU of this control command portability and set up the Content ID of the content that session request will access.
S208: the access to content distribution situation after upgrading is returned to SSG;
Particularly, access to content distribution management module can and be set up the Content ID of the content that session request will access according to the sequence number of the SSU selecting, upgrades access to content distribution situation, and the access to content distribution situation after renewal is returned to SSG.
S209: send the session request of setting up;
Particularly, SSG can send and set up session request to the SSU in VSS; This of SSG transmission set up in session request and carried IPQAM resource information, goes back the access to content distribution situation after portability upgrades.
S210: upgrade temperature value;
Particularly, SSU can, according to the access to content distribution situation after upgrading, calculate the content temperature value of the content in selecteed SSU by following formula:
Temperature value=this content of certain content the same day access times * weight on the same day+this content when all access times * when Zhou Quanchong+this content when all access times * when of that month weight+this content of the of that month access times * of Zhou Quanchong+this content when season access times * is when the * of the access times then weight then of season weight+this content.
Wherein, the same day, weight can be 1.0, and when Zhou Quanchong can be 0.8, of that month weight can be 0.5, when season weight can be 0.1, weight can be 0.02 then.Therefore, the temperature algorithm in the embodiment of the present invention can be considered ageing, and different time sections has different weights, and higher from the shorter weight of current time, the weight longer from current time is lower, is even 0.
S211: if hit, read local file and prepare service;
Particularly, set up session request if above-mentioned and hit, can read at the file content of SSU buffer memory and serve with preparation.
S212: if miss, send and draw stream request to CDN;
Particularly, set up session request do not hit if above-mentioned, can send and draw stream request to content distributing network server (CDN), this draws stream request for pull the above-mentioned Media Stream that session request will be accessed of setting up from CDN.
S213: send Media Stream;
Particularly, CDN, receiving drawing after stream request that SSU sends, can send corresponding Media Stream to SSU, to make SSU prepare to provide the service of this Media Stream.
S214: the content that temperature value rank is forward is carried out to buffer memory;
Particularly, on the SSU that can be to select in step S206, the content that rank in temperature value is forward is carried out to buffer memory, first from high to low the content in selected SSU is sorted according to the size of content temperature value, then choose several contents of high order end and carry out buffer memory; In the time that the forward content of rank in the content temperature value on this SSU next time is accessed, this SSU has carried out buffer memory, and corresponding content can be provided rapidly.
S215: respond setting up session request;
Particularly, SSU sends about the response of setting up session request to SSG.
S216: send setting up the response of session request;
Particularly, SSG can send response to setting up session request to SM.
S217: session request is set up in response;
Particularly, SM can respond the session request of setting up that STB sends over, and sets up session relationship with STB, provides service to be prepared as at any time STB.
S218: send playing request;
Particularly, STB can send playing request to the SSU in VSS.
S219: return to video flowing;
Particularly, SSU can set up the content that session request will access and is pushed to STB above-mentioned.
In the content buffering method providing at Fig. 2, can select the SSU for buffer memory accordingly according to SSU loading condition and access to content distribution situation, and can be according to the content temperature value of the content in the access to content distribution situation calculating SSU after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, improve the hit rate of local cache.
Refer to Fig. 3, Fig. 3 shows the structural representation of a kind of content caching device that the embodiment of the present invention provides.This content caching device 30 can be, for example, and VSS.As shown in Figure 3, this content caching device 30 can comprise that session receiver module 301, SSU select module 302, distributed update module 303, temperature computing module 304 and cache module 305, wherein:
Session receiver module 301, the session request of setting up sending for receiving digital television terminal; Particularly, the session request of setting up that can send by VSS receiving digital television terminal, this sets up the content ID of the content that session request portability will access.
SSU selects module 302, for the session request of setting up receiving according to session receiver module 301, and selects corresponding SSU in conjunction with SSU loading condition and access to content distribution situation, particularly, can first judge whether this content of setting up that session request will access is accessed for the first time, if this content of setting up that session request will access is not accessed for the first time, can be according to SSU loading condition, select the satisfactory SSU of load, for example, select load factor to be less than or equal to the SSU of threshold value, the threshold value of the load factor here can be, for example, 80%~90%, then can be according to access to content distribution situation, from the satisfactory SSU of load, select accessed this to set up the maximum SSU of content number of times that session request will be accessed, if this content of setting up that session request will access is accessed for the first time, the sequence number of so selected SSU is Content ID%n, wherein, Content ID sets up the content ID of the content that session request will access for this, n is the quantity of SSU, the sequence number that is selected SSU is the value of this content ID that sets up the content that session request will access after divided by SSU quantity remainder number, then can judge that sequence number is whether delay machine or full load of the SSU of Content ID%n, machine or full load if this SSU delays, can select not the delay machine of sequence number after ContentID%n or the SSU of full load, for example, can select sequence number is the SSU of ContentID%n+1, machine or full load if the SSU that sequence number is ContentID%n+1 delays, can select sequence number is the SSU of ContentID%n+2, the like, until find not the delay machine of sequence number after ContentID%n or the SSU of full load.
Distributed update module, for selecting module 302 to upgrade access to content distribution situation to the selection of SSU according to SSU; Particularly, owing to having selected a SSU to prepare to provide the above-mentioned content that session request will be accessed of setting up, therefore, can there is corresponding variation in the access to content distribution situation on VSS, therefore, needs according to the selection of SSU is upgraded to access to content distribution situation.Access to content distribution situation can be, for example, and as shown in Table 1:
Table one
? SSU-1 SSU-2 SSU-3 SSU-4 SSU-5
Content_1 5 1 ? ? ?
Content_2 ? 3 ? 1 ?
Content_3 ? ? 7 ? 1
Content_4 ? 1 ? 5 ?
Content_5 1 ? ? ? 8
Wherein, Cnntent_1~Cnntent_5 represent content in table one is numbered 1~5 content, SSU-1~SSU-5 representative is numbered 1~5 SSU, and a certain content of digitized representation in form accessed number of times in a certain SSU, for example, 5 represent contents of this line of Content_1 are numbered 1 content in SSU-1 accessed 5 times again.It is to be noted, can be by the access to content distribution management module records access to content distribution situation in VSS, and access to content distributes and be actual content distribute, SSG without know SSU whether this content caching local or no this content is deleted from this locality, therefore, this mode that forms access to content distribution situation (access to content distribution table) by self-learning method can reduce the coupling between SSG and SSU, realize the strategy that carries out buffer memory by temperature described below if make SSU inside, just dispatch and can accomplish by the effect of content scheduling as long as treat cache contents by access to content distribution situation so.
Temperature computing module 304, for calculating the content temperature value of the content of SSU according to the access to content distribution situation after upgrading; Particularly, can, according to the access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in SSU, obtain the content temperature value of the content in SSU; For example, can calculate by following formula the content temperature value of the content in selecteed SSU:
Temperature value=this content of certain content the same day access times * weight on the same day+this content when all access times * when Zhou Quanchong+this content when all access times * when of that month weight+this content of the of that month access times * of Zhou Quanchong+this content when season access times * is when the * of the access times then weight then of season weight+this content.
Wherein, the same day, weight can be 1.0, and when Zhou Quanchong can be 0.8, of that month weight can be 0.5, when season weight can be 0.1, weight can be 0.02 then.Therefore, the temperature algorithm in the embodiment of the present invention can be considered ageing, and different time sections has different weights, and higher from the shorter weight of current time, the weight longer from current time is lower, is even 0.
Cache module 305, for the SSU that selects module 302 to select at SSU, carries out buffer memory to the forward content of rank in content temperature value.Particularly, can be on SSU selects SSU that module 302 selects, the forward content of rank in content temperature value is carried out to buffer memory, first from high to low the content in selected SSU is sorted according to the size of content temperature value, then choose several contents of high order end and carry out buffer memory.It is pointed out that the forward content of rank in said content temperature value here might not be session receiver module received set up the content that session request will be accessed.But in the time that the forward content of rank in the content temperature value on this SSU next time is accessed, this SSU has carried out buffer memory, and corresponding content can be provided rapidly.
Wherein, the session request of setting up that the content caching device that Fig. 3 provides can receiving digital television terminal sends, according to setting up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation, upgrade access to content distribution situation according to the selection to SSU, calculate the content temperature value of the content in SSU according to the access to content distribution situation after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, the hit rate of local cache is provided.
Refer to Fig. 4, Fig. 4 shows the structural representation of the another kind of content caching device that the embodiment of the present invention provides.Wherein, the content caching device 40 shown in Fig. 4 is that content caching device 30 is as shown in Figure 3 optimized and obtains.In the content caching device 40 shown in Fig. 4, further comprise respond module 401, playing request receiver module 402 and pushing module 403, and SSU selects module can further comprise the first judging unit 3021, the first selected cell 3022, the second selected cell 3023, the 3rd selected cell 3024, the second judging unit 3025 and the 4th selected cell 3026, wherein:
Respond module 401, sets up session request for response, sets up session with digital TV terminal; Particularly, can send response message to SM by VSS, then send response message to digital TV terminal by SM, to set up session with digital TV terminal.
Playing request receiver module 402, the playing request sending for receiving digital television terminal; Particularly, the playing request can receiving digital television terminal (for example, STB) sending.
Pushing module 403, for being pushed to digital TV terminal by setting up the content that session request will access.The content that the session request of setting up that session receiver module 301 can be received particularly, will be accessed is pushed to digital TV terminal.
SSU selects the first judging unit 3021 in module 302, for judging whether the content that the session request of setting up that session receiver module 301 receives will be accessed is accessed for the first time.
The first selected cell 3022, when judging at the first judging unit 3021 that to set up content that session request will access be not accessed for the first time, according to SSU loading condition, selects load factor to be less than or equal to the SSU of threshold value.The threshold value of the load factor here can be, for example, and 80%~90%.
The second selected cell 3023, for according to access to content distribution situation, the load factor of selecting from the first selected cell 3022 is less than or equal to the SSU of threshold value selects accessed this content (setting up the content that session request will be accessed) SSU that number of times is maximum.
The 3rd selected cell 3024, while being accessed for the first time for judge this content at the first judging unit 3021, the SSU of the value after selecting content ID that sequence number is this content divided by SSU quantity remainder number.Particularly, the sequence number of selected SSU is Content ID%n, and wherein, Content ID sets up the content ID of the content that session request will access, the quantity that n is SSU for this.
The second judging unit 3025, for judging that sequence number is whether delay machine or full load of the SSU of the content ID of this content value after divided by SSU quantity remainder number.
The 4th selected cell 3026, be the SSU of the content ID of this content value after divided by SSU quantity remainder number while delaying machine or full load for judge sequence number at the second judging unit 3025, select the machine of not delaying after the value of sequence number after the content ID of this content is divided by SSU quantity remainder number or the SSU of full load.For example, can select sequence number is the SSU of ContentID%n+1, machine or full load if the SSU that sequence number is ContentID%n+1 delays, and can select sequence number is the SSU of ContentID%n+2, the like, until find not the delay machine of sequence number after ContentID%n or the SSU of full load.
Wherein, the content caching device that Fig. 4 provides can be selected the SSU for buffer memory accordingly according to SSU loading condition and access to content distribution situation, and can be according to the content temperature value of the content in the access to content distribution situation calculating SSU after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, improve the hit rate of local cache.
Refer to Fig. 5, Fig. 5 shows the structural representation of the VSS that the embodiment of the present invention provides.VSS50 can comprise front end processor group 501 and plug-flow cell group 502, and front end processor group 501 comprises access to content distribution management module 5012 and SSG5011~5012, and plug-flow cell group 502 comprises multiple SSU5021~502n, wherein:
SSG5011 or 5012, the session request of setting up sending for receiving digital television terminal, according to the session request of setting up receiving, and selects corresponding SSU in conjunction with SSU loading condition and access to content distribution situation.Particularly, can first judge whether this content of setting up that session request will access is accessed for the first time, if this content of setting up that session request will access is not accessed for the first time, can be according to SSU loading condition, select the satisfactory SSU of load, for example, select load factor to be less than or equal to the SSU of threshold value, the threshold value of the load factor here can be, for example, 80%~90%, then can be according to access to content distribution situation, if from the satisfactory SSU of load, select accessed this set up SSU that content number of times that session request will access is maximum this to set up the content that session request will access be accessed for the first time, the sequence number of so selected SSU is Content ID%n, wherein, Content ID sets up the content ID of the content that session request will access for this, n is the quantity of SSU, the sequence number that is selected SSU is the value of this content ID that sets up the content that session request will access after divided by SSU quantity remainder number, then can judge that sequence number is whether delay machine or full load of the SSU of Content ID%n, machine or full load if this SSU delays, can select not the delay machine of sequence number after ContentID%n or the SSU of full load, for example, can select sequence number is the SSU of ContentID%n+1, machine or full load if the SSU that sequence number is ContentID%n+1 delays, can select sequence number is the SSU of ContentID%n+2, the like, until find not the delay machine of sequence number after ContentID%n or the SSU of full load.
Access to content distribution management module 5012, for upgrading access to content distribution situation according to the selection of SSG5011 or 5012 couples of SSU5021~502n.
SSU5021, for calculate the content temperature value of the content of the SSU being chosen by SSG5011 or 5012 according to the access to content distribution situation after upgrading, and the forward content of rank in content temperature value is carried out to buffer memory, first from high to low the content in selected SSU is sorted according to the size of content temperature value, then choose several contents of high order end and carry out buffer memory.Particularly, can, according to the access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in SSU, obtain the content temperature value of the content in SSU; For example, can calculate by following formula the content temperature value of the content in selecteed SSU:
Temperature value=this content of certain content the same day access times * weight on the same day+this content when all access times * when Zhou Quanchong+this content when all access times * when of that month weight+this content of the of that month access times * of Zhou Quanchong+this content when season access times * is when the * of the access times then weight then of season weight+this content.
Wherein, the same day, weight can be 1.0, and when Zhou Quanchong can be 0.8, of that month weight can be 0.5, when season weight can be 0.1, weight can be 0.02 then.Therefore, the temperature algorithm in the embodiment of the present invention can be considered ageing, and different time sections has different weights, and higher from the shorter weight of current time, the weight longer from current time is lower, is even 0.
Wherein, the session request of setting up that the VSS cocoa receiving digital television terminal that Fig. 5 provides sends, according to setting up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation, upgrade access to content distribution situation according to the selection to SSU, calculate the content temperature value of the content in SSU according to the access to content distribution situation after upgrading, and on the SSU selecting, the forward content of rank in content temperature value is carried out to buffer memory, thereby under existing network condition, in reducing the degree of coupling of SSG and SSU, the hit rate of local cache is provided.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Module in embodiment of the present invention device or unit can merge according to actual needs, divide and delete.
The content buffering method and the device that above the embodiment of the present invention are provided are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a content buffering method, is characterized in that, described method comprises:
The session request of setting up that receiving digital television terminal sends;
Set up session request according to described, and select corresponding SSU in conjunction with plug-flow cell S SU loading condition and access to content distribution situation;
According to the selection of described SSU being upgraded to described access to content distribution situation;
Calculate the content temperature value of the content in described SSU according to the described access to content distribution situation after upgrading;
On described SSU, the forward content of rank in content temperature value is carried out to buffer memory.
2. content buffering method according to claim 1, is characterized in that, describedly sets up session request according to described, and selects corresponding SSU to comprise in conjunction with SSU loading condition and access to content distribution situation:
Judge and describedly set up whether the content that session request will access is accessed for the first time;
If described content is not accessed for the first time, according to SSU loading condition, select load factor to be less than or equal to the SSU of threshold value;
According to access to content distribution situation, from being less than or equal to the SSU of threshold value, described load factor selects the maximum SSU of accessed described content number of times.
3. content buffering method according to claim 2, is characterized in that, described judge described set up content that session request will access be whether accessed for the first time after, also comprise:
If described content is accessed for the first time, selecting sequence number is the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
Judge that described sequence number is whether delay machine or full load of the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
Machine or full load if delay, select the machine of not delaying after the value of sequence number after the content ID of described content is divided by SSU quantity remainder number or the SSU of full load.
4. according to the content buffering method described in any one in claim 1~3, it is characterized in that, the described content temperature value of calculating the content in described SSU according to the described access to content distribution situation after upgrading comprises:
According to the described access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in described SSU, obtain the content temperature value of the content in described SSU.
5. according to the content buffering method described in any one in claim 1~3, it is characterized in that, described on described SSU, after in content temperature value, the forward content of rank is carried out buffer memory, described method also comprises:
Respond the described session request of setting up, set up session with described digital TV terminal;
Receive the playing request that described digital TV terminal sends;
Set up the content that session request will access and be pushed to described digital TV terminal described.
6. a content caching device, is characterized in that, described device comprises:
Session receiver module, the session request of setting up sending for receiving digital television terminal;
SSU selects module, describedly sets up session request, and select corresponding SSU in conjunction with SSU loading condition and access to content distribution situation for what receive according to described session receiver module;
Distributed update module, for selecting module to upgrade described access to content distribution situation to the selection of described SSU according to described SSU;
Temperature computing module, for calculating the content temperature value of the content of described SSU according to the described access to content distribution situation after upgrading;
Cache module, for the described SSU that selects module to select at described SSU, carries out buffer memory to the forward content of rank in content temperature value.
7. content caching device according to claim 6, is characterized in that, described SSU selects module to comprise:
The first judging unit, describedly sets up whether the content that session request will access is accessed for the first time for judging;
The first selected cell, while not being accessed for the first time, according to SSU loading condition, selects load factor to be less than or equal to the SSU of threshold value for judge described content at described the first judging unit;
The second selected cell, for according to access to content distribution situation, the described load factor of selecting from described the first selected cell is less than or equal to the SSU of threshold value selects the maximum SSU of accessed described content number of times.
8. content caching device according to claim 7, is characterized in that, described SSU selects module also to comprise:
The 3rd selected cell, while being accessed for the first time for judge described content at described the first judging unit, the SSU of the value after selecting content ID that sequence number is described content divided by SSU quantity remainder number;
The second judging unit, for judging that described sequence number is whether delay machine or full load of the SSU of the content ID of the described content value after divided by SSU quantity remainder number;
The 4th selected cell, be the SSU of the content ID of the described content value after divided by SSU quantity remainder number while delaying machine or full load for judge described sequence number at described the second judging unit, select the machine of not delaying after the value of sequence number after the content ID of described content is divided by SSU quantity remainder number or the SSU of full load.
9. according to the content caching device described in claim 6~8, it is characterized in that, described temperature computing module specifically for:
According to the described access to content distribution situation after upgrading, by the difference superposition after the accessed number of times of each time period is multiplied by corresponding weight of the content in described SSU, obtain the content temperature value of the content in described SSU.
10. according to the content caching device described in claim 6~8, it is characterized in that, described device also comprises:
Respond module, for responding the described session request of setting up, sets up session with described digital TV terminal;
Playing request receiver module, the playing request sending for receiving described digital TV terminal;
Pushing module, for setting up the content that session request will access and be pushed to described digital TV terminal described.
CN201410104911.9A 2014-03-20 2014-03-20 Content caching method and device Pending CN103905923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410104911.9A CN103905923A (en) 2014-03-20 2014-03-20 Content caching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410104911.9A CN103905923A (en) 2014-03-20 2014-03-20 Content caching method and device

Publications (1)

Publication Number Publication Date
CN103905923A true CN103905923A (en) 2014-07-02

Family

ID=50997037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410104911.9A Pending CN103905923A (en) 2014-03-20 2014-03-20 Content caching method and device

Country Status (1)

Country Link
CN (1) CN103905923A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978523A (en) * 2014-11-06 2015-10-14 哈尔滨安天科技股份有限公司 Malicious sample capture method and system based on network hot word recognition
CN105577822A (en) * 2016-01-27 2016-05-11 北京国电通网络技术有限公司 Content distribution network (CDN) node based cache centralized management system
CN107872478A (en) * 2016-09-26 2018-04-03 中国移动通信有限公司研究院 A kind of content buffering method, device and system
CN110099061A (en) * 2019-05-07 2019-08-06 北京邮电大学 A kind of cloud platform video streaming services selection method and device
CN114490781A (en) * 2022-04-01 2022-05-13 中国信息通信研究院 Block chain data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026744A (en) * 2007-03-30 2007-08-29 Ut斯达康通讯有限公司 Distributed flow media distribution system, and flow media memory buffer and scheduling distribution method
CN101026741A (en) * 2006-02-21 2007-08-29 上海贝尔阿尔卡特股份有限公司 VOD frequency treating method and device
CN102595207A (en) * 2012-01-10 2012-07-18 深圳市同洲视讯传媒有限公司 Content distribution system, method and device
CN103236989A (en) * 2013-04-25 2013-08-07 青岛海信传媒网络技术有限公司 Cache control method, devices and system in content delivery network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026741A (en) * 2006-02-21 2007-08-29 上海贝尔阿尔卡特股份有限公司 VOD frequency treating method and device
CN101026744A (en) * 2007-03-30 2007-08-29 Ut斯达康通讯有限公司 Distributed flow media distribution system, and flow media memory buffer and scheduling distribution method
CN102595207A (en) * 2012-01-10 2012-07-18 深圳市同洲视讯传媒有限公司 Content distribution system, method and device
CN103236989A (en) * 2013-04-25 2013-08-07 青岛海信传媒网络技术有限公司 Cache control method, devices and system in content delivery network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978523A (en) * 2014-11-06 2015-10-14 哈尔滨安天科技股份有限公司 Malicious sample capture method and system based on network hot word recognition
CN105577822A (en) * 2016-01-27 2016-05-11 北京国电通网络技术有限公司 Content distribution network (CDN) node based cache centralized management system
CN105577822B (en) * 2016-01-27 2018-10-12 北京国电通网络技术有限公司 Caching centralized management system based on CDN node
CN107872478A (en) * 2016-09-26 2018-04-03 中国移动通信有限公司研究院 A kind of content buffering method, device and system
CN110099061A (en) * 2019-05-07 2019-08-06 北京邮电大学 A kind of cloud platform video streaming services selection method and device
CN114490781A (en) * 2022-04-01 2022-05-13 中国信息通信研究院 Block chain data processing method and device
CN114490781B (en) * 2022-04-01 2022-07-22 中国信息通信研究院 Block chain data processing method and device

Similar Documents

Publication Publication Date Title
US20230057507A1 (en) Content Distribution Network Supporting Popularity-Based Caching
CN101237429B (en) Stream media living broadcasting system, method and device based on content distribution network
CN101160942B (en) Method and system for mobile terminal downloading data and data sharing between mobile terminals
CN101136911B (en) Method to download files using P2P technique and P2P download system
CN103905923A (en) Content caching method and device
CN101262488B (en) A content distribution network system and method
CN100553331C (en) Based on the content distribution in the video network of P2P technology and storage system and method thereof
CN104967861A (en) CDN video buffer system and method
CN102316135A (en) Network on-demand method and system
CN101710902A (en) Unstructured P2P network, data searching method thereof and index updating method thereof
CN205430501U (en) Mobile terminal web advertisement video and positive video seamless handover device
US20060005224A1 (en) Technique for cooperative distribution of video content
CN102546775A (en) Node in CDN (content delivery network) and automatic networking method thereof
CN104735044A (en) Streaming media live broadcast method and system
CN113453038A (en) Effectiveness optimal collaborative cache management method under CDN-P2P hybrid architecture
CN101888403B (en) Method and system for storing and distributing electronic content
CN113596166B (en) Data acquisition method, device, computer equipment and storage medium
CN102780710A (en) Node scheduling method based on content distribution network
CN104767796B (en) A kind of car networking hot point resource management method based on mobile P 2 P
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN102316362A (en) Internet protocol television (IPTV) content scheduling method and apparatus thereof
CN108616600A (en) Resource regulating method, client server, node device, network system and medium
CN102075584A (en) Distributed file system and access method thereof
CN109716731A (en) For providing the system and method for functions reliably and efficiently data transmission
CN102821316A (en) Improved video on demand (VOD) transmission method based on peer-to-peer computing core algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140702

WD01 Invention patent application deemed withdrawn after publication