CN103701883A - Method and equipment for injecting stream media fragments into cache system and cache system - Google Patents

Method and equipment for injecting stream media fragments into cache system and cache system Download PDF

Info

Publication number
CN103701883A
CN103701883A CN201310699021.2A CN201310699021A CN103701883A CN 103701883 A CN103701883 A CN 103701883A CN 201310699021 A CN201310699021 A CN 201310699021A CN 103701883 A CN103701883 A CN 103701883A
Authority
CN
China
Prior art keywords
streaming media
media fragment
caching system
streaming
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310699021.2A
Other languages
Chinese (zh)
Other versions
CN103701883B (en
Inventor
杨军
韩霆军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310699021.2A priority Critical patent/CN103701883B/en
Publication of CN103701883A publication Critical patent/CN103701883A/en
Application granted granted Critical
Publication of CN103701883B publication Critical patent/CN103701883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and equipment for injecting stream media fragments into a cache system and the cache system, which aims at providing a scheme of supporting the stream media fragments to be injected into the cache system in a parallel way. The scheme is characterized in that a read-write lock is distributed for the stream media fragments to be injected into the cache system, so the stream media fragments provided with the read-write lock can only be subjected to read and write by one terminal within one period. As the conflict is avoided between the read and write operations of the same stream media fragment by different terminals, the different stream media fragments of the stream media content can be injected into the cache system in parallel.

Description

Streaming Media fragment is injected method, equipment and the caching system of caching system
Technical field
The present invention relates to communication technical field, relate in particular to method, equipment and caching system that a kind of Streaming Media fragment is injected caching system.
Background technology
Universal and mobile broadband (Mobile Broadband along with intelligent terminal, MBB) fast development of business, mobile video business, by mobile network, watch or the business of foradownloaded video information becomes the fastest-rising business of current internet, the video information flow in existing network surpasses the information flow-rate of shift(ing) ring net (Web) business (accessing the business of Web by mobile network) first.According to the prediction of authoritative professional institution, the video information flow in mobile network will keep 100%~400% growth rate in 10 years of future.Because video information transmission is for mobile network's bandwidth consumption is large and duty ratio is high, delay requirement is high, and the transmission bandwidth of wireless network itself is very limited and network stabilization is poor, propagation delay time is large, thus current wireless network be not suitable for transmission of video information.
The above-mentioned defect of the wireless network based on current, the development of MBB business at present mainly can be faced following problems:
1,, during user's initial play video, the long period need to be waited for;
When 2, video is play in terminal, break is serious;
3, video information flow serious waste phenomenon;
4, hot video repeated downloads rate is high, has not only increased settlement between different carriers expense, has also increased the weight of the offered load of terminal-to-terminal service (End to End, E2E), and busy even can be aggravated network congestion, reduces user and experiences.
In order to address the above problem, general solution is to dispose caching system at the intermediate node near terminal at present, thereby the video information of realization based on storing in caching system etc. are optimized MBB business.Wherein, here said caching system to can be, but not limited to be Cache servers that comprise cache memory (Cache) etc.
Realize prior art a kind of system structural representation as shown in Figure 1.This system mainly consists of client, caching system and original server, and caching system consists of service module, content analysis module, memory management module, memory and download module again.
In prior art, realizing the process that the information that is matched with the access request of client is injected in memory mainly comprises the steps:
Step 1, service module receives the access request of client;
Step 2, the access request that content analysis module receives by Analysis Service module, determines the Streaming Media fragment (being generally the part or all of content of streaming medium content) of this access request institute request access, and inquires about this Streaming Media fragment to memory management module; If query hit, the response that local echoing comprises this content is to client, if query missed, content analysis module is controlled download module and obtained this content to original server, and continues execution step 3;
Step 3, when download module gets this content from original server, service module sends to client by this content under the control of content analysis module, simultaneously, this content that memory management module obtains download module under the control of content analysis module is saved in memory, to realize, this content is injected in memory.
The shortcoming of the prior art is: be mainly applicable to the scene injected for the content serial of single client, and and be not suitable for the situation of single or multiple client Concurrency Access, be difficult to realize the concurrent injection of video content.
Summary of the invention
Method, equipment and caching system that the embodiment of the present invention provides a kind of Streaming Media fragment to inject caching system, in order to provide a kind of concurrent scheme being injected in caching system of Streaming Media fragment of supporting video content.
The embodiment of the present invention is by the following technical solutions:
First aspect, a kind of Streaming Media fragment is injected the method for caching system, comprising: at least one Streaming Media fragment of determining caching system to be injected; To caching system, sending and comprise the Read-Write Locks distribution request of injecting range information, so that described caching system distributes request according to described Read-Write Locks, is the indicated one or more Streaming Media fragment allocation Read-Write Locks of described injection range information; Wherein, described injection range information comprises between the position or lane place of the streaming medium content of each Streaming Media fragment under it of waiting to inject described caching system; Utilize the transmission link between described caching system and at least one terminal, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system; Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
In conjunction with first aspect, in the possible implementation of the first, before the Streaming Media fragment of having distributed Read-Write Locks in described at least one Streaming Media fragment is injected to described caching system, also comprise: the injection contextual information according to the transmission link between each terminal and described caching system selects object transmission link from all transmission links; The described transmission link utilizing between described caching system and at least one terminal, to in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system, comprise: utilize described object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, described injection contextual information at least comprises a kind of of following information: transmission rate information; The information of information transmission performance; The information of nominal bandwidth.
In conjunction with first aspect, in the third possible implementation, determine at least one Streaming Media fragment of caching system to be injected, specifically comprise: the streaming medium content access request that receiving terminal sends; Wherein, described streaming medium content access request is for request access streaming medium content; To the described caching system inquiry metadata corresponding with described streaming medium content access request; According to the Query Result of described caching system feedback, at least one Streaming Media fragment of the streaming medium content of asking from the described streaming medium content access request of service provider SP acquisition; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the clip stream media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
The third possible implementation in conjunction with first aspect, in the 4th kind of possible implementation, according to described Query Result, from described SP, obtain described at least one Streaming Media fragment, specifically comprise: when described Query Result represents to inquire described metadata in described caching system, whole Streaming Media fragments of the streaming medium content of asking from the described streaming medium content access request of described SP acquisition.
The 4th kind of possible implementation in conjunction with first aspect, in the 5th kind of possible implementation, described method also comprises: when described Query Result is illustrated in, inquire described metadata in described caching system, and during the part Streaming Media fragment in the described streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, from described SP, obtain in the streaming medium content that described streaming medium content access request asks, described metadata is failed corresponding Streaming Media fragment.
The 5th kind of possible implementation in conjunction with first aspect, in the 6th kind of possible implementation, described method also comprises: judge in the streaming medium content that described streaming medium content access request asks, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of described caching system and whether is less than Preset Time threshold value; Be less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, inject after described caching system the described metadata obtaining from described SP being failed to corresponding Streaming Media fragment, from described caching system, obtain the Streaming Media fragment of the streaming medium content that described streaming medium content access request asks; The Streaming Media fragment of the streaming medium content that the described streaming medium content access request of obtaining from described caching system is asked offers the terminal that sends described streaming medium content access request.
In conjunction with the third of first aspect to any one implementation in the 6th kind of possible implementation, in the 7th kind of possible implementation, described method also comprises: when described Query Result is illustrated in, inquire described metadata in described caching system, and during the whole Streaming Media fragment in the streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, if determine described caching system, do not store all Streaming Media fragments of the streaming medium content that described streaming medium content access request asks, in the streaming medium content of asking from the described streaming medium content access request of described SP acquisition, be not stored in the Streaming Media fragment in described caching system.
The 7th kind of possible implementation in conjunction with first aspect, in the 8th kind of possible implementation, from described SP, obtain the Streaming Media fragment in described caching system that is not stored in the streaming medium content that described streaming medium content access request asks, specifically comprise: in all Streaming Media fragments of the streaming medium content of asking according to described streaming medium content access request, injected the accounting of the Streaming Media fragment of described caching system, and/or current injection Streaming Media fragment is to the charge velocity information of described caching system, judge whether to obtain from described SP the Streaming Media fragment in described caching system that is not stored in of streaming medium content that described streaming medium content access request ask, judgment result is that while needing, from described SP, obtaining the Streaming Media fragment in described caching system that is not stored in of streaming medium content that described streaming medium content access request asks.
In conjunction with the third of first aspect to any one implementation in the 8th kind of possible implementation, in the 9th kind of possible implementation, the described Streaming Media fragment of described Read-Write Locks of having distributed is injected after described caching system, described method also comprises: trigger described caching system and discharge described Read-Write Locks, and upgrade described metadata.
Second aspect, a kind of Streaming Media fragment is injected the method for caching system, comprising: caching system receives Read-Write Locks and distributes request; Wherein, Read-Write Locks is distributed in request and is comprised injection range information; Described injection range information comprises between the position or lane place of the streaming medium content of one or more Streaming Media fragments under it of waiting to inject described caching system; According to described injection range information, from waiting to inject the Streaming Media fragment of described caching system, determine the Streaming Media fragment that can be assigned with Read-Write Locks, and the Streaming Media fragment allocation Read-Write Locks for determining; Send Read-Write Locks assignment response message to terminal, so that terminal is injected described caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; Wherein, the Streaming Media fragment that has been assigned with described Read-Write Locks only can be carried out write operation by a terminal at one time; Described in receiving and store, described caching system has been assigned with the Streaming Media fragment of Read-Write Locks.
In conjunction with second aspect, in the possible implementation of the first, before being assigned with the Streaming Media fragment of Read-Write Locks described in described caching system storage, described method also comprises: whether described caching system receives can be to the injection inquiry request that has been assigned with the Streaming Media fragment of Read-Write Locks described in described caching system injection for inquiring about; Described caching system is according to the congestion situation of the network at described caching system place, and/or the congestion situation of the disk of described caching system, judges whether to be assigned with described in injecting to described caching system the Streaming Media fragment of Read-Write Locks; Described caching system is being judged while being assigned with the Streaming Media fragment of Read-Write Locks described in injecting to described caching system, sends the response message that has been assigned with the Streaming Media fragment of Read-Write Locks described in can injecting to described caching system for notifying.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second, before described caching system receives described Read-Write Locks distribution request, described method also comprises: described caching system receives metadata query request; Described metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of waiting to inject described caching system; Described caching system sends Query Result; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the corresponding Streaming Media fragment of the described metadata inquiring in described caching system.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, be assigned with after the Streaming Media fragment of Read-Write Locks described in the storage of described caching system, described method also comprises: described caching system receives Read-Write Locks and releases order; Described caching system discharges described Read-Write Locks, and upgrades described metadata.
The third aspect, a kind of Streaming Media fragment is injected the equipment of caching system, comprising: Streaming Media fragment determining unit, for determining at least one Streaming Media fragment of caching system to be injected; Request transmitting unit, for sending to caching system, comprise the Read-Write Locks distribution request of injecting range information, so that described caching system distributes request according to described Read-Write Locks, be the indicated one or more Streaming Media fragment allocation Read-Write Locks of described injection range information; Wherein, described injection range information comprises between the position or lane place of the streaming medium content of each Streaming Media fragment under it of waiting to inject described caching system; Streaming Media fragment is injected unit, for utilizing the transmission link between described caching system and at least one terminal, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system; Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
In conjunction with the third aspect, in the possible implementation of the first, described equipment also comprises: object transmission link is chosen unit, and the injection contextual information for the transmission link respectively and between described caching system according to each terminal selects object transmission link from all transmission links; Described Streaming Media fragment inject unit specifically for: utilize described object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system.
In conjunction with the third aspect, in the possible implementation of the second, described Streaming Media fragment determining unit, specifically comprises: receive subelement, the streaming medium content access request sending for receiving terminal; Wherein, described streaming medium content access request is for request access streaming medium content; Inquiry subelement, for inquiring about the metadata corresponding with described streaming medium content access request to described caching system; Obtain subelement, for according to the Query Result of described caching system feedback, from service provider SP, obtain at least one Streaming Media fragment that described streaming medium content access request is asked; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the Streaming Media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
In conjunction with the possible implementation of the second of the third aspect, in the third possible implementation, described reception subelement specifically for: when described Query Result represents not inquire described metadata in described caching system, whole Streaming Media fragments of the streaming medium content of asking from the described streaming medium content access request of described SP acquisition.
The third possible implementation in conjunction with the third aspect, in the 4th kind of possible implementation, described reception subelement also for: when described Query Result is illustrated in described caching system, inquire described metadata, and during the part Streaming Media fragment in the described streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, from described SP, obtain in the streaming medium content that described streaming medium content access request asks, described metadata is failed corresponding Streaming Media fragment.
The 4th kind of possible implementation in conjunction with the third aspect, in the 5th kind of possible implementation, described equipment also comprises: judging unit, for judging the streaming medium content that described streaming medium content access request is asked, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of described caching system and whether is less than Preset Time threshold value; Content obtaining unit, for being less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, inject after described caching system the described metadata obtaining from described SP being failed to corresponding Streaming Media fragment, from described caching system, obtain the Streaming Media fragment of the streaming medium content that described streaming medium content access request asks; Content sending unit, offers for the Streaming Media fragment of streaming medium content that the described streaming medium content access request of obtaining from described caching system is asked the terminal that sends described streaming medium content access request.
In conjunction with any one implementation in five kinds of possible implementations of the second to the of the third aspect, in the 6th kind of possible implementation, described reception subelement also for: when described Query Result is illustrated in described caching system, inquire described metadata, and during the whole Streaming Media fragment in the streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, if determine described caching system, do not store all Streaming Media fragments of the streaming medium content that described streaming medium content access request asks, in the streaming medium content of asking from the described streaming medium content access request of described SP acquisition, be not stored in the Streaming Media fragment in described caching system.
The 6th kind of possible implementation in conjunction with the third aspect, in the 7th kind of possible implementation, described reception subelement specifically for: in all Streaming Media fragments of the streaming medium content of asking according to described streaming medium content access request, injected the accounting of the Streaming Media fragment of described caching system, and/or current injection Streaming Media fragment is to the charge velocity information of described caching system, judge whether the Streaming Media fragment in described caching system that is not stored in of the streaming medium content that need to ask from the described streaming medium content access request of described SP acquisition; Judgment result is that while needing, from described SP, obtaining the Streaming Media fragment in described caching system that is not stored in of streaming medium content that described streaming medium content access request asks.
Fourth aspect, a kind of caching system, comprising: distribute request reception unit, for receiving Read-Write Locks, distribute request; Wherein, Read-Write Locks is distributed in request and is comprised injection range information; Described injection range information comprises between the position or lane place of the streaming medium content of one or more Streaming Media fragments under it of waiting to inject described caching system; Streaming Media fragment determining unit, for according to described injection range information, from waiting to inject the Streaming Media fragment of described caching system, determine the Streaming Media fragment that can be assigned with Read-Write Locks; Lock allocation units, are used to the Streaming Media fragment allocation Read-Write Locks of determining; Information transmitting unit, after the Streaming Media fragment allocation Read-Write Locks for determining, sends Read-Write Locks assignment response message to terminal, so that terminal is injected described caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; Wherein, the Streaming Media fragment that has been assigned with described Read-Write Locks only can be carried out write operation by a terminal at one time; Streaming Media fragment receiving element, for being assigned with the Streaming Media fragment of Read-Write Locks described in receiving; Memory cell, for being assigned with the Streaming Media fragment of Read-Write Locks described in storing.
In conjunction with fourth aspect, in the possible implementation of the first, described caching system also comprises: inject inquiry request receiving element, whether for before being assigned with the Streaming Media fragment of Read-Write Locks described in the reception of Streaming Media fragment receiving element, receiving can be to the injection inquiry request that has been assigned with the Streaming Media fragment of Read-Write Locks described in described caching system injection for inquiring about; Judging unit, for according to the congestion situation of the network at described caching system place, and/or the congestion situation of the disk of described caching system, judges whether to be assigned with described in injecting to described caching system the Streaming Media fragment of Read-Write Locks; Message sending unit, while being assigned with the Streaming Media fragment of Read-Write Locks for judging at described judging unit described in injecting to described caching system, send the response message that has been assigned with the Streaming Media fragment of Read-Write Locks described in can injecting to described caching system for notifying.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, in the possible implementation of the second, described caching system also comprises: metadata query request reception unit, for before receiving described Read-Write Locks distribution request, receives metadata query request; Described metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of waiting to inject described caching system; Result transmitting element, for sending Query Result; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the Streaming Media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
In conjunction with fourth aspect, in the third possible implementation, described caching system also comprises: the receiving element that releases order, for after being assigned with the Streaming Media fragment of Read-Write Locks described in described cell stores, receiving Read-Write Locks and release order; Releasing unit, for releasing order according to described Read-Write Locks, discharges described Read-Write Locks; Updating block, for releasing order according to described Read-Write Locks, upgrades described metadata.
The beneficial effect of the embodiment of the present invention is as follows:
The scheme that the embodiment of the present invention provides due to the Streaming Media fragment allocation in caching system to be injected into Read-Write Locks, thereby the Streaming Media fragment that has made to be assigned with Read-Write Locks only can be carried out write operation by a terminal at one time, this scheme providing due to the embodiment of the present invention can make different terminals for not clashing between the write operation of same flow media content, therefore can support concurrent being injected in caching system of various flows media fragment of streaming medium content.
Accompanying drawing explanation
Fig. 1 is for realizing a kind of system schematic of mobile video business in prior art;
A kind of Streaming Media fragment that Fig. 2 provides for the embodiment of the present invention is injected the idiographic flow schematic diagram of the method for caching system;
The another kind of Streaming Media fragment that Fig. 3 provides for the embodiment of the present invention is injected the idiographic flow schematic diagram of the method for caching system;
Fig. 4 is for implementing the system architecture schematic diagram of embodiments of the invention one, embodiment bis-and embodiment tri-;
Fig. 5 is the schematic diagram of the capital equipment that comprises of the system architecture after improvement;
Fig. 6 is the internal structure schematic diagram of Proxy Cache;
Fig. 7 is the specific implementation flow chart of embodiment mono-;
Fig. 8 is the specific implementation flow chart of embodiment bis-;
Fig. 9 is the specific implementation flow chart of embodiment tri-;
A kind of Streaming Media fragment that Figure 10 provides for the embodiment of the present invention is injected the concrete structure schematic diagram of the equipment of caching system;
The concrete structure schematic diagram of a kind of caching system that Figure 11 provides for the embodiment of the present invention;
The another kind of Streaming Media fragment that Figure 12 provides for the embodiment of the present invention is injected the concrete structure schematic diagram of the equipment of caching system;
The concrete structure schematic diagram of the another kind of caching system that Figure 13 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with Figure of description, embodiments of the invention are described, should be appreciated that embodiment described herein, only for description and interpretation the present invention, is not limited to the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in this explanation can be interosculated.
First, the embodiment of the present invention provides a kind of Streaming Media fragment to inject the method for caching system, and the main schematic flow sheet of the method as shown in Figure 2, comprises the steps:
Step 21, at least one Streaming Media fragment of definite caching system to be injected;
Wherein, when this Streaming Media fragment is the Streaming Media fragment of terminal institute acquisition request, the specific implementation process of step 21 can comprise:
First, obtain the streaming medium content access request that terminal sends;
Then, to caching system inquiry and the corresponding metadata of this streaming medium content access request;
Finally, according to the Query Result of caching system feedback, from SP, obtain described at least one Streaming Media fragment.Wherein, whether said Query Result inquires this metadata at caching system for expression here, and the Streaming Media fragment of the corresponding streaming medium content of this metadata inquiring in caching system.
In general, Query Result can have following several:
1, in caching system, do not inquire this metadata;
2, in caching system, inquire this metadata, but part Streaming Media fragment in the streaming medium content that the corresponding streaming medium content access request of this metadata is asked;
3, in caching system, inquire this metadata, and the whole Streaming Media fragments in the corresponding streaming medium content access request of this metadata streaming medium content of asking.
For the 1st kind of Query Result, whole Streaming Media fragments of the streaming medium content that can directly ask from SP acquisition streaming medium content access request.
For the 2nd kind of Query Result, can obtain in the streaming medium content that streaming medium content access request ask from SP, this metadata is failed corresponding Streaming Media fragment.
For the 3rd kind of Query Result, if also further determine all Streaming Media fragments of caching system this streaming medium content that request of stored stream media access to content is not asked, in the streaming medium content that can ask from SP acquisition streaming medium content access request, be not stored in the Streaming Media fragment in caching system.
Optionally, for the 3rd kind of Query Result, the process that is not stored in the Streaming Media fragment in caching system in the streaming medium content of asking from SP acquisition streaming medium content access request specifically can comprise:
First, in all Streaming Media fragments of the streaming medium content of asking according to this streaming medium content access request, injected the accounting of the Streaming Media fragment of caching system, and/or current Streaming Media fragment is to the charge velocity information of caching system, judge whether the Streaming Media fragment in caching system that is not stored in of the streaming medium content that need to ask from SP acquisition streaming medium content access request;
Then, judgment result is that while needing, from SP, obtaining the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request asks.
Step 22, sends and comprises the Read-Write Locks distribution request of injecting range information to caching system, so that caching system distributes request according to Read-Write Locks, for injecting the indicated one or more Streaming Media fragment allocation Read-Write Locks of range information;
Wherein, inject between the position or lane place of the streaming medium content of each Streaming Media fragment under it that range information comprises caching system to be injected.
Step 23, utilizes the transmission link between caching system and at least one terminal, by the distribution in described at least one Streaming Media fragment the Streaming Media fragment of Read-Write Locks inject caching system.Wherein, the Streaming Media fragment that is assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
In the embodiment of the present invention, before execution step 23, can be according to each terminal the injection contextual information of the transmission link respectively and between caching system, from all transmission links, select object transmission link.Thereby the specific implementation of step 23 can comprise: utilize object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject caching system.
Wherein, injecting that contextual information can be, but not limited to is the information of transmission rate information, information transmission performance and/or the information of nominal bandwidth.
It should be noted that, when previously described Query Result represents the 2nd kind of Query Result, the method that the embodiment of the present invention provides can further include step:
First, in the streaming medium content that judgement streaming medium content access request is asked, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of caching system and whether is less than Preset Time threshold value;
Be less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, in the described metadata that will obtain from SP, fail corresponding Streaming Media fragment and injecting after caching system, from caching system, obtaining the Streaming Media fragment of the streaming medium content that streaming medium content access request asks;
The Streaming Media fragment of the streaming medium content that the streaming medium content access request of obtaining from caching system is asked offers the terminal that sends streaming medium content access request.
It should be noted that in addition, passing through execution step 23, realization by wait inject caching system described at least one Streaming Media fragment distribution the Streaming Media fragment of Read-Write Locks inject after caching system, the method that the embodiment of the present invention provides can further include step: trigger caching system and discharge Read-Write Locks, and upgrade corresponding metadata.
The such scheme providing by the embodiment of the present invention, owing to making different terminals for not clashing between the write operation of same flow media content, therefore can support concurrent being injected in caching system of various flows media fragment of streaming medium content.
The inventive concept of injecting the method for caching system for the above-mentioned Streaming Media Streaming Media fragment providing with the embodiment of the present invention, the embodiment of the present invention also provides another kind of Streaming Media Streaming Media fragment to inject the method for caching system, the idiographic flow schematic diagram of the method as shown in Figure 3, mainly comprises the steps:
Step 31, caching system receives Read-Write Locks and distributes request;
Wherein, Read-Write Locks is distributed in request and is comprised injection range information.
Inject between the position or lane place of one or more Streaming Media fragments that range information comprises caching system to be injected streaming medium content under it.
Step 32, caching system, according to injecting range information, from the Streaming Media fragment of caching system to be injected, is determined the Streaming Media fragment that can be assigned with Read-Write Locks, and the Streaming Media fragment allocation Read-Write Locks for determining;
Step 33, caching system sends Read-Write Locks assignment response message to terminal, so that terminal is injected caching system by the Streaming Media fragment that has been assigned with Read-Write Locks;
Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
Step 34, caching system receives and stores the Streaming Media fragment that has been assigned with Read-Write Locks.
Optionally, this caching system that the embodiment of the present invention provides can also independently judge whether to allow the injection of the Streaming Media fragment of streaming medium content.In order to reach this object, before Streaming Media fragment caching system, that be assigned with described Read-Write Locks is injected in caching system storage, said method can further include following step:
First, caching system receives for inquiring about whether can inject to this caching system the injection inquiry request of the Streaming Media fragment that has been assigned with Read-Write Locks;
Then, caching system is according to the congestion situation of the network at this caching system place, and/or the information of the congestion situation of the disk of this caching system, judges whether to inject the Streaming Media fragment that has been assigned with Read-Write Locks to this caching system;
Finally, caching system, judging and can injecting while being assigned with the Streaming Media fragment of Read-Write Locks to caching system, sends for notifying and can inject the response message that be assigned with the Streaming Media fragment in Read-Write Locks Streaming Media to caching system.
Optionally, this caching system in the embodiment of the present invention can also be supported the inquiry to metadata.Particularly, before above-mentioned steps 31, the method that the embodiment of the present invention provides can further include:
Caching system receives metadata query request, and this metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of transmission link injection caching system to be utilized;
Caching system sends Query Result; Wherein, whether this Query Result inquires this metadata at caching system for representing, and this metadata inquiring in caching system is corresponding, the Streaming Media fragment that is stored in the streaming medium content in caching system.
Optionally, in order to realize the release to the renewal of metadata and Read-Write Locks, in the method that the embodiment of the present invention provides, after step 33 is finished, can also further carry out following step:
Caching system receives Read-Write Locks and releases order; Caching system discharges Read-Write Locks, and upgrades the metadata corresponding with the Streaming Media fragment of the streaming medium content injecting.
Below pass through the introduction to 3 embodiment, the such scheme that the detailed description embodiment of the present invention provides application in practice.It should be noted that, it is example that following 3 embodiment mainly be take this Streaming Media of video content, illustrates that how adopting such scheme that the embodiment of the present invention provides to realize injects caching system by the Streaming Media fragment of video content.Those skilled in the art can understand, and the such scheme that adopts the embodiment of the present invention to provide is not limited in to realize the Streaming Media fragment of video content is injected to caching system, and it also realizes the injection to the Streaming Media of other types.
Before introducing 3 embodiment, first to implementing the system architecture of these 3 embodiment, carry out following simple declaration.
Refer to Fig. 4, it for disposing the schematic diagram of Cache between user terminal and SP.Wherein, this Cache is deployed in GGSN or SAE-GW.This structure based on as shown in Figure 4, user terminal (User Equipment, UE), by access RAN, can be realized the access of the streaming medium content that the Cache to arranging in GGSN/SAE-GW stores.When the Streaming Media fragment of user terminal requests access is hit in Cache this locality, can directly respond user terminal; And when the Streaming Media fragment of the local miss user terminal requests access of Cache, can obtain corresponding Streaming Media fragment and feed back from SP.
This system architecture based on as shown in Figure 4, can realize and avoid UE from the identical Streaming Media fragment of SP repeated downloads, thereby saves flow and the impact to SP of backbone network, reduces the time delay that UE obtains Streaming Media fragment.
In the embodiment of the present invention, further said system framework is improved, make it can realize the concurrent injection of the Streaming Media fragment of streaming medium content.The schematic diagram of the capital equipment that particularly, the said system framework after improvement comprises as shown in Figure 5.It should be noted that, in order to make the invention emphasis of the embodiment of the present invention more directly perceived and outstanding, in Fig. 5, omitted RAN and the SGSN/MME in Fig. 4.
As shown in Figure 5, than Fig. 4, it has mainly increased proxy server (Proxy Server) and these two equipment of agent client (Proxy Client).It can be the virtual unit of realizing with software, can be also physical equipment.Wherein, Proxy Server and UE side can connect, Proxy Client can with Fig. 4 in Cache connect.Proxy Server, Proxy Client and Cache can be considered as belonging to together an equipment of acting on behalf of cache memory (Proxy Cache).
Below stress the internal structure of Proxy Cache.
Please refer to Fig. 6, it is the internal structure schematic diagram of Proxy Cache.As shown in Figure 6, Proxy Cache, except comprising Proxy Server, Proxy Client and these capital equipments of Cache, also comprises video cache memory (Video Cache), decision-making (Policy) equipment.Meanwhile, Cache comprises distributed lock service (Distribute File Lock Service, DFLS), meta data server (Metadata Server, MDS) and object storage device (Object-Store Device, OSD).Annexation between above-mentioned each equipment also please refer to Fig. 6.
Structure based on as shown in Figure 6 and the annexation between equipment, below simply introduce the major function of above-mentioned each equipment:
Proxy Server, the video content access request sending for receiving and resolve UE, and after obtaining the Streaming Media fragment of mating with this video content access request, to UE, feed back this Streaming Media fragment.
Whether Video Cache, for the analysis result to the video content access request of UE transmission according to Proxy Server, inquire about the metadata of the Streaming Media fragment of UE institute request access and can all hit in Cache this locality to MDS.If inquire the metadata of this Streaming Media fragment, can all hit in Cache this locality, and to judge local this Streaming Media fragment of preserving of Cache be complete, from Cache, obtain this Streaming Media fragment and send to UE; If the metadata of this Streaming Media fragment only can partly be hit in Cache this locality, to Policy equipment query video content access request forwarding strategy, and what represent at this strategy of Policy equipment feedback is in the time of need to obtaining Streaming Media fragment from SP, notice Proxy Client obtains the Streaming Media fragment matching with this video content access request from SP; And if the metadata of this Streaming Media fragment can not be hit completely in Cache this locality, notify Proxy Client from SP, to obtain the Streaming Media fragment matching with this video content access request.
In addition, Video Cache also for: receive the Streaming Media fragment that is matched with video content access request that Proxy Client obtains from SP and be also transmitted to UE; The Streaming Media fragment allocation Read-Write Locks receiving for Video Cache to MDS application, wherein, the Read-Write Locks here can be described as the first Read-Write Locks, the Streaming Media fragment that has been assigned with the first Read-Write Locks meets: it can be carried out read operations by a plurality of equipment at one time, thereby has avoided distinct device to read same flow media fragment and the read conflict that produces; After the Streaming Media fragment receiving at Video Cache has been assigned with the first Read-Write Locks, injecting strategy to Policy equipment query Streaming Media fragment, and determine and can to Cache, inject after Streaming Media fragment at Policy equipment, to DFLS, inquire about the information of the Streaming Media fragment of the Streaming Media fragment that allows injection Cache, and based on corresponding Query Result, to DFLS request, be Streaming Media fragment allocation the second Read-Write Locks of Cache to be injected, and the Streaming Media fragment that has been assigned with the Cache to be injected of the second Read-Write Locks is injected to Cache.Wherein, this second Read-Write Locks i.e. hereinafter said " content lock ", if certain Streaming Media fragment has been assigned with content lock, shows that this content only allows to be carried out write operation by an equipment at one time, thereby has avoided the write conflict of distinct device to this content.
Further, Video Cache, also for after completing the injection of convection current media fragment, sends and is used to indicate the triggering message that OSD modifies to the corresponding metadata of Streaming Media fragment of having injected to OSD.
Policy equipment, for after receiving the video content access request forwarding strategy inquiry request of Video Cache transmission, according to for characterizing the information of the injection situation of this video content, judge whether video content access request to be transmitted to SP, and judging video content access request need to be transmitted to SP time, notice Proxy Client obtains the Streaming Media fragment that is matched with this video content access request from SP.In addition, also, for when Video Cache inquires about the injecting strategy of Streaming Media fragment, to Video Cache, feed back corresponding injecting strategy.Wherein, saidly here for characterizing the information of the injection situation of video content, can be, but not limited to comprise: whether the current Streaming Media fragment of injecting caching system, have the Streaming Media fragment of this video content; And/or in the Streaming Media fragment of this video content, current existing which Streaming Media fragment has been injected caching system; Etc..Such as when this is " the current Streaming Media fragment of injecting caching system has the Streaming Media fragment of this video content " for characterizing the information of the injection situation of video content, Policy equipment can be made the strategy of " without video content access request is transmitted to SP "; Otherwise, when this is for the information of injection situation that characterizes video content during for " the current Streaming Media fragment of injecting caching system is the Streaming Media fragment of this video content not ", Policy equipment can be made the strategy of " video content access request need to be transmitted to SP ".
Proxy Client, for obtaining from SP after the notice of Streaming Media fragment of receiving, obtains Streaming Media fragment from SP, and the Streaming Media fragment getting is offered to Video Cache.
DFLS, for according to the inquiry of Video Cache, allows to inject the information of Cache Streaming Media fragment to Video Cache feedback, and according to the request of Video Cache, is the Streaming Media fragment allocation content lock of Cache to be injected.
MDS, for storing the metadata of the Streaming Media fragment of storing corresponding to OSD, and provides the first Read-Write Locks distribution services.Particularly, its can receive that Video Cache sends for asking after the message for Streaming Media fragment allocation the first Read-Write Locks, be Streaming Media fragment allocation the first Read-Write Locks with this match messages.
OSD, is mainly used in stored stream media fragment and new metadata more.Particularly, it can receive and store Video Cache to the Streaming Media fragment of injecting in Cache, and being used to indicate after the triggering message that OSD modifies to the corresponding metadata of Streaming Media fragment of having injected of receiving that Video Cache sends, to completed the Streaming Media fragment metadata corresponding, that preserved by MDS of injection by Video Cache, upgrade.
Based on said system framework, below introduce respectively 3 specific embodiments.
Embodiment mono-
The enforcement scene of embodiment mono-is: the same video content of a plurality of UE Concurrency Access, and the corresponding metadata of local miss this video content of Cache.
Under this embodiment scene, can adopt step as shown in Figure 7 to realize the Streaming Media fragment injection Cache of this video content.Particularly, those steps comprise:
Step 71, a plurality of UE are the video content access request for the Streaming Media fragment of the same video content of acquisition request to the concurrent transmission of Cache;
Wherein, the Streaming Media fragment of this video content of the video content access request institute acquisition request that different UEs sends may be completely different, or also may be partially or completely identical.
Step 72, the video content access request that the Proxy Server between UE and Cache sends UE is tackled, and the video content access request of intercepting is sent to Video Cache;
Step 73, the above-mentioned video content access request of intercepting that Video Cache sends according to Proxy Server, the corresponding metadata of Streaming Media fragment of the video content access request institute acquisition request of intercepting with those to MDS inquiry;
Wherein, any Streaming Media fragment of video content of take is example, and its corresponding metadata can be the descriptor of this Streaming Media fragment, and this descriptor is generally used for the summary of describing this Streaming Media fragment.
Step 74, MDS, when not inquiring the corresponding metadata of Streaming Media fragment with video content access request institute acquisition request, returns to the miss notification message of metadata to Video Cache;
Step 75, Video Cache, after receiving miss notification message, is transmitted to SP by the video content access request of intercepting by Proxy Client;
Step 76, SP, after receiving the video content access request that Proxy Client forwards, obtains and to Video Cache, sends the Streaming Media fragment that each video content access request of receiving with SP is mated respectively by Proxy Client;
Step 77, Video Cache, after receiving the Streaming Media fragment of SP transmission, sends to each UE described in step 71 by the Streaming Media fragment correspondence receiving;
Wherein, the mode that Video Cache sends Streaming Media fragment to each UE in above-mentioned each UE all can comprise: the sign of the Streaming Media fragment of the video content access request institute acquisition request sending according to UE, the Streaming Media fragment matching with this sign that SP is sent sends to UE.Wherein, it is in advance for the set sheet segment identification of various flows media fragment that the sign of Streaming Media fragment can be, but not limited to, and can be also for representing the present position of the video content of Streaming Media fragment under it or the information between lane place.
It should be noted that, because a Streaming Media fragment exists with the form of a video image frame sequence often, therefore, in the video content of Streaming Media fragment under it, residing position can be n frame to the m frame video image position etc. in this video image frame sequence of video image frame sequence.
Step 78, Video Cache is corresponding when sending to each UE described in step 71 (or afterwards) respectively by the Streaming Media fragment receiving, Video Cache applies for distributing the first Read-Write Locks for this video content to MDS, application is all Streaming Media fragment allocation first Read-Write Locks of this video content, to allow each Streaming Media fragment of this video content to be carried out read operation by distinct device simultaneously;
Step 79, Video Cache is after this video content is assigned with the first Read-Write Locks, to Policy equipment query injecting strategy;
Optionally, Video Cache can carry injection contextual information, to Policy equipment query injecting strategy.
Wherein, to can be, but not limited to be one or more of following information to injection contextual information described here:
1, the transmission rate information of the transmission link of each UE in a plurality of UE described in step 71 respectively and between Cache;
2, characterize the information of the information transmission performance of each UE in described a plurality of UE;
3, characterize the information of the nominal bandwidth of each UE in described a plurality of UE transmission link respectively and between Cache.
It should be noted that, the transmission rate of transmission link generally refers to maximum byte numbers that transmission link can transmit average each second, and its unit can be kbps; Maximum byte numbers that the information transmission performance of UE generally also can be transmitted with UE average each second, and/or the data flow of the every transmission of the UE 1M size processing resource (the processing resource here can be, but not limited to as electric weight) that need to expend etc. is weighed, maximum byte numbers that UE can transmit average each second are more, and/or the processing resource that the data flow of the every transmission of UE 1M size need to expend is fewer, the information transmission performance of UE is higher, otherwise the information transmission performance of UE is lower; And the nominal bandwidth of transmission link between UE and Cache generally refers to the maximum bandwidth of the transmission link between UE and Cache, unit can be M.
Step 710, Policy equipment is according to the information of the congestion situation of the wireless network at the above-mentioned a plurality of UE of sign and Cache place, and/or characterize the information etc. of the disk congestion situation of the Streaming Media fragment of this video content to be stored in Cache, judge whether to allow to inject Streaming Media fragment in Cache;
Such as, if Policy equipment is according to the information of the congestion situation of the wireless network at the above-mentioned a plurality of UE of sign and Cache place, judge this Wireless network congestion; Or according to the information that characterizes the disk congestion situation of this Streaming Media fragment to be stored in Cache, judge this disk congested, can judge that injecting strategy is as " current do not allow to inject Streaming Media fragment " in Cache, if and judge do not exist network congestion and disk congested, judge that injecting strategy is as " current permission is injected Streaming Media fragment in Cache ".
Optionally, after Policy equipment judges that injecting strategy is as " current permission is injected Streaming Media fragment in Cache ", the injection contextual information that can send according to Video Cache, choose and Cache between the transmission rate of transmission link higher and and Cache between the corresponding transmission link of nominal bandwidth UE larger and that information transmission performance is higher of transmission link, as for inject the transmission link of Streaming Media fragment to Cache Server.Or, after Policy equipment judges that injecting strategy is as " current permission is injected Streaming Media fragment in Cache ", the injection contextual information that also can send according to Video Cache, directly choose and Cache between the highest transmission link of the transmission rate of transmission link, as for inject the transmission link of the Streaming Media fragment of Streaming Media fragment to Cache Server.
Step 711, Policy equipment sends to Video Cache the injecting strategy that Policy equipment is determined;
It should be noted that, when injecting strategy is " current permission is injected Streaming Media fragment in Cache ", and Policy equipment has also been chosen when injecting the transmission link of Streaming Media fragment, and Policy equipment can also also send to Video Cache by the information of the transmission link of choosing.
Step 712, Video Cache is when receiving " current permission is injected Streaming Media fragment in Cache " such injecting strategy, utilizing the transmission link between different UEs and Cache Server, is the Streaming Media fragment allocation content lock of Cache to be injected to DFLS application;
Wherein it should be noted that, if certain Streaming Media fragment of video content has been assigned with content lock, show to lock for storing the memory space of this Streaming Media fragment, and this Streaming Media fragment only allows to be carried out write operation by an equipment at one time.Before this content lock is released, this memory space only can be written into this Streaming Media fragment, and before this content lock is released, this memory space only can repeatedly not write once this Streaming Media fragment.
Particularly, Video Cache can offer DFLS by the information of the Streaming Media fragment of Cache to be injected.DFLS, after receiving this information that Video Cache provides, can judge currently whether in Cache, inject this video content.And then DFLS can, according to judged result, further determine whether that the Streaming Media burst of this video content distributes content lock.Such as, if judge, currently in Cache, inject this video content, be no longer the Streaming Media fragment allocation content lock of this video content; Or, although judge and currently inject this video content in Cache, but being only a part of Streaming Media fragment of this video content can be injected to Cache, can be the current a part of Streaming Media fragment allocation content lock that can not be injected into Cache in this video content.
Optionally, if Policy equipment has sent to Video Cache by the information of the transmission link of choosing, Video Cache offers the information of the Streaming Media fragment of DFLS and can be: the information of the Streaming Media fragment that the corresponding UE of transmission link that Policy equipment is chosen asks in step 71.And for the transmission link of not chosen by Policy equipment, because Video Cache can not inject corresponding Streaming Media fragment, therefore also just the information of the corresponding Streaming Media fragment of the transmission link of not chosen by Policy equipment can be offered to DFLS and distribute content lock with request.
Optionally, if Video Cache offers DFLS by the information of the Streaming Media fragment of Cache to be injected several times, and Video Cache is in the information of Streaming Media fragment of Cache to be injected that successively offers DFLS, there is the information of the Streaming Media fragment of the identical Cache to be injected of corresponding different transmission links respectively, so, DFLS can be the represented Streaming Media fragment allocation content lock of information of the Streaming Media fragment of this Cache to be injected of first receiving, and be no longer the represented Streaming Media fragment allocation content lock of information in the Streaming Media fragment of rear this Cache to be injected that repeats to receive.
Step 713, DFLS complete for Video Cache, apply for distributing content lock after injecting the Streaming Media fragment allocation content lock of Cache, to Video Cache feedback, be assigned with the information of the Streaming Media fragment of content lock, to Video Cache feedback, can have write the information of the Streaming Media fragment in blocked memory space;
Known according to description above, DFLS may can be only the part Streaming Media fragment allocation content lock in the video content of Cache to be injected.It should be noted that, no matter DFLS be for the whole or part Streaming Media fragment allocation in the video content of Cache to be injected content lock, it is when feeding back to Video Cache, what feed back can be only the information that has been assigned with the Streaming Media fragment of content lock, for the information of Streaming Media fragment that is not assigned with the Cache to be injected of content lock, can feed back.
Step 714, Video Cache is according to the information of the Streaming Media fragment that has been assigned with content lock of DFLS feedback, utilize the transmission link between UE and Cache Server, to injecting the corresponding Streaming Media fragment of information of the Streaming Media fragment that has been assigned with content lock of feeding back with DFLS in OSD;
Step 715, Video Cache injects the Streaming Media fragment that has been assigned with content lock after OSD completely completing, and sends metadata updates and triggers message, to indicate MDS: complete being assigned to the release of the first Read-Write Locks of Streaming Media fragment to MDS; Upgrade the corresponding metadata of the video content affiliated with the Streaming Media fragment that has been assigned with content lock; Assistance completes being assigned to the release of the content lock of Streaming Media fragment;
Such as, release for content lock, MDS triggers after message receiving above-mentioned metadata updates, to DFLS, sends content lock releasing request, with ask to current injected being assigned with of OSD completely the content lock of Streaming Media fragment of content lock discharge.
Embodiment bis-
The enforcement scene of embodiment bis-is: the same video content of a plurality of UE Concurrency Access, and Cache local part hits the corresponding metadata of this video content.
Under this embodiment scene, can adopt step as shown in Figure 8 to realize the Streaming Media fragment injection Cache of this video content.Particularly, those steps comprise:
Step 81, a plurality of UE are the video content access request for the same video content of acquisition request to the concurrent transmission of Cache;
Wherein, the Streaming Media fragment of this video content of the video content access request institute acquisition request that different UEs sends may be completely different, or also may be partially or completely identical.
Step 82, the video content access request that the Proxy Server between UE and Cache sends UE is tackled, and the video content access request of intercepting is sent to Video Cache;
Step 83, the above-mentioned video content access request of intercepting that Video Cache sends according to Proxy Server, the corresponding metadata of video content of the video content access request institute acquisition request of intercepting with those to MDS inquiry;
Step 84, suppose that MDS inquires the existence metadata corresponding with the video content of the above-mentioned video content access request institute acquisition request of intercepting in current C ache, but when this metadata only can be corresponding with a part of Streaming Media fragment in the video content of acquisition request, inquire the metadata corresponding with this video content in Cache when imperfect, MDS returns for notifying metadata part the local notification message hitting to Video Cache;
Step 85, whether Video Cache, after receiving above-mentioned notification message, forwards to SP the video content access request of intercepting to Policy equipment query;
Step 86, Policy equipment is according to the inquiry of Video Cache, judge whether the accounting of Streaming Media fragment in the video content that video content access request asks, corresponding with the imperfect part of metadata in all Streaming Media fragments of this video content is less than preset ratio threshold value, and the corresponding Streaming Media fragment of imperfect part that judges metadata is injected into the required time of Cache and whether is less than Preset Time threshold value;
Step 87, suppose that Policy equipment judges described accounting and be less than preset ratio threshold value, and the corresponding Streaming Media fragment of the imperfect part of metadata is injected into the required time of Cache and is less than Preset Time threshold value, determine and carry out " breakpoint transmission strategy ", thereby the information of being somebody's turn to do " breakpoint transmission strategy " is indicated to VideoCache;
It should be noted that, said " breakpoint transmission strategy " refers to here: first from SP, obtain Streaming Media fragment in the video content that video content access request asks, corresponding with the imperfect part of metadata; And then this Streaming Media fragment is injected to Cache; Finally, this Streaming Media fragment is injected after Cache completing, then from Cache, obtained the Streaming Media fragment of the video content that video content access request asks, and feed back to UE.
It should be noted that in addition, if Policy equipment is judged described accounting and is not less than preset ratio threshold value, or the corresponding content of imperfect part of metadata is injected into the required time of Cache and is not less than Preset Time threshold value, determine and carry out " non-breakpoint transmission strategy ".Wherein, " non-breakpoint transmission strategy " refers to: from SP, obtain Streaming Media fragment in the video content that video content access request asks, corresponding with the imperfect part of metadata; And then by this Streaming Media fragment getting from SP, and other Streaming Media fragments of the video content access request video content of asking feed back to UE; Finally, then by the Streaming Media fragment getting from SP inject Cache.
Such as, accounting in all Streaming Media fragments in determining the video content that video content access request asks, that the Streaming Media fragment corresponding with the imperfect part of metadata comprises at this video content is only 20%, and it is less than preset ratio threshold value 30%; And determining Streaming Media fragment in this video content, corresponding with the imperfect part of metadata, to be injected into the required time of Cache be 0.08s, when it is less than Preset Time threshold value 0.1s, just can determine execution " breakpoint transmission strategy ".
Step 88, Video Cache, after the information of " breakpoint transmission strategy " that receives the transmission of Policy equipment, is transmitted to SP by the video content access request of intercepting by Proxy Client;
Step 89, SP, after receiving the video content access request that Proxy Client forwards, obtains and to Video Cache, sends the Streaming Media fragment that each video content access request of receiving with SP is mated respectively by Proxy Client;
Step 810, due to what suppose that Policy equipment sends to Video Cache above, be the information of " breakpoint transmission strategy ", thereby Video Cache is after the Streaming Media fragment of video information that receives SP transmission, the information of " the breakpoint transmission strategy " sending according to Policy equipment, determines and executable operations: to MDS, apply for distributing the first Read-Write Locks for this video content;
And if the information that the received information being sent by Policy equipment of Video Cache is " non-breakpoint transmission strategy ", Video Cache is after receiving the Streaming Media fragment of SP transmission, the information of being somebody's turn to do " non-breakpoint transmission strategy " sending according to Policy equipment, determines and executable operations: to MDS, apply for distributing the first Read-Write Locks for this video content;
Step 811, Video Cache, after this video content is assigned with the first Read-Write Locks, carries injection contextual information, to Policy equipment query injecting strategy;
Optionally, Video Cache does not carry yet and injects contextual information and directly to Policy equipment query injecting strategy.
Step 812, Policy equipment is according to the information of the congestion situation of the wireless network at the above-mentioned a plurality of UE of sign and Cache place, and/or characterize the information etc. of the disk congestion situation of the Streaming Media fragment of this video content to be stored in Cache, judge whether to allow to inject video information in Cache;
Such as, if Policy equipment is according to the information of the congestion situation of the wireless network at the above-mentioned a plurality of UE of sign and Cache place, judge this Wireless network congestion; Or according to the information that characterizes the disk congestion situation of the Streaming Media fragment of this video content to be stored in Cache, judge this disk congested, can judge that injecting strategy is as " current do not allow to inject Streaming Media fragment " in Cache, if and judge do not exist network congestion and disk congested, judge that injecting strategy is as " current permission is injected Streaming Media fragment in Cache ".
Optionally, after Policy equipment judges that injecting strategy is as " current permission is injected Streaming Media fragment in Cache ", the injection contextual information that can send according to Video Cache, choose and Cache between the transmission rate of transmission link higher and and Cache between the corresponding transmission link of nominal bandwidth UE larger and that information transmission performance is higher of transmission link, as the transmission link that injects Streaming Media fragment.
Step 813, Policy equipment sends to Video Cache the injecting strategy that Policy equipment is determined;
It should be noted that, when injecting strategy is " current permission is injected Streaming Media fragment in Cache ", and Policy equipment has also been chosen when injecting the transmission link of Streaming Media fragment, and Policy equipment can also also send to Video Cache by the information of the transmission link of choosing.
Step 814, Video Cache is when receiving " current permission is injected Streaming Media fragment in Cache " such injecting strategy, utilizing the transmission link between different UEs and Cache Server, is the Streaming Media fragment allocation content lock of Cache to be injected to DFLS application;
Step 815, DFLS determines the Streaming Media fragment that can be assigned with content lock from Video Cache applies for distributing the Streaming Media fragment of Cache to be injected of content lock, and for after the Streaming Media fragment allocation content lock of determining, to Video Cache feedback, be assigned with the information of the Streaming Media fragment of content lock;
Step 816, Video Cache is according to the information of the Streaming Media fragment that has been assigned with content lock of DFLS feedback, utilize the transmission link between UE and Cache Server, to the Streaming Media fragment of the corresponding video information of the information of injecting the Streaming Media fragment that has been assigned with content lock of feeding back with DFLS in OSD;
Step 817, Video Cache injects after OSD in the Streaming Media fragment completing being assigned with content lock completely, to MDS, send metadata updates and trigger message, to indicate MDS: complete being assigned to the release of the first Read-Write Locks of this video content of Cache to be injected; Upgrade the metadata corresponding with the video content of Cache to be injected; Assistance completes being assigned to the release of content lock of the Streaming Media fragment of this video content;
Release for content lock, MDS is after receiving above-mentioned metadata updates triggering message, to DFLS, send content lock releasing request, with ask to current injected being assigned with of OSD completely the content lock that is assigned with of the Streaming Media fragment of content lock discharge.
Step 818, Video Cache by from Cache, get, corresponding to the Streaming Media fragment of the video content access request of intercepting, send to corresponding UE.
In embodiment bis-, due to the Streaming Media fragment of the imperfect part corresponding to metadata has been injected into Cache, thereby in step 818, the Streaming Media fragment that Video Cache gets from Cache just can be mated completely with the video content access request of intercepting, and can meet the demand of UE.
Embodiment tri-
The enforcement scene of embodiment tri-is: the same video content of a plurality of UE Concurrency Access, and Cache this locality hits the corresponding metadata of this video content completely, but this metadata represented to be stored in Cache video content imperfect.
Under this embodiment scene, can adopt step as shown in Figure 9 to realize the Streaming Media fragment injection Cache of this video content.Particularly, those steps comprise:
Step 91, a plurality of UE are the video content access request for the same video content of acquisition request to the concurrent transmission of Cache;
Step 92, the video content access request that the Proxy Server between UE and Cache sends UE is tackled, and the video content access request of intercepting is sent to Video Cache;
Step 93, the above-mentioned video content access request of intercepting that Video Cache sends according to Proxy Server, the corresponding metadata of video information of the video content access request institute acquisition request of intercepting with those to MDS inquiry;
Step 94, suppose that MDS inquires the existence metadata corresponding with the video content of the above-mentioned video content access request institute acquisition request of intercepting in current C ache, but the Streaming Media fragment of this video content that Cache preserves is imperfect, to Video Cache, return to the notification message for notifying metadata this locality to hit completely, and in this notification message, carry that Cache preserves, with the Streaming Media fragment of the above-mentioned video content access request institute acquisition request of intercepting;
In addition in this notification message, can also carry for representing the incomplete information of Streaming Media fragment of this video content that Cache preserves.
Step 95, Video Cache, after receiving above-mentioned notification message, sends to corresponding UE by all Streaming Media fragments of carrying in this notification message;
Step 96, Video Cache according in notification message, carry for representing the incomplete information of Streaming Media fragment of this video content that Cache preserves, to Policy equipment query, whether obtain the incomplete Streaming Media fragment of this video content of Cache preservation, i.e. query contents acquisition strategy;
Step 97, the accounting of all Streaming Media fragments that Policy equipment comprises at this video content according to the Streaming Media fragment of this video content having injected in Cache, and/or the charge velocity information of the Streaming Media fragment of this video content of current injection Cache, judge whether from SP, to obtain the Streaming Media fragment in Cache that is not stored in of this video content, determine content obtaining strategy;
Such as, the accounting of judging all Streaming Media fragments that the Streaming Media fragment of this video content having injected comprises at this video content when Policy equipment is less than the proportion threshold value of predetermining, such as 50% time; Or the charge velocity of Streaming Media fragment of judging this video content of current injection Cache is while being less than the rate-valve value of predetermining, can judge need to be from the Streaming Media fragment in Cache that is not stored in of this video content of SP acquisition;
Step 98, Policy equipment sends the content obtaining strategy of determining to Video Cache;
In embodiment tri-, suppose that the content obtaining strategy that Policy equipment sends is " need to obtain from SP the Streaming Media fragment in Cache that is not stored in of this video content ".
Step 99, UE receives the content obtaining strategy that Policy equipment sends, and at this content obtaining strategy during for " need to from the Streaming Media fragment in Cache that is not stored in of this video content of SP acquisition ", the Streaming Media fragment in Cache that is not stored in by Proxy Client to this video content of SP acquisition request;
Step 910, SP obtains the Streaming Media fragment in Cache that is not stored in of this video content that Proxy Client asks, and by Proxy Client, to Video Cache, sends the Streaming Media fragment in Cache that is not stored in of this video content;
Step 911, Video Cache applies for distributing the first Read-Write Locks for this video content to MDS;
Step 912, Video Cache, after this video content is assigned with the first Read-Write Locks, applies for the Streaming Media fragment allocation content lock in Cache that is not stored in for this above-mentioned video content to DFLS;
Step 913, DFLS completes as not being stored in after the Streaming Media fragment allocation content lock in Cache of this video content, has been assigned with the information that is not stored in the Streaming Media fragment in Cache of this video content of content lock to Video Cache feedback;
Step 914, Video Cache is according to the Streaming Media fragment in Cache that is not stored in of this video content that has been assigned with content lock of DFLS feedback, utilize the transmission link between UE and Cache Server, to the Streaming Media fragment of injecting in OSD with this video content that has been assigned with content lock of DFLS feedback;
Step 915, Video Cache injects after OSD in the Streaming Media fragment completing being assigned with this video content of content lock completely, to MDS, send metadata updates and trigger message, to indicate MDS: complete being assigned to the release of the first Read-Write Locks of the video content of Cache to be injected; Upgrade the metadata corresponding with the video content of Cache to be injected; Assistance completes being assigned to the release of the content lock of Streaming Media fragment.
Above-described embodiment one, embodiment bis-and embodiment tri-can bring following beneficial effect:
The distributed parallel of having realized Streaming Media fragment injects, greatly promote video focus and changed injection efficiency and the success rate under fast, video special behavior and complex scene, alleviated the impact that video long tail effect brings, and then promoted the hit rate of video content at Cache, save the flow of up backbone network, reduce user's access time delay, promoted user's experience.
A kind of Streaming Media fragment providing for the embodiment of the present invention is injected the inventive concept of the method for caching system, the embodiment of the present invention also provides a kind of Streaming Media fragment to inject the equipment of caching system, the concrete structure schematic diagram of this equipment as shown in figure 10, comprises following function unit:
Streaming Media fragment determining unit 101, for determining at least one Streaming Media fragment of caching system to be injected;
Request transmitting unit 102, comprises the Read-Write Locks distribution request of injecting range information for sending to caching system; So that caching system distributes request according to Read-Write Locks, for injecting the indicated one or more Streaming Media fragment allocation Read-Write Locks of range information; Wherein, inject between the position or lane place of the streaming medium content of each Streaming Media fragment under it that range information comprises caching system to be injected;
Streaming Media fragment is injected unit 103, for utilizing the transmission link between caching system and at least one terminal, by the distribution in described at least one Streaming Media fragment the Streaming Media fragment injection caching system of Read-Write Locks.
Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
Optionally, this equipment that the embodiment of the present invention provides also comprises: object transmission link is chosen unit, and the injection contextual information for the transmission link respectively and between caching system according to each terminal selects object transmission link from all transmission links.
Based on this transmission link, choose the function of unit, Streaming Media fragment is injected unit 103 specifically can be for: utilize object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject caching system.
Corresponding to a kind of implementation of Streaming Media fragment determining unit 101 functions, can be following functions subelement by these Streaming Media fragment determining unit 101 Further Divisions:
Receive subelement, the streaming medium content access request sending for receiving terminal; Wherein, streaming medium content access request is for request access streaming medium content;
Inquiry subelement, for the corresponding metadata of streaming medium content access request sending with terminal to caching system inquiry;
Receive subelement, for according to the Query Result of caching system feedback, from service provider SP, obtain described at least one Streaming Media fragment.
Wherein, above-mentioned Query Result is for representing whether inquire metadata at caching system, and the Streaming Media fragment of the corresponding streaming medium content of described metadata inquiring in caching system.
Optionally, above-mentioned reception subelement specifically can be for: when Query Result represents not inquire this metadata in caching system, and whole Streaming Media fragments of the streaming medium content of asking from SP acquisition streaming medium content access request.
Further, receiving subelement can also be for: when Query Result is illustrated in caching system, inquire metadata, and during the content flow media fragment in the streaming medium content that the corresponding streaming medium content access request of metadata is asked, from SP, obtain in the streaming medium content that streaming medium content access request asks, this metadata is failed corresponding Streaming Media fragment.
Further, receiving subelement can also be for: at Query Result, be illustrated in caching system and inquire metadata, and during the full content in the Streaming Media fragment of the streaming medium content that the corresponding streaming medium content access request of metadata is asked, if determine all Streaming Media fragments of the caching system streaming medium content that request of stored stream media access to content is not asked, from SP, obtain the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request asks.
Optionally, in all Streaming Media fragments of the streaming medium content that reception subelement can be asked according to streaming medium content access request, injected the accounting of the Streaming Media fragment of caching system, and/or current injection Streaming Media fragment is to the charge velocity information of caching system, judge whether to obtain from SP the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request ask; Judgment result is that while needing, from SP, obtaining the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request asks.
Optionally, this equipment that the embodiment of the present invention provides can also comprise:
Judging unit, for judging the Streaming Media fragment of the streaming medium content that streaming medium content access request is asked, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of caching system and whether is less than Preset Time threshold value;
Content obtaining unit, for being less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, in the described metadata that will obtain from SP, fail corresponding Streaming Media fragment and injecting after caching system, from caching system, obtaining the Streaming Media fragment of the streaming medium content that streaming medium content access request asks;
Content sending unit, offers for the Streaming Media fragment of streaming medium content that the streaming medium content access request of obtaining from caching system is asked the terminal that sends this streaming medium content access request.
The second Streaming Media Streaming Media fragment providing for the embodiment of the present invention is injected the method for caching system, and the embodiment of the present invention also provides a kind of caching system, and the concrete structure schematic diagram of this caching system as shown in figure 11, comprises following function unit:
Distribute request reception unit 111, for receiving Read-Write Locks, distribute request; Wherein, Read-Write Locks is distributed in request and is comprised injection range information; Inject between the position or lane place of one or more Streaming Media fragments that range information comprises caching system to be injected streaming medium content under it;
Streaming Media fragment determining unit 112, for according to injecting range information, from the Streaming Media fragment of the streaming medium content of caching system to be injected, determines the Streaming Media fragment that can be assigned with Read-Write Locks;
Lock allocation units 113, are used to the Streaming Media fragment allocation Read-Write Locks of determining;
Information transmitting unit 114, after the Streaming Media fragment allocation Read-Write Locks for determining, sends Read-Write Locks assignment response message to terminal, so that terminal is injected caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time;
Streaming Media fragment receiving element 115, for receiving the Streaming Media fragment that has been assigned with Read-Write Locks;
Memory cell 116, for storing the Streaming Media fragment that has been assigned with Read-Write Locks.
Optionally, this caching system that the embodiment of the present invention provides can also comprise:
Inject inquiry request receiving element, before being assigned with the Streaming Media fragment of Read-Write Locks in 115 receptions of Streaming Media fragment receiving element, receive for inquiring about whether can inject to caching system the injection inquiry request of the Streaming Media fragment that be assigned with Read-Write Locks;
Judging unit, for according to the congestion situation of the wireless network at caching system place, and/or the congestion situation of the disk of caching system breath, judge whether to inject the Streaming Media fragment that be assigned with Read-Write Locks to caching system;
Message sending unit, for judging and can injecting while being assigned with the Streaming Media fragment of Read-Write Locks to caching system, sends for notifying and can inject to caching system the response message of the Streaming Media fragment that be assigned with Read-Write Locks.
Optionally, the caching system shown in Figure 11, or on the basis of structure shown in Figure 11, also further comprise the caching system that injects inquiry request receiving element, judging unit and message sending unit, can further include following function unit:
Metadata query request reception unit, for before receiving Read-Write Locks distribution request, receives metadata query request; Metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of caching system to be injected;
Result transmitting element, for sending Query Result; Wherein, Query Result is for representing whether inquire metadata at caching system, and the Streaming Media fragment of the corresponding streaming medium content of metadata inquiring in caching system.
Optionally, above-mentioned each caching system can further include following function unit:
The receiving element that releases order, for being assigned with in cell stores after the Streaming Media fragment of Read-Write Locks, receives Read-Write Locks and releases order;
Releasing unit, for releasing order according to Read-Write Locks, discharges Read-Write Locks;
Updating block, for releasing order according to Read-Write Locks, new metadata more.
The first Streaming Media fragment providing for the embodiment of the present invention is injected the inventive concept of the method for caching system, and the embodiment of the present invention also provides a kind of Streaming Media fragment to inject the equipment of caching system.The concrete structure schematic diagram of this equipment as shown in figure 12, comprises following function entity:
Processor 121, for determining at least one Streaming Media fragment of caching system to be injected;
Signal transceiver 122, comprises the Read-Write Locks distribution request of injecting range information for sending to caching system, so that caching system distributes request according to Read-Write Locks, is the indicated one or more Streaming Media fragment allocation Read-Write Locks of described injection range information; And utilize the transmission link between caching system and at least one terminal, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject caching system;
Wherein, inject between the position or lane place of the streaming medium content of each Streaming Media fragment under it that range information comprises caching system to be injected.
Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
Optionally, described processor 121 can also, for the injection contextual information of the transmission link respectively and between caching system according to each terminal, select object transmission link from have transmission link.Signal transceiver 122 specifically can, for utilizing object transmission link, inject caching system by the Streaming Media fragment that has been assigned with Read-Write Locks in described at least one Streaming Media fragment.
Optionally, the streaming medium content access request (wherein, streaming medium content access request is for streaming medium content described in request access) that signal transceiver 122 specifically can send for obtaining terminal; And the corresponding metadata of the streaming medium content access request sending with terminal to caching system inquiry; Processor 121 specifically can be for the Query Result feeding back according to caching system, and control signal transceiver 122 obtains described at least one Streaming Media fragment from service provider SP.Wherein, above-mentioned Query Result is for representing whether inquire metadata at caching system, and the Streaming Media fragment of the corresponding streaming medium content of metadata inquiring in caching system.
Optionally, processor 121 can be when Query Result represents to inquire metadata in caching system, whole Streaming Media fragments of the streaming medium content that control control signal transceiver 122 is asked from SP acquisition streaming medium content access request.
Further, processor 121 can also be illustrated in and in caching system, inquire metadata at Query Result, and during the part Streaming Media fragment in the streaming medium content that the corresponding streaming medium content access request of metadata is asked, control in the streaming medium content that control signal transceiver 122 asks from SP acquisition streaming medium content access request, this metadata is failed corresponding Streaming Media fragment.
Further, processor 121 can also be illustrated in and in caching system, inquire metadata at Query Result, and during the whole Streaming Media fragment in the streaming medium content that the corresponding streaming medium content access request of metadata is asked, if determine all Streaming Media fragments of the caching system streaming medium content that request of stored stream media access to content is not asked, control control signal transceiver 122 and from SP, obtain the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request asks.
The process that is not stored in the Streaming Media fragment in caching system of the streaming medium content that particularly, processor 121 control signal transceivers 122 are asked from SP acquisition streaming medium content access request can comprise:
In all Streaming Media fragments of the streaming medium content that processor 121 is asked according to streaming medium content access request, injected the accounting of the Streaming Media fragment of caching system, and/or current injection Streaming Media fragment is to the charge velocity information of caching system, judge whether the Streaming Media fragment in caching system that is not stored in of the streaming medium content that need to ask from SP acquisition streaming medium content access request;
Processor 121 judgment result is that while needing, and control signal transceiver 122 obtains the Streaming Media fragment in caching system that is not stored in of streaming medium content that streaming medium content access request asks from SP.
Optionally, processor 121 can also be for the streaming medium content that judges that streaming medium content access request is asked, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and metadata is failed corresponding Streaming Media fragment and is injected into the required time of caching system and whether is less than Preset Time threshold value; And be less than preset ratio threshold value judging accounting, and the time is while being less than Preset Time threshold value, control signal transceiver 122 is failed after corresponding Streaming Media fragment injection caching system obtain metadata from SP, processor 121 can control signal transceiver 122 obtains the Streaming Media fragment of the streaming medium content that streaming medium content access request asks from caching system, and the Streaming Media fragment of control signal transceiver 122 streaming medium content that the streaming medium content access request of obtaining from caching system is asked offers the terminal that sends streaming medium content access request.
Optionally, processor 121 in the caching system that the embodiment of the present invention provides can inject the Streaming Media fragment of having distributed the streaming medium content of Read-Write Locks after caching system at control signal transceiver 122, further carries out and discharges Read-Write Locks the more operation of new metadata.
The second Streaming Media Streaming Media fragment providing for the embodiment of the present invention is injected the inventive concept of the method for caching system, and the embodiment of the present invention also provides a kind of caching system.The concrete structure schematic diagram of this caching system as shown in figure 13, comprises signal transceiver 131, processor 132 and memory 133.The function introduction of those functional entitys is as follows:
Signal transceiver 131, distributes request for receiving Read-Write Locks; And after processor 132 is for the Streaming Media fragment allocation Read-Write Locks of determining, send Read-Write Locks assignment response message to terminal, so that terminal is injected caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; In addition for receiving the Streaming Media fragment that has been assigned with Read-Write Locks.It should be noted that, Streaming Media fragment is injected to caching system to be not limited to be completed by terminal, and may be that a third party device of the request message that sends of tackled terminal between terminal and caching system injects caching system by Streaming Media fragment, in this case, Read-Write Locks assignment response message should send to above-mentioned third party device.
The Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
Wherein, Read-Write Locks is distributed in request and is comprised injection range information.Inject between the position or lane place of one or more Streaming Media fragments that range information comprises caching system to be injected streaming medium content under it.
Processor 132, for according to injecting range information, from the Streaming Media fragment of caching system to be injected, determines the Streaming Media fragment that can be assigned with Read-Write Locks, and the Streaming Media fragment allocation Read-Write Locks for determining; In addition processor 132 also injects Streaming Media fragments store caching system, that be assigned with Read-Write Locks to memory 133 for what signal transceiver 131 was obtained by transmission link.
Memory 133, the Streaming Media fragment that has been assigned with Read-Write Locks receiving for storage signal transceiver 131.
Optionally, signal transceiver 131 can also be for before injecting the Streaming Media fragment of streaming medium content caching system, that be assigned with Read-Write Locks in memory 133 storages, and whether receive can be to the injection inquiry request that has been assigned with the Streaming Media fragment of Read-Write Locks described in caching system injection for inquiring about; Processor 132 can also be for according to the congestion situation of the network at caching system place, and/or the congestion situation of the disk of caching system, judges whether to inject the Streaming Media fragment that be assigned with Read-Write Locks to caching system; And judging and can inject while being assigned with the Streaming Media fragment of Read-Write Locks to caching system, control signal transceiver 131 sends for notifying can inject to caching system the response message of the Streaming Media fragment that be assigned with Read-Write Locks.
Optionally, signal transceiver 131 can also, for before receiving Read-Write Locks distribution request, receive metadata query request; And send Query Result.Wherein, metadata query request is injected the corresponding metadata of the Streaming Media fragment of streaming medium content of caching system for inquiring about with transmission link to be utilized; Query Result is for representing whether inquire metadata at caching system, and the Streaming Media fragment of the corresponding streaming medium content of metadata inquiring in caching system.
Optionally, signal transceiver 131 can also, for storing after the Streaming Media fragment of the streaming medium content that has been assigned with Read-Write Locks at memory 133, receive Read-Write Locks and release order.The processor 132 release Read-Write Locks that can also release order for this Read-Write Locks receiving according to signal transceiver 131, and new metadata more.
The scheme that the embodiment of the present invention provides due to the Streaming Media fragment allocation of the streaming medium content in caching system to be injected into Read-Write Locks, thereby the Streaming Media fragment that has made to be assigned with the streaming medium content of Read-Write Locks only can be carried out write operation by a terminal at one time, this scheme providing due to the embodiment of the present invention can make can not clash between the write operation for the various flows media fragment that has been assigned with respectively Read-Write Locks of same flow media content, therefore can support concurrent being injected in caching system of various flows media fragment of streaming medium content.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the equipment in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises commander equipment, and this commander equipment is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (26)

1. Streaming Media fragment is injected a method for caching system, it is characterized in that, comprising:
Determine at least one Streaming Media fragment of caching system to be injected;
To caching system, sending and comprise the Read-Write Locks distribution request of injecting range information, so that described caching system distributes request according to described Read-Write Locks, is the indicated one or more Streaming Media fragment allocation Read-Write Locks of described injection range information; Wherein, described injection range information comprises between the position or lane place of the streaming medium content of each Streaming Media fragment under it of waiting to inject described caching system;
Utilize the transmission link between described caching system and at least one terminal, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system;
Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
2. the method for claim 1, is characterized in that, before the Streaming Media fragment of having distributed Read-Write Locks in described at least one Streaming Media fragment is injected to described caching system, also comprises:
Injection contextual information according to the transmission link between each terminal and described caching system selects object transmission link from all transmission links;
The described transmission link utilizing between described caching system and at least one terminal, will distribute the Streaming Media fragment of Read-Write Locks to inject described caching system in described at least one Streaming Media fragment, comprising:
Utilize described object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system.
3. method as claimed in claim 2, is characterized in that, described injection contextual information at least comprises a kind of of following information:
Transmission rate information;
The information of information transmission performance;
The information of nominal bandwidth.
4. the method for claim 1, is characterized in that, determines at least one Streaming Media fragment of caching system to be injected, specifically comprises:
The streaming medium content access request that receiving terminal sends; Wherein, described streaming medium content access request is for request access streaming medium content;
To the described caching system inquiry metadata corresponding with described streaming medium content access request;
According to the Query Result of described caching system feedback, at least one Streaming Media fragment of the streaming medium content of asking from the described streaming medium content access request of service provider SP acquisition;
Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the clip stream media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
5. method as claimed in claim 4, is characterized in that, according to described Query Result, from described SP, obtains described at least one Streaming Media fragment, specifically comprises:
When described Query Result represents to inquire described metadata in described caching system, whole Streaming Media fragments of the streaming medium content of asking from the described streaming medium content access request of described SP acquisition.
6. method as claimed in claim 5, is characterized in that, also comprises:
When being illustrated in, described Query Result in described caching system, inquires described metadata, and during the part Streaming Media fragment in the described streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, from described SP, obtain in the streaming medium content that described streaming medium content access request asks, described metadata is failed corresponding Streaming Media fragment.
7. method as claimed in claim 6, is characterized in that, described method also comprises:
Judge in the streaming medium content that described streaming medium content access request asks, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of described caching system and whether is less than Preset Time threshold value;
Be less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, inject after described caching system the described metadata obtaining from described SP being failed to corresponding Streaming Media fragment, from described caching system, obtain the Streaming Media fragment of the streaming medium content that described streaming medium content access request asks;
The Streaming Media fragment of the streaming medium content that the described streaming medium content access request of obtaining from described caching system is asked offers the terminal that sends described streaming medium content access request.
8. the method as described in as arbitrary in claim 4~7, is characterized in that, described method also comprises:
When being illustrated in, described Query Result in described caching system, inquires described metadata, and during the whole Streaming Media fragment in the streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, if determine, described caching system do not store all Streaming Media fragments of the streaming medium content that described streaming medium content access request asks, and in the streaming medium content of asking from the described streaming medium content access request of described SP acquisition, is not stored in the Streaming Media fragment in described caching system.
9. method as claimed in claim 8, is characterized in that, from described SP, obtains the Streaming Media fragment in described caching system that is not stored in the streaming medium content that described streaming medium content access request asks, and specifically comprises:
In all Streaming Media fragments of the streaming medium content of asking according to described streaming medium content access request, injected the accounting of the Streaming Media fragment of described caching system, and/or current injection Streaming Media fragment is to the charge velocity information of described caching system, judge whether the Streaming Media fragment in described caching system that is not stored in of the streaming medium content that need to ask from the described streaming medium content access request of described SP acquisition;
Judgment result is that while needing, from described SP, obtaining the Streaming Media fragment in described caching system that is not stored in of streaming medium content that described streaming medium content access request asks.
10. the method as described in as arbitrary in claim 4~9, is characterized in that, the described Streaming Media fragment of described Read-Write Locks of having distributed is injected after described caching system, and described method also comprises:
Trigger described caching system and discharge described Read-Write Locks, and upgrade described metadata.
11. 1 kinds of Streaming Media fragments are injected the method for caching system, it is characterized in that, comprising:
Caching system receives Read-Write Locks and distributes request; Wherein, Read-Write Locks is distributed in request and is comprised injection range information; Described injection range information comprises between the position or lane place of the streaming medium content of one or more Streaming Media fragments under it of waiting to inject described caching system;
According to described injection range information, from waiting to inject the Streaming Media fragment of described caching system, determine the Streaming Media fragment that can be assigned with Read-Write Locks, and the Streaming Media fragment allocation Read-Write Locks for determining;
Send Read-Write Locks assignment response message to terminal, so that terminal is injected described caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; Wherein, the Streaming Media fragment that has been assigned with described Read-Write Locks only can be carried out write operation by a terminal at one time;
Described in receiving and store, described caching system has been assigned with the Streaming Media fragment of Read-Write Locks.
12. methods as claimed in claim 11, is characterized in that, before being assigned with the Streaming Media fragment of Read-Write Locks described in the storage of described caching system, described method also comprises:
Whether described caching system receives can be to the injection inquiry request that has been assigned with the Streaming Media fragment of Read-Write Locks described in described caching system injection for inquiring about;
Described caching system is according to the congestion situation of the network at described caching system place, and/or the congestion situation of the disk of described caching system, judges whether to be assigned with described in injecting to described caching system the Streaming Media fragment of Read-Write Locks;
Described caching system is being judged while being assigned with the Streaming Media fragment of Read-Write Locks described in injecting to described caching system, sends the response message that has been assigned with the Streaming Media fragment of Read-Write Locks described in can injecting to described caching system for notifying.
13. methods as described in claim 11 or 12, is characterized in that, described caching system receives before described Read-Write Locks distributes request, and described method also comprises:
Described caching system receives metadata query request; Described metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of waiting to inject described caching system;
Described caching system sends Query Result; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the corresponding Streaming Media fragment of the described metadata inquiring in described caching system.
14. methods as claimed in claim 13, is characterized in that, have been assigned with after the Streaming Media fragment of Read-Write Locks described in the storage of described caching system, and described method also comprises:
Described caching system receives Read-Write Locks and releases order;
Described caching system discharges described Read-Write Locks, and upgrades described metadata.
15. 1 kinds of Streaming Media fragments are injected the equipment of caching system, it is characterized in that, comprising:
Streaming Media fragment determining unit, for determining at least one Streaming Media fragment of caching system to be injected;
Request transmitting unit, for sending to caching system, comprise the Read-Write Locks distribution request of injecting range information, so that described caching system distributes request according to described Read-Write Locks, be the indicated one or more Streaming Media fragment allocation Read-Write Locks of described injection range information; Wherein, described injection range information comprises between the position or lane place of the streaming medium content of each Streaming Media fragment under it of waiting to inject described caching system;
Streaming Media fragment is injected unit, for utilizing the transmission link between described caching system and at least one terminal, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system; Wherein, the Streaming Media fragment that has been assigned with Read-Write Locks only can be carried out write operation by a terminal at one time.
16. equipment as claimed in claim 15, is characterized in that, described equipment also comprises:
Object transmission link is chosen unit, and the injection contextual information for the transmission link respectively and between described caching system according to each terminal selects object transmission link from all transmission links;
Described Streaming Media fragment inject unit specifically for: utilize described object transmission link, will in described at least one Streaming Media fragment, distribute the Streaming Media fragment of Read-Write Locks to inject described caching system.
17. equipment as claimed in claim 15, is characterized in that, described Streaming Media fragment determining unit, specifically comprises:
Receive subelement, the streaming medium content access request sending for receiving terminal; Wherein, described streaming medium content access request is for request access streaming medium content;
Inquiry subelement, for inquiring about the metadata corresponding with described streaming medium content access request to described caching system;
Obtain subelement, for according to the Query Result of described caching system feedback, from service provider SP, obtain at least one Streaming Media fragment that described streaming medium content access request is asked;
Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the Streaming Media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
18. equipment as claimed in claim 17, is characterized in that, described reception subelement specifically for:
When described Query Result represents to inquire described metadata in described caching system, whole Streaming Media fragments of the streaming medium content of asking from the described streaming medium content access request of described SP acquisition.
19. equipment as claimed in claim 18, is characterized in that, described reception subelement also for:
When being illustrated in, described Query Result in described caching system, inquires described metadata, and during the part Streaming Media fragment in the described streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, from described SP, obtain in the streaming medium content that described streaming medium content access request asks, described metadata is failed corresponding Streaming Media fragment.
20. equipment as claimed in claim 19, is characterized in that, described equipment also comprises:
Judging unit, for judging the streaming medium content that described streaming medium content access request is asked, described metadata is failed the accounting of corresponding Streaming Media fragment and whether is less than preset ratio threshold value, and described metadata is failed corresponding Streaming Media fragment and is injected into the required time of described caching system and whether is less than Preset Time threshold value;
Content obtaining unit, for being less than preset ratio threshold value judging described accounting, and the described time is while being less than Preset Time threshold value, inject after described caching system the described metadata obtaining from described SP being failed to corresponding Streaming Media fragment, from described caching system, obtain the Streaming Media fragment of the streaming medium content that described streaming medium content access request asks;
Content sending unit, offers for the Streaming Media fragment of streaming medium content that the described streaming medium content access request of obtaining from described caching system is asked the terminal that sends described streaming medium content access request.
21. equipment as described in as arbitrary in claim 17~20, is characterized in that, described reception subelement also for:
When being illustrated in, described Query Result in described caching system, inquires described metadata, and during the whole Streaming Media fragment in the streaming medium content that the corresponding described streaming medium content access request of described metadata is asked, if determine, described caching system do not store all Streaming Media fragments of the streaming medium content that described streaming medium content access request asks, and in the streaming medium content of asking from the described streaming medium content access request of described SP acquisition, is not stored in the Streaming Media fragment in described caching system.
22. equipment as claimed in claim 21, is characterized in that, described reception subelement specifically for:
In all Streaming Media fragments of the streaming medium content of asking according to described streaming medium content access request, injected the accounting of the Streaming Media fragment of described caching system, and/or current injection Streaming Media fragment is to the charge velocity information of described caching system, judge whether the Streaming Media fragment in described caching system that is not stored in of the streaming medium content that need to ask from the described streaming medium content access request of described SP acquisition;
Judgment result is that while needing, from described SP, obtaining the Streaming Media fragment in described caching system that is not stored in of streaming medium content that described streaming medium content access request asks.
23. 1 kinds of caching systems, is characterized in that, comprising:
Distribute request reception unit, for receiving Read-Write Locks, distribute request; Wherein, Read-Write Locks is distributed in request and is comprised injection range information; Described injection range information comprises between the position or lane place of the streaming medium content of one or more Streaming Media fragments under it of waiting to inject described caching system;
Streaming Media fragment determining unit, for according to described injection range information, from waiting to inject the Streaming Media fragment of described caching system, determine the Streaming Media fragment that can be assigned with Read-Write Locks;
Lock allocation units, are used to the Streaming Media fragment allocation Read-Write Locks of determining;
Information transmitting unit, after the Streaming Media fragment allocation Read-Write Locks for determining, sends Read-Write Locks assignment response message to terminal, so that terminal is injected described caching system by the Streaming Media fragment that has been assigned with Read-Write Locks; Wherein, the Streaming Media fragment that has been assigned with described Read-Write Locks only can be carried out write operation by a terminal at one time;
Streaming Media fragment receiving element, for being assigned with the Streaming Media fragment of Read-Write Locks described in receiving;
Memory cell, for being assigned with the Streaming Media fragment of Read-Write Locks described in storing.
24. caching systems as claimed in claim 23, is characterized in that, described caching system also comprises:
Inject inquiry request receiving element, whether for before being assigned with the Streaming Media fragment of Read-Write Locks described in the reception of Streaming Media fragment receiving element, receiving can be to the injection inquiry request that has been assigned with the Streaming Media fragment of Read-Write Locks described in described caching system injection for inquiring about;
Judging unit, for according to the congestion situation of the network at described caching system place, and/or the congestion situation of the disk of described caching system, judges whether to be assigned with described in injecting to described caching system the Streaming Media fragment of Read-Write Locks;
Message sending unit, while being assigned with the Streaming Media fragment of Read-Write Locks for judging at described judging unit described in injecting to described caching system, send the response message that has been assigned with the Streaming Media fragment of Read-Write Locks described in can injecting to described caching system for notifying.
25. caching systems as described in claim 23 or 24, is characterized in that, described caching system also comprises:
Metadata query request reception unit, for before receiving described Read-Write Locks distribution request, receives metadata query request; Described metadata query request is for inquiring about the metadata corresponding with the Streaming Media fragment of waiting to inject described caching system;
Result transmitting element, for sending Query Result; Wherein, described Query Result is for representing whether inquire described metadata at described caching system, and the Streaming Media fragment of the corresponding streaming medium content of described metadata inquiring in described caching system.
26. caching systems as claimed in claim 23, is characterized in that, described caching system also comprises:
The receiving element that releases order, for after being assigned with the Streaming Media fragment of Read-Write Locks described in described cell stores, receiving Read-Write Locks and releases order;
Releasing unit, for releasing order according to described Read-Write Locks, discharges described Read-Write Locks;
Updating block, for releasing order according to described Read-Write Locks, upgrades described metadata.
CN201310699021.2A 2013-12-18 2013-12-18 Streaming Media fragment injects method, equipment and the caching system of caching system Active CN103701883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310699021.2A CN103701883B (en) 2013-12-18 2013-12-18 Streaming Media fragment injects method, equipment and the caching system of caching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310699021.2A CN103701883B (en) 2013-12-18 2013-12-18 Streaming Media fragment injects method, equipment and the caching system of caching system

Publications (2)

Publication Number Publication Date
CN103701883A true CN103701883A (en) 2014-04-02
CN103701883B CN103701883B (en) 2018-01-12

Family

ID=50363277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310699021.2A Active CN103701883B (en) 2013-12-18 2013-12-18 Streaming Media fragment injects method, equipment and the caching system of caching system

Country Status (1)

Country Link
CN (1) CN103701883B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281964A (en) * 2014-06-10 2016-01-27 中兴通讯股份有限公司 Method for processing reading and writing requests under high concurrency and adaptation layer server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005371A (en) * 2006-01-19 2007-07-25 思华科技(上海)有限公司 Caching method and system for stream medium
US20120260347A1 (en) * 2005-07-08 2012-10-11 At&T Intellectual Property I, L.P. Methods, Systems, and Devices for Securing Content
CN103294405A (en) * 2012-03-02 2013-09-11 联想(北京)有限公司 Data reading and writing method and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120260347A1 (en) * 2005-07-08 2012-10-11 At&T Intellectual Property I, L.P. Methods, Systems, and Devices for Securing Content
CN101005371A (en) * 2006-01-19 2007-07-25 思华科技(上海)有限公司 Caching method and system for stream medium
CN103294405A (en) * 2012-03-02 2013-09-11 联想(北京)有限公司 Data reading and writing method and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵旺: "《CNKI优秀硕士学位论文全文库》", 31 May 2009 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281964A (en) * 2014-06-10 2016-01-27 中兴通讯股份有限公司 Method for processing reading and writing requests under high concurrency and adaptation layer server
CN105281964B (en) * 2014-06-10 2019-09-17 南京中兴新软件有限责任公司 Read-write requests processing method and Adaptation Layer Service device under high concurrent

Also Published As

Publication number Publication date
CN103701883B (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN102202050B (en) Intended response pre-cached
US8068512B2 (en) Efficient utilization of cache servers in mobile communication system
CN102984286B (en) Method and device and system of domain name server (DNS) for buffering updating
CN111340470B (en) Block chain transaction processing method, node and contract container
JP6274584B2 (en) Advertisement processing method and apparatus
WO2017028779A1 (en) Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
CN104717186B (en) A kind of method, apparatus and data transmission system for transmitting data in network system
CN101710902B (en) Unstructured P2P network, data searching method thereof and index updating method thereof
CN104468817A (en) Method and device for achieving resource download through CDN, server and client side
JP2011525312A (en) Method and apparatus for prefetching data in a mobile network environment using edge data storage
CN108063769B (en) Method and device for realizing content service and content distribution network node
CN102025793A (en) Domain name resolution method and system and DNS in IP network
KR101528210B1 (en) Software downloading method and device
CN105357246A (en) Caching method and system based on information centre network
CN103369020A (en) Cache synchronization system, cache synchronization method and apparatus thereof
CN104718737A (en) Methods, apparatuses, system, related computer program product for routing and processing policy requests related to group subscription
US9049206B2 (en) P2P for mobile providers
CN102984277B (en) Prevent the system and method that malice connects
CN107633102A (en) A kind of method, apparatus, system and equipment for reading metadata
CN109783248A (en) Data access method, device, computer equipment and storage medium
CN101420392B (en) Method and customer terminal for instant communication customer terminal displaying pop-up window
CN104170342A (en) Content processing method and network side device
CN103701883A (en) Method and equipment for injecting stream media fragments into cache system and cache system
CN110582090A (en) CDN scheduling method, scheduling system and MEC network element
EP2999266B1 (en) Method, device and system for obtaining mobile network data resources

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant