WO2013075341A1 - Cache file replacement method, apparatus and system - Google Patents

Cache file replacement method, apparatus and system Download PDF

Info

Publication number
WO2013075341A1
WO2013075341A1 PCT/CN2011/082996 CN2011082996W WO2013075341A1 WO 2013075341 A1 WO2013075341 A1 WO 2013075341A1 CN 2011082996 W CN2011082996 W CN 2011082996W WO 2013075341 A1 WO2013075341 A1 WO 2013075341A1
Authority
WO
WIPO (PCT)
Prior art keywords
cache file
access frequency
preset
weight value
access
Prior art date
Application number
PCT/CN2011/082996
Other languages
French (fr)
Chinese (zh)
Inventor
凌强
徐理想
陆海翔
王凤
陈骞
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180002900.4A priority Critical patent/CN102511043B/en
Priority to PCT/CN2011/082996 priority patent/WO2013075341A1/en
Publication of WO2013075341A1 publication Critical patent/WO2013075341A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/12Replacement control
    • G06F12/121Replacement control using replacement algorithms
    • G06F12/122Replacement control using replacement algorithms of the least frequently used [LFU] type, e.g. with individual count value
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/46Caching storage objects of specific type in disk cache
    • G06F2212/463File

Definitions

  • the present invention relates to the field of computer communications, and in particular, to a cache file replacement method, apparatus, and system. Background technique
  • the data transmitted by the network is not limited to text, but also includes video data. Due to the large code rate and long-term transmission of video VOD (Video On Demand) applications, the bandwidth and response speed of VOD servers are very high.
  • VOD Video On Demand
  • a limited storage space to store part of the video content as a local proxy server to provide data to the user, thereby reducing the data traffic of the network trunk.
  • 1, 2, 3 are streaming media file servers
  • 4 is a proxy server
  • user 5 enjoys streaming media services through a proxy server.
  • the cache replacement strategy is used to decide which cache data to remove, and its goal is to make better use of the available space resources.
  • LRU Least Recently Used
  • LFU Least Frequently Used
  • the LRU algorithm is more affected by volatility. For example, if a movie is accidentally accessed once and is no longer accessed, the movie will be put into the cache when the movie is processed, and a more popular movie may be deleted from the cache.
  • the LFU algorithm only maintains the accessed frequency information of each item, and for a cache entry that has a very high access frequency in the past and has a lower frequency of recent access, when the cache space is full, the cache entry 4 is difficult to be cached. Replaced, which in turn leads to a drop in hit rate.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a system for replacing a cache file, which are used to solve the problem that the cache file with low access frequency cannot be replaced from the cache in time in the prior art, thereby causing access.
  • the problem of falling hit rate is to provide a method, a device, and a system for replacing a cache file, which are used to solve the problem that the cache file with low access frequency cannot be replaced from the cache in time in the prior art, thereby causing access.
  • the problem of falling hit rate is to provide a method, a device, and a system for replacing a cache file, which are used to solve the problem that the cache file with low access frequency cannot be replaced from the cache in time in the prior art, thereby causing access.
  • An embodiment of the present invention provides a cache file replacement method, where the method includes the following steps: acquiring a historical access frequency and a current access frequency of each cache file that has been stored;
  • the embodiment of the present invention further provides a cache file replacement device, where the device includes: an obtaining module, configured to acquire a historical access frequency and a current access frequency of each cache file that has been stored;
  • the access frequency module is configured to obtain an average of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the replacement module is configured to obtain a cache file with the smallest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
  • a network system includes a streaming media file server and a proxy server, wherein the proxy server includes the cache file replacement device, obtains a streaming media file from the streaming media file server, and the streaming media The file is saved as a cache file within the proxy server.
  • the cache file replacement method provided by the embodiment of the present invention can not only maintain a certain stability according to the old average access time interval, but also reduce the influence of the volatility of the latest access information.
  • by occupying the proportion of the old average access time interval in the new average access time interval to be smaller than the current access interval it is possible to gradually weaken the relatively long-term access information to the current access information after a certain period of time.
  • the effect of avoiding the long-term access information interferes with the current sorting after the access mode changes, thus accurately reflecting the current access status of the cache file.
  • the cache file replacement method provided by the embodiment of the present invention further predicts the average access time interval of the next moment by using the prediction formula, so that the cache file is accessed the latest time, and the closer the current time is, the greater the heat is obtained.
  • the cache file replacement method provided by the embodiment of the present invention further determines the actual relative size of the heat of two video segments by adding a weighting factor in the value formula.
  • 1 is a schematic diagram of an existing streaming media network
  • FIG. 2 is a flowchart of a method for replacing a cache file according to the first embodiment of the present invention
  • FIG. 3 is a schematic diagram of a cache file replacing apparatus according to a first embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for replacing a cache file according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a cache file replacing apparatus according to a second embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for replacing a cache file according to a third embodiment of the present invention.
  • FIG. 7 is a flowchart of a cache file replacing apparatus according to a third embodiment of the present invention. detailed description
  • the cache file replacement method provided by the embodiment of the present invention can reduce the influence of the volatility of the latest access information, and avoids that the access information long ago interferes with the current order after the access mode changes.
  • a cache file replacement method Used for the replacement of individual cache files in the proxy server. The method includes the following steps:
  • Step 101 Obtain a historical access frequency and a current access frequency of each cache file that has been stored.
  • the historical access frequency may be expressed in terms of the number of visits in a past period of time, or may be expressed in an average time interval of visits over a period of time.
  • the current access frequency may be represented by the number of accesses for the most recent period of time from the current time, or by the time interval of access during the period of time closest to the current time.
  • the historical access frequency is represented by an average access time interval in which the cache file is accessed, and the current access frequency is used by the time when the cache file is currently accessed and the cache file is last used. The time interval between the moments of access is indicated.
  • the cache file can be a video clip in a video or a complete video.
  • the cache file is a video segment in a video.
  • the proxy server can divide a large video file into video segments of equal length according to the preset time period, such as dividing the 20-minute video into 0-5 minutes, 5-10 minutes, 10-15 minutes, 15- Four video clips in 20 minutes.
  • the proxy server first converts the user's request for the video file into a request for the corresponding video segment of the video file, such as a video clip corresponding to 0-5 minutes at the beginning.
  • the time when the cache file is currently accessed is accessed.
  • the time when the cache file saved in the proxy server is last accessed is accessed.
  • the initial value of the average access time interval is set to the current accessed time minus the time at which the cache file was last accessed.
  • Step 103 Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
  • a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file.
  • the time interval formula and value formula are:
  • r It is the old average access time interval determined by the previous access situation, and the value of the value can more accurately reflect the real access status of the cache file in the past period of time. Said r.
  • the initial value is set to the time of the current access minus the time when the cache file was last accessed.
  • the forgetting factor ⁇ After the latest access information (the time N2 at which the cache file is currently accessed) is combined by the forgetting factor ⁇ , the influence of the volatility of the latest access information is reduced, thereby achieving the object of the present invention.
  • the values may also take other values.
  • the old average access interval is ⁇ .
  • the proportion is less than the current access interval (N2 - N1). So every time the film is visited, the previous visit is awkward. In the proportion of ⁇ , it will be reduced by a certain ratio. After a certain period of time, the proportion of the visit information that is relatively old now will become small until it is negligible. This avoids the long-standing access information from interfering with the current ordering after the access mode changes, thereby achieving the purpose of the time-varying characteristics of the present invention. This avoids the impact of cache files that have a very high frequency of access in the past and have recently been accessed less frequently.
  • Step 105 Obtain a cache file with the smallest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
  • Sorting the plurality of cache files according to the size of the cache file By sorting the heat of the cache file, it is possible to obtain which cache files are frequently accessed recently, and which files are recently accessed less frequently, thereby providing a reference for the proxy server to replace the file.
  • Delete the cache file with the least heat that is, delete the cache file with the longest average access interval (the average access frequency is the smallest), and store the new file obtained from the streaming file server in the proxy server to become the new one. Cache files to improve the effectiveness of cache decisions.
  • FIG. 3 is a cache file replacing apparatus 200 according to a first embodiment of the present invention.
  • the cache file replacement device 200 is disposed in a proxy server 110.
  • the proxy server 110 and the streaming media file server 120 form a network system 100.
  • the proxy server 110 saves a part of the streaming media files in the streaming media file server 120 accessed by the user as a cache file.
  • the hard disk (not shown) of the proxy server 110 is described.
  • the cache file replacement device 200 includes an acquisition module 210, an access frequency module 220, and a replacement module 230.
  • the obtaining module 210 is configured to obtain a historical access frequency and a current access frequency of each cache file that has been stored. In this embodiment, the obtaining module 210 is configured to acquire a time when the cache file is currently accessed, a time when the cache file was last accessed, and an average access time interval in which the cache file is accessed. In this embodiment, when a cache file is accessed by the user, the time when the cache file is currently accessed, the time when the cache file saved in the proxy server is last accessed, and the average value of the cache file are accessed are obtained. Access time interval.
  • the access frequency module 220 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the access frequency module 220 is configured to: according to the obtained time when the cache file is currently accessed, the time when the cache file was last accessed, the average access time interval of the cache file being accessed, and the pre-emption
  • the access frequency module 220 calculates the average access time interval in which the cache file is accessed by using the method in step 103.
  • the access frequency module 220 includes a thermal sub-module 221 .
  • the heat sub-module 221 is configured to calculate the heat of the cache file according to the updated average access time interval and a value formula, where the value formula is:
  • the replacement module 230 is configured to replace the cache file with the smallest average access frequency.
  • the replacement module 230 includes a sorting sub-module 231.
  • the sorting sub-module 231 is configured to pair the plurality of caches according to the size of the heat of the cache file.
  • the files are sorted. Sorting the heat of the cache file enables the most frequently accessed cache files to be easily deleted in the cache space, and the cache files with lower recent access frequencies can be deleted faster in the cache space.
  • the replacement module 230 is configured to replace the new file obtained from the streaming media file server with the cache file with the least heat.
  • a cache file replacement method according to a second embodiment of the present invention is provided.
  • the method includes the following steps:
  • Step 301 Obtain the historical access frequency, the current access frequency, and the access frequency of the next time of each cache file.
  • the time at which the cache file is currently accessed, the time when the cache file was last accessed, and the average access time interval in which the cache file is accessed are obtained.
  • the above parameters are obtained by the same method as step 101.
  • the access frequency of the next time instant may be represented by a time interval between the time at which the obtained cache file is currently accessed and the next time of the current time.
  • Step 303 Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
  • a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file.
  • the time interval formula and value formula are:
  • T 0 is the average access time interval in which the cache file is accessed
  • N1 is the time at which the cache file is currently accessed
  • is the heat of the cache file, that is, the average access frequency.
  • the "weight value for the preset current access frequency, [alpha]- ⁇ is the weight value of the preset historical access frequency.
  • Step 305 Obtain each cache according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next time.
  • the predicted access frequency of the file is obtained according to formula (1) and the following two formulas,
  • T_&st (l - c) x T'+c x (N _ est - N'); ( 3 )
  • the c is a weight value of the access frequency of the preset next time.
  • ⁇ ' is the average access time interval of the cache file in the past, that is, ⁇ . . N is the time when the cache file was last accessed, that is, ⁇ .
  • N is the time at which the cache file is currently accessed, that is, N2.
  • the predictor has the same effect as the forgetting factor ⁇ .
  • the next time N _ 6 ⁇ of the current time is 1 second added at the current time.
  • the predictor may take other values or take the same value as the forgetting factor ⁇ .
  • the next moment of the current moment may also be increased by 1 millisecond, 5 seconds or 1 minute at the current moment.
  • the historical average access time interval and the predicted next access time interval are combined with different weights to obtain an estimated value of the future access time interval.
  • Step 307 Replace the cache file with the least frequent access frequency at the next moment with the new cache file.
  • a cache file replacing apparatus 510 according to a second embodiment of the present invention is provided.
  • the cache file replacement device 510 is substantially the same as the cache file replacement device 200 provided by the first embodiment, and is used in the same proxy server and network system.
  • the cache file replacement device 510 includes an acquisition module 511, an access frequency module 512, a prediction module 513, and a replacement module 514.
  • the obtaining module 511 is configured to obtain a historical access frequency of each cache file, a current access frequency, and an access frequency of the next moment.
  • each parameter is obtained by the method of step 301.
  • the access frequency module 512 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the average access frequency wherein the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
  • a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file.
  • the time interval formula and value formula are:
  • the access frequency module 512 obtains each cache by the same method as step 303. The average frequency of access to the file.
  • the prediction module 513 is configured to use, according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight of the preset access frequency of the next moment. The value gets the predicted access frequency for each cache file. In this embodiment, the prediction module 513 calculates the average access time interval at the next moment in the same manner as the step 305.
  • the prediction module 513 includes a thermal sub-module 513a for calculating the popularity of the cache file according to the average access time interval calculated by the prediction formula and the formula (4).
  • the replacement module 514 is configured to replace the cache file with the least frequent access frequency at the next moment with a new cache file.
  • the replacement module 514 includes a sorting sub-module 514a.
  • the sorting sub-module 514a is configured to sort a plurality of the cache files according to the size of the hotness of the cache file.
  • the ordering submodule 514a is the same as in the first embodiment.
  • the sorting sub-module 231 is the same.
  • the replacement module 514 is configured to replace the new file obtained from the streaming media file server with the cache file with the least heat.
  • FIG. 6 is a cache file replacement method according to a third embodiment of the present invention.
  • the cache file processed by the cache file replacement method is a video clip.
  • the method includes the following steps:
  • Step 601 Acquire multiple videos, divide each video into at least one video segment, and use the same label rule label for each video segment in different videos.
  • each video is divided into a plurality of segments in a period of 5 minutes, and each video segment in each video is sequentially labeled with 0, 1, 2... in chronological order.
  • numbers or letter numbers may be used in other embodiments.
  • Step 603 Obtain a cache file historical access frequency and a current access frequency and a label of the video segment.
  • the time when the video clip is currently accessed, the time when the video clip was last accessed, the average access time interval in which the video clip is accessed, and the label of the video clip are obtained.
  • the current time interval of the video segment is obtained by the same method as that in step 101.
  • the label of each video segment is also obtained.
  • Step 605 Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
  • a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file.
  • the time interval formula and value formula are:
  • Step 607 Obtain each cache according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next time. The predicted access frequency of the file.
  • the average access frequency of each cache file is obtained according to formula (1) and the following two formulas,
  • the c is a weight value of the access frequency of the preset next time.
  • Step 609 Obtain an access probability of the cache file.
  • an average access probability of each video segment is calculated according to a preset access probability formula, and the access phase difference rate formula is:
  • j is the label of the video segment; 73 ⁇ 4ar[
  • the j 0, 1, 2, 3, .... 73 ⁇ 4r[
  • the average on-demand probability preset for the jth video clip. 2 is 0.999.
  • the normalization formula is:
  • P_k[j] is the normalized average access probability of the video segment labeled j.
  • all 3 ⁇ 4arj] are normalized based on a 3 ⁇ 4ar[m].
  • P_k[j] is an array of intermediate variables.
  • the weighting parameter is calculated according to the normalized average access probability and the parameter formula, and the parameter formula is:
  • the above formula is also a low-pass filter in order not to make P[j] change too drastically. Limit the maximum value of y to no more than 1000, avoiding the perturbations caused by too severe weighting.
  • All of the calculated weighting parameters are adjusted to be equal to the weighting factor b[j] of T_est in the same ratio.
  • the weighting factor b[j] of T_est In order not to change the relative heat size of the video segment after weighting too much, it is necessary to reduce the weighting parameter corresponding to different video segments to a number smaller than D_681.
  • • 25 adjusts all of the weighting parameters to the same scale to a number less than T_est.
  • the force weight parameter may also be adjusted by multiplying by a decimal or by a percentage.
  • Step 611 Replace the cache file with the lowest access frequency and the lowest access probability at the next moment with the new cache file.
  • the heat of the cache file is calculated according to the weighting factor and a value formula, and the value formula is:
  • the heat M size of two video clips at a certain time may be similar. In this case, it is not easy to determine the true relative size of the heat scores of the two video clips.
  • the importance of the video segment i.e., the weighting factor b[j']
  • the heat degree M is evaluated by combining the weighting factor b[j'] with the average access time interval T_est of the next moment of the video clip.
  • the actual relative size and replaces the cache file with the least frequent access frequency and the lowest probability of access at the next moment with the acquired new file.
  • This method not only ensures that the weighting factor bj] can reflect the latest user access situation in real time, but also avoids excessive changes in the weighting factor b[j] to cause disturbance to the decision.
  • the cache file replacement device 700 includes a segmentation module 710, an acquisition module 720, an access frequency module 730, a prediction module 740, a probability module 750, and a replacement module 760.
  • the segmentation module 710 is configured to acquire a plurality of videos, and divide each video into at least one video segment, and the step 601 performs segmentation and labeling in the same manner.
  • the obtaining module 720 is configured to obtain a cache file historical access frequency and a current access frequency and a label of the video segment.
  • the time when the video clip is currently accessed, the time when the video clip was last accessed, the average access time interval in which the video clip is accessed, and the video clip are obtained by using the same method in step 603.
  • the label is configured to obtain a cache file historical access frequency and a current access frequency and a label of the video segment.
  • the access frequency module 730 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency.
  • the average access frequency wherein the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
  • the average access time interval is calculated by the same method as step 605.
  • the prediction module 740 is configured to use, according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight of the preset access frequency of the next moment.
  • the value gets the predicted access frequency for each cache file.
  • the predicted access frequency of each cache file is calculated in the same manner as the step 607.
  • the probability module 750 is configured to obtain an access probability of the cache file.
  • the probability module 750 includes a probability sub-module 751, a normalization sub-module 752, a weighting parameter sub-module 753, and an adjustment sub-module 754.
  • the probability sub-module 751 is configured to calculate an average access probability of each video segment according to a preset access probability formula, where the access probability formula is:
  • j is the label of the video segment; 73 ⁇ 4ar[
  • the normalization sub-module 752 is configured to normalize the calculated average access probability of each of the video segments according to a preset normalization formula, where the normalization formula is:
  • p_kj] is the normalized average access probability of the video segment labeled j. In the present embodiment, all Tbarlj] are normalized based on a 3 ⁇ 4ar[m].
  • the p_kj] is an array of intermediate variables.
  • the above formula is also a low-pass filter in order not to make P[j] change too drastically. Limit the maximum value of y to no more than 1000, avoiding the disturbance caused by too severe weighting.
  • the adjustment sub-module 754 is configured to adjust all the calculated weighting parameters to a weighting factor b[j] smaller than T_est in the same ratio.
  • the weighting factor bj] may also be set according to an empirical value, thereby omitting the normalization sub-module 752, the weighting parameter sub-module 753, and the adjustment sub-module 754.
  • Other formulas that can implement the functions of the normalization sub-module 752, the weighting parameter sub-module 753, and the adjustment sub-module 754 can also be used in the weighting factor bj].
  • the replacement module 760 also includes a thermal sub-module 761 and a sequencing sub-module 762.
  • the heat sub-module 761 is configured to calculate the heat of the cache file according to the weighting factor and a value formula, and the value formula is:
  • the sorting sub-module 762 is configured to sort a plurality of the cache files according to the size of the heat of the cache file.
  • the replacement module 760 is for a new file to be obtained from a streaming file server Replace the least hot cache file.
  • the cache file replacement method and apparatus provided by the embodiments of the present invention can not only maintain a certain stability according to the old average access time interval, but also reduce the influence of the volatility of the latest access information.
  • the proportion of the old average access time interval in the new average access time interval to be smaller than the current access interval, it is possible to gradually weaken the relatively long-term access information to the current access information after a certain period of time.
  • the effect of avoiding the long-term access information interferes with the current sorting after the access mode changes, thus accurately reflecting the current access status of the cache file.
  • the cache file replacement method and apparatus provided by the embodiment of the present invention further predicts the average access time interval of the next moment by using the prediction formula, so that the cache file is accessed the latest time, and the closer to the current time, the greater the heat is obtained.
  • the cache file replacement method and apparatus provided by the embodiment of the present invention further increases the weight of the two video segments by statistically analyzing the historical access data by adding a weighting factor to the value formula to determine the actual heat of the two video segments. Relative size.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one adjustment unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above integrated unit implemented in the form of a software functional unit can be stored in a computer Read in the storage medium.
  • the software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory), a random access memory (RAM), a disk or an optical disk, and the like.
  • the medium of the program code includes: a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory), a random access memory (RAM), a disk or an optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a cache file replacement method, apparatus and system. The method includes the following steps: acquiring a historical access frequency and a current access frequency of each stored cache file; obtaining an average access frequency of each cache file according to the historical access frequency, current access frequency, a preset historical access frequency weight value, a preset current access frequency weight value of each cache file, wherein the preset historical access frequency weight value is less than the preset current access frequency weight value; and acquiring a cache file with the smallest average access frequency and replacing the cache file with the smallest average access frequency with a new cache file. The cache file replacement method provided by the present invention can improve the effectiveness of cache policies. In addition, also provided are a cache file replacement apparatus, and a network system using the cache file replacement method.

Description

緩存文件替换方法、 装置及系统 技术领域  Cache file replacement method, device and system
本发明涉及计算机通信领域, 尤其涉及一种緩存文件替换方法、 装置及系 统。 背景技术  The present invention relates to the field of computer communications, and in particular, to a cache file replacement method, apparatus, and system. Background technique
随着网络的普及, 网络传输的数据不仅仅局限于文本, 还包括了视频数据。 由于视频 VOD (Video On Demand, 视频点播技术)应用的数据传输存在着大码 率、 长时间传输的特点, 对 VOD服务器的带宽与响应速度都有很高要求。  With the popularity of the network, the data transmitted by the network is not limited to text, but also includes video data. Due to the large code rate and long-term transmission of video VOD (Video On Demand) applications, the bandwidth and response speed of VOD servers are very high.
因此考虑使用有限的存储空间存储部分视频内容作为本地代理服务器向用 户提供数据, 从而减少网络干线的数据流量。 如图 1所示, 1、 2、 3是流媒体文 件服务器, 4是代理服务器, 用户 5通过代理服务器享受流媒体服务。  Therefore, it is considered to use a limited storage space to store part of the video content as a local proxy server to provide data to the user, thereby reducing the data traffic of the network trunk. As shown in Figure 1, 1, 2, 3 are streaming media file servers, 4 is a proxy server, and user 5 enjoys streaming media services through a proxy server.
由于代理服务器的緩存空间是有限度的, 当这个空间装满以后, 必须把一 些利用率低的数据移走, 才能更好的提供服务。 緩存的替换策略就是用来决定 将哪些緩存数据移走, 它的目标就是要更好的利用可用的空间资源。  Since the cache space of the proxy server is limited, when this space is full, some low-utilization data must be removed to provide better services. The cache replacement strategy is used to decide which cache data to remove, and its goal is to make better use of the available space resources.
目前比较典型的替换策略有以下两种:  There are two typical replacement strategies at present:
1. LRU (Least Recently Used, 最近最少使用)算法, 该算法维护一个緩存项 队列, 队列中的緩存项按每项的最后被访问时刻排序。 当緩存空间已满时, 将 处于队尾的緩存项 (即最后被访问时刻距离现在最久的一项)删除, 将新的区 ^文入队列首。  1. LRU (Least Recently Used) algorithm, which maintains a cache entry queue in which the cache entries are sorted by the last accessed time of each entry. When the cache space is full, the cache entry at the end of the queue (that is, the one that is the oldest at the time of the last access) is deleted, and the new zone is entered into the queue.
2. LFU ( Least Frequently Used, 最不经常使用 )算法, 该算法按每个緩存 块的被访问频率将緩存中的各块排序, 当緩存空间已满时, 替换掉緩存队列中 访问频率最^ 的一项。  2. LFU (Least Frequently Used) algorithm, which sorts the blocks in the cache according to the frequency of access of each cache block. When the cache space is full, replace the access frequency in the cache queue. One.
然而, 上述两种算法均存在很多问题。 LRU算法受波动性的影响比较大。 例如某一部影片偶然被访问了一次, 以后不再被访问, 那么处理该影片时该影 片会被放入緩存, 而一部较流行的影片可能被从緩存中删除。  However, both of the above algorithms have many problems. The LRU algorithm is more affected by volatility. For example, if a movie is accidentally accessed once and is no longer accessed, the movie will be put into the cache when the movie is processed, and a more popular movie may be deleted from the cache.
而 LFU算法由于仅维护各项的被访问频率信息, 对于某个过去有着极高的 访问频率而最近访问频率较低的緩存项, 当緩存空间已满时该緩存项 4艮难被从 緩存中替换出来, 进而导致命中率下降。 发明内容 The LFU algorithm only maintains the accessed frequency information of each item, and for a cache entry that has a very high access frequency in the past and has a lower frequency of recent access, when the cache space is full, the cache entry 4 is difficult to be cached. Replaced, which in turn leads to a drop in hit rate. Summary of the invention
本发明实施例所要解决的技术问题在于, 提供一种緩存文件替换方法、 装 置及系统, 用以解决现有技术中由于访问频率低的緩存文件不能被及时从緩存 中被替换掉, 进而导致访问命中率下降的问题。  The technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a system for replacing a cache file, which are used to solve the problem that the cache file with low access frequency cannot be replaced from the cache in time in the prior art, thereby causing access. The problem of falling hit rate.
本发明实施例提供一种緩存文件替换方法, 该方法包括以下步骤: 获取已存储的各个緩存文件的历史访问频率和当前访问频率;  An embodiment of the present invention provides a cache file replacement method, where the method includes the following steps: acquiring a historical access frequency and a current access frequency of each cache file that has been stored;
根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的 历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文件的平 均访问频率, 其中所述预设的历史访问频率的权重值小于所述预设的当前访问 频率的权重值;  Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency, where The weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency;
获取平均访问频率最小的緩存文件, 用新的緩存文件替换所述平均访问频 率最小的緩存文件。  Obtain the cache file with the lowest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
相应的, 本发明实施例还提供了一种緩存文件替换装置, 该装置包括: 获取模块, 用于获取已存储的各个緩存文件的历史访问频率和当前访问频 率;  Correspondingly, the embodiment of the present invention further provides a cache file replacement device, where the device includes: an obtaining module, configured to acquire a historical access frequency and a current access frequency of each cache file that has been stored;
访问频率模块, 用于根据所述各个緩存文件的所述历史访问频率、 所述当 前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权重值获 得各个緩存文件的平均访问频率, 其中所述预设的历史访问频率的权重值小于 所述预设的当前访问频率的权重值;  The access frequency module is configured to obtain an average of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. An access frequency, where a weight value of the preset historical access frequency is less than a weight value of the preset current access frequency;
替换模块, 用于获取平均访问频率最小的緩存文件, 用新的緩存文件替换 所述平均访问频率最小的緩存文件。  The replacement module is configured to obtain a cache file with the smallest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
一种网络系统, 所述网络系统包括流媒体文件服务器及代理服务器, 其中, 所述代理服务器包括上述緩存文件替换装置, 从所述流媒体文件服务器中获取 流媒体文件, 并将所述流媒体文件保存为所述代理服务器内的緩存文件。  A network system, the network system includes a streaming media file server and a proxy server, wherein the proxy server includes the cache file replacement device, obtains a streaming media file from the streaming media file server, and the streaming media The file is saved as a cache file within the proxy server.
本发明实施例提供的緩存文件替换方法不但能够根据旧的平均访问时间间 隔保持一定的稳定性, 降低最新访问信息的波动性的影响。 另一方面通过在新 的平均访问时间间隔中将旧的平均访问时间间隔所占的比重小于当前的访问间 隔, 从而可以在经过一定时间之后, 逐渐减弱比较久远的访问信息对当前的访 问信息的影响, 避免了很久以前的访问信息在访问模式变化之后对现在的排序 造成干扰, 从而准确反映緩存文件当前的访问状态。 另外, 本发明实施例提供的緩存文件替换方法还进一步通过预测公式预测 下一个时刻的平均访问时间间隔, 从而使得緩存文件最新一次被访问越靠近当 前时刻, 将获得更大的热度, 加大所述緩存文件最近访问状态对热度的影响。 使得所述热度更加贴近于所述緩存文件当前的真实访问状态。 The cache file replacement method provided by the embodiment of the present invention can not only maintain a certain stability according to the old average access time interval, but also reduce the influence of the volatility of the latest access information. On the other hand, by occupying the proportion of the old average access time interval in the new average access time interval to be smaller than the current access interval, it is possible to gradually weaken the relatively long-term access information to the current access information after a certain period of time. The effect of avoiding the long-term access information interferes with the current sorting after the access mode changes, thus accurately reflecting the current access status of the cache file. In addition, the cache file replacement method provided by the embodiment of the present invention further predicts the average access time interval of the next moment by using the prediction formula, so that the cache file is accessed the latest time, and the closer the current time is, the greater the heat is obtained. The effect of the recent access state of the cache file on the heat. The heat is made closer to the current real access state of the cache file.
本发明实施例提供的緩存文件替换方法还通过在价值公式中增加加权因 定出两个视频片段热度的实际相对大小。 附图说明 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  The cache file replacement method provided by the embodiment of the present invention further determines the actual relative size of the heat of two video segments by adding a weighting factor in the value formula. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are incorporated in the claims Other drawings may also be obtained from these drawings without the inventive labor.
图 1是现有流媒体网络示意图;  1 is a schematic diagram of an existing streaming media network;
图 2是本发明第一实施例提供的緩存文件替换方法的流程图;  2 is a flowchart of a method for replacing a cache file according to the first embodiment of the present invention;
图 3是本发明第一实施例提供的緩存文件替换装置的示意图;  3 is a schematic diagram of a cache file replacing apparatus according to a first embodiment of the present invention;
图 4是本发明第二实施例提供的緩存文件替换方法的流程图;  4 is a flowchart of a method for replacing a cache file according to a second embodiment of the present invention;
图 5是本发明第二实施例提供的緩存文件替换装置的示意图;  FIG. 5 is a schematic diagram of a cache file replacing apparatus according to a second embodiment of the present invention; FIG.
图 6是本发明第三实施例提供的緩存文件替换方法的流程图;  6 is a flowchart of a method for replacing a cache file according to a third embodiment of the present invention;
图 7是本发明第三实施例提供的緩存文件替换装置的流程图。 具体实施方式  FIG. 7 is a flowchart of a cache file replacing apparatus according to a third embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例提供的緩存文件替换方法能够降低最新访问信息的波动性的 影响, 并避免了很久以前的访问信息在访问模式变化之后对现在的排序造成干 扰。  The cache file replacement method provided by the embodiment of the present invention can reduce the influence of the volatility of the latest access information, and avoids that the access information long ago interferes with the current order after the access mode changes.
请参阅图 2, 为本发明第一实施方式提供的一种緩存文件替换方法。 该方法 用于代理服务器中各个緩存文件的替换。 该方法包括以下步骤: Referring to FIG. 2, a cache file replacement method according to a first embodiment of the present invention is provided. this method Used for the replacement of individual cache files in the proxy server. The method includes the following steps:
步骤 101: 获取已存储的各个緩存文件的历史访问频率和当前访问频率。 所述历史访问频率可以用过去一段时间内的访问次数表示, 也可以用过去 一段时间内访问的平均时间间隔表示。 所述当前访问频率可以用距当前时刻最 近的一段时间的访问次数表示, 也可以用距当前时刻最近的一段时间内访问的 时间间隔表示。 本实施方式中, 所述历史访问频率用所述緩存文件被访问的平 均访问时间间隔表示, 所述当前访问频率用根据获取的所述緩存文件当前被访 问的时刻与所述緩存文件上次被访问的时刻之间的时间间隔表示。 本步骤中获 取緩存文件当前被访问的时刻、 所述緩存文件上次被访问的时刻及所述緩存文 件被访问的平均访问时间间隔。 所述緩存文件可以是一个视频中一个视频片段, 也可以是一个完整的视频。 本实施方式中, 所述緩存文件为一个视频中一个视 频片段。 代理服务器中可以将一个大的视频文件按照预设的时间段长度分成多 个等长的视频片段, 如将 20分钟的视频分成 0-5分钟, 5-10分钟, 10-15分钟、 15-20分钟四个视频片段。 当用户访问视频时, 代理服务器先将用户对视频文件 的请求转化为对所述视频文件相应视频段的请求,如开始时对应 0-5分钟的视频 片段。 本步骤中, 当某一个緩存文件被用户访问时, 获取所述緩存文件当前被 访问的时刻、 代理服务器中保存的所述緩存文件上次被访问的时刻及所述緩存 文件被访问的平均访问时间间隔。 所述平均访问时间间隔的初始值设为当前被 访问的时刻减去所述緩存文件上次被访问的时刻。  Step 101: Obtain a historical access frequency and a current access frequency of each cache file that has been stored. The historical access frequency may be expressed in terms of the number of visits in a past period of time, or may be expressed in an average time interval of visits over a period of time. The current access frequency may be represented by the number of accesses for the most recent period of time from the current time, or by the time interval of access during the period of time closest to the current time. In this embodiment, the historical access frequency is represented by an average access time interval in which the cache file is accessed, and the current access frequency is used by the time when the cache file is currently accessed and the cache file is last used. The time interval between the moments of access is indicated. In this step, the time when the cache file is currently accessed, the time when the cache file was last accessed, and the average access time interval in which the cache file is accessed are obtained. The cache file can be a video clip in a video or a complete video. In this embodiment, the cache file is a video segment in a video. The proxy server can divide a large video file into video segments of equal length according to the preset time period, such as dividing the 20-minute video into 0-5 minutes, 5-10 minutes, 10-15 minutes, 15- Four video clips in 20 minutes. When the user accesses the video, the proxy server first converts the user's request for the video file into a request for the corresponding video segment of the video file, such as a video clip corresponding to 0-5 minutes at the beginning. In this step, when a certain cache file is accessed by the user, the time when the cache file is currently accessed, the time when the cache file saved in the proxy server is last accessed, and the average access of the cache file are accessed. time interval. The initial value of the average access time interval is set to the current accessed time minus the time at which the cache file was last accessed.
步骤 103:根据所述各个緩存文件的所述历史访问频率、所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文 件的平均访问频率, 其中所述预设的历史访问频率的权重值小于所述预设的当 前访问频率的权重值。  Step 103: Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
本实施方式中采用预设的时间间隔公式及价值公式获得各个緩存文件的平 均访问频率。 所述时间间隔公式及价值公式为:  In this embodiment, a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file. The time interval formula and value formula are:
Γ = (1-α) χΓ0 + αχ (^2-Μ); ( 1 ) Γ = (1-α) χΓ 0 + αχ (^2-Μ); (1)
M =丄; (2 )  M =丄; (2)
T  T
其中, 为更新后的平均访问间隔; "为遗忘因子且满足 0.5<"<1; T0为所 述緩存文件被访问的平均访问时间间隔; N1为所述緩存文件当前被访问的时 刻; 为所述緩存文件上次被访问的时刻; Μ为所述緩存文件的热度, 即所述 平均访问频率。 所述"为预设的当前访问频率的权重值, α-^为预设的历史访 问频率的权重值。 Where is the updated average access interval; "is a forgetting factor and satisfies 0.5<"<1; T 0 is the average access time interval in which the cache file is accessed; N1 is the time at which the cache file is currently accessed; The time when the cache file was last accessed; Μ is the heat of the cache file, that is, the Average access frequency. The "weight value for the preset current access frequency, [alpha]-^ is the weight value of the preset historical access frequency.
上述时间间隔公式中, r。是由之前的访问情况决定的旧的平均访问时间间 隔, 其值的大小能够较准确地反映出该緩存文件在过去一段时间内的真实访问 状态。所述 r。的初始值设为当前被访问的时刻减去所述緩存文件上次被访问的时 刻。 旧的平均访问时间间隔 r。与最新的访问信息(所述緩存文件当前被访问的时 刻 N2 )通过遗忘因子 α结合起来之后, 一方面最新访问信息的波动性的影响会 降低, 从而达到本发明的目的。 另一方面, 是一个遗忘因子, 且取值在 0.5到 1之间。 本实施方式中, 可以假定所述 α=0.7。 当然, 在其他实施方式中, 所述 也可以取其他值。 在新的平均访问时间间隔 Γ中, 旧的平均访问时间间隔 Γ。所占 的比重小于当前的访问间隔( N2 - N1 )。 所以影片每被访问一次, 之前的访问情 况 Γ。在 Γ的比重中就会以一定的比率降低一点, 当过了一定时间之后, 距离现在 比较久远的访问信息在 Γ中的比重就会变得很小直至可以忽略不计。这样就避免 了很久以前的访问信息在访问模式变化之后对现在的排序造成干扰, 从而达到 本发明时变特性的目的。 即避免了过去有着极高的访问频率而最近访问频率较 低的緩存文件对现在緩存文件替换的影响。 In the above time interval formula, r. It is the old average access time interval determined by the previous access situation, and the value of the value can more accurately reflect the real access status of the cache file in the past period of time. Said r. The initial value is set to the time of the current access minus the time when the cache file was last accessed. The old average access interval r. After the latest access information (the time N2 at which the cache file is currently accessed) is combined by the forgetting factor α , the influence of the volatility of the latest access information is reduced, thereby achieving the object of the present invention. On the other hand, it is a forgetting factor and takes values between 0.5 and 1. In the present embodiment, it can be assumed that the α = 0.7. Of course, in other embodiments, the values may also take other values. In the new average access interval, the old average access interval is Γ. The proportion is less than the current access interval (N2 - N1). So every time the film is visited, the previous visit is awkward. In the proportion of Γ, it will be reduced by a certain ratio. After a certain period of time, the proportion of the visit information that is relatively old now will become small until it is negligible. This avoids the long-standing access information from interfering with the current ordering after the access mode changes, thereby achieving the purpose of the time-varying characteristics of the present invention. This avoids the impact of cache files that have a very high frequency of access in the past and have recently been accessed less frequently.
步骤 105: 获取平均访问频率最小的緩存文件, 用新的緩存文件替换所述平 均访问频率最小的緩存文件。  Step 105: Obtain a cache file with the smallest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
所述热度计算得到的值越大, 说明热度越高。 即所述緩存文件最近被访问 的越频繁。  The larger the value calculated by the heat, the higher the heat. That is, the more frequently the cache file is accessed recently.
根据所述緩存文件的热度的大小对多个所述緩存文件进行排序。 以所述緩 存文件的热度进行排序, 能够获得哪些緩存文件最近频繁被访问, 哪些文件最 近访问频率较低, 从而给代理服务器替换文件提供参考。  Sorting the plurality of cache files according to the size of the cache file. By sorting the heat of the cache file, it is possible to obtain which cache files are frequently accessed recently, and which files are recently accessed less frequently, thereby providing a reference for the proxy server to replace the file.
将热度最小的緩存文件删除, 即, 将平均访问间隔最长(平均访问频率最 小) 的所述緩存文件删除, 并将从流媒体文件服务器中获得的新文件存储在代 理服务器中成为新的所述緩存文件, 提高緩存决策的有效性。  Delete the cache file with the least heat, that is, delete the cache file with the longest average access interval (the average access frequency is the smallest), and store the new file obtained from the streaming file server in the proxy server to become the new one. Cache files to improve the effectiveness of cache decisions.
请参阅图 3 , 为本发明第一实施方式提供的一种緩存文件替换装置 200。 所 述緩存文件替换装置 200设置于一个代理服务器 110 中。 所述代理服务器 110 与流媒体文件服务器 120组成一个网络系统 100。所述代理服务器 110将用户访 问过的所述流媒体文件服务器 120 中的部分流媒体文件作为緩存文件保存在所 述代理服务器 110的硬盘(未图示)上。 所述緩存文件替换装置 200包括获取 模块 210、 访问频率模块 220及替换模块 230。 Please refer to FIG. 3 , which is a cache file replacing apparatus 200 according to a first embodiment of the present invention. The cache file replacement device 200 is disposed in a proxy server 110. The proxy server 110 and the streaming media file server 120 form a network system 100. The proxy server 110 saves a part of the streaming media files in the streaming media file server 120 accessed by the user as a cache file. The hard disk (not shown) of the proxy server 110 is described. The cache file replacement device 200 includes an acquisition module 210, an access frequency module 220, and a replacement module 230.
所述获取模块 210用于获取已存储的各个緩存文件的历史访问频率和当前 访问频率。 本实施方式中, 所述获取模块 210用于获取緩存文件当前被访问的 时刻、 所述緩存文件上次被访问的时刻及所述緩存文件被访问的平均访问时间 间隔。 本实施例中, 当某一个緩存文件被用户访问时, 获取所述緩存文件当前 被访问的时刻、 代理服务器中保存的所述緩存文件上次被访问的时刻及所述緩 存文件被访问的平均访问时间间隔。  The obtaining module 210 is configured to obtain a historical access frequency and a current access frequency of each cache file that has been stored. In this embodiment, the obtaining module 210 is configured to acquire a time when the cache file is currently accessed, a time when the cache file was last accessed, and an average access time interval in which the cache file is accessed. In this embodiment, when a cache file is accessed by the user, the time when the cache file is currently accessed, the time when the cache file saved in the proxy server is last accessed, and the average value of the cache file are accessed are obtained. Access time interval.
所述访问频率模块 220用于根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权 重值获得各个緩存文件的平均访问频率, 其中所述预设的历史访问频率的权重 值小于所述预设的当前访问频率的权重值。 本实施方式中, 所述访问频率模块 220用于根据获取的所述緩存文件当前被访问的时刻、所述緩存文件上次被访问 的时刻、 所述緩存文件被访问的平均访问时间间隔及预设的时间间隔公式更新 所述緩存文件被访问的平均访问时间间隔, 所述时间间隔公式为: r = (l - a) x r0 + a x (N2 - M) ; 其中, T为更新后的平均访问间隔; a为遗忘因子, 且满足 0.5<a<l ; T0为所述緩存文件被访问的平均访问时间间隔; N2为所述緩 存文件当前被访问的时刻; N1为所述緩存文件上次被访问的时刻。 所述访问频 率模块 220采用所述步骤 103的方法计算所述緩存文件被访问的平均访问时间 间隔。 The access frequency module 220 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The average access frequency, wherein the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency. In this embodiment, the access frequency module 220 is configured to: according to the obtained time when the cache file is currently accessed, the time when the cache file was last accessed, the average access time interval of the cache file being accessed, and the pre-emption The time interval formula is updated to update the average access time interval in which the cache file is accessed, and the time interval formula is: r = (l - a) xr 0 + ax (N2 - M); where T is the updated average Access interval; a is a forgetting factor, and satisfies 0.5<a<l; T 0 is the average access time interval in which the cache file is accessed; N2 is the time at which the cache file is currently accessed; N1 is on the cache file. The time of being visited. The access frequency module 220 calculates the average access time interval in which the cache file is accessed by using the method in step 103.
所述访问频率模块 220包括热度子模块 221。所述热度子模块 221用于根据 更新后的平均访问时间间隔及价值公式计算所述緩存文件的热度, 所述价值公 式为:  The access frequency module 220 includes a thermal sub-module 221 . The heat sub-module 221 is configured to calculate the heat of the cache file according to the updated average access time interval and a value formula, where the value formula is:
M= 。 M= .
所述热度计算得到的值越大, 说明热度越高。 即所述緩存文件最近被访问 的越频繁。  The larger the value calculated by the heat, the higher the heat. That is, the more frequently the cache file is accessed recently.
所述替换模块 230用于替换所述平均访问频率最小的緩存文件。 本实施方 式中, 所述替换模块 230包括排序子模块 231。  The replacement module 230 is configured to replace the cache file with the smallest average access frequency. In this embodiment, the replacement module 230 includes a sorting sub-module 231.
所述排序子模块 231 用于根据所述緩存文件的热度的大小对多个所述緩存 文件进行排序。 以所述緩存文件的热度进行排序, 能够使得最近频繁访问的緩 存文件在緩存空间中不易被删除, 而最近访问频率较低的緩存文件能够在緩存 空间中更快的被删除。 所述替换模块 230用于将从流媒体文件服务器中获得的 新文件替换热度最小的緩存文件。 The sorting sub-module 231 is configured to pair the plurality of caches according to the size of the heat of the cache file. The files are sorted. Sorting the heat of the cache file enables the most frequently accessed cache files to be easily deleted in the cache space, and the cache files with lower recent access frequencies can be deleted faster in the cache space. The replacement module 230 is configured to replace the new file obtained from the streaming media file server with the cache file with the least heat.
请参阅图 4, 为本发明第二实施方式提供的一种緩存文件替换方法。 该方法 包括以下步骤:  Referring to FIG. 4, a cache file replacement method according to a second embodiment of the present invention is provided. The method includes the following steps:
步骤 301: 获取各个緩存文件历史访问频率、 当前访问频率及下一个时刻的 访问频率。  Step 301: Obtain the historical access frequency, the current access frequency, and the access frequency of the next time of each cache file.
本实施方式中, 获取緩存文件当前被访问的时刻、 所述緩存文件上次被访 问的时刻及所述緩存文件被访问的平均访问时间间隔。 本实施方式中, 采用所 述步骤 101 相同的方法获取上述各参数。 所述下一个时刻的访问频率可以用获 取的所述緩存文件当前被访问的时刻与所述当前时刻的下一个时刻之间的时间 间隔表示。  In this embodiment, the time at which the cache file is currently accessed, the time when the cache file was last accessed, and the average access time interval in which the cache file is accessed are obtained. In this embodiment, the above parameters are obtained by the same method as step 101. The access frequency of the next time instant may be represented by a time interval between the time at which the obtained cache file is currently accessed and the next time of the current time.
步骤 303:根据所述各个緩存文件的所述历史访问频率、所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文 件的平均访问频率, 其中所述预设的历史访问频率的权重值小于所述预设的当 前访问频率的权重值。  Step 303: Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
本实施方式中采用预设的时间间隔公式及价值公式获得各个緩存文件的平 均访问频率。 所述时间间隔公式及价值公式为:  In this embodiment, a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file. The time interval formula and value formula are:
Γ = (1-α) χΓ0 + αχ (^2-Μ); ( 1 ) τ · ( 2 ) Γ = (1-α) χΓ 0 + αχ (^2-Μ); (1) τ · ( 2 )
其中, 为更新后的平均访问间隔; "为遗忘因子且满足 0.5<"<1; T0为所 述緩存文件被访问的平均访问时间间隔; N1为所述緩存文件当前被访问的时 刻; 为所述緩存文件上次被访问的时刻; Μ为所述緩存文件的热度, 即所述 平均访问频率。 所述"为预设的当前访问频率的权重值, α-^为预设的历史访 问频率的权重值。 Where is the updated average access interval; "is a forgetting factor and satisfies 0.5<"<1; T 0 is the average access time interval in which the cache file is accessed; N1 is the time at which the cache file is currently accessed; The time when the cache file was last accessed; Μ is the heat of the cache file, that is, the average access frequency. The "weight value for the preset current access frequency, [alpha]-^ is the weight value of the preset historical access frequency.
步骤 305: 根据各个緩存文件的所述当前访问频率、 所述下一个时刻的访问 频率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的访问频率的权 重值获得各个緩存文件的预测访问频率。 本实施方式中, 根据公式(1 )及以下两个公式获得各个緩存文件的平均访 问频率, Step 305: Obtain each cache according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next time. The predicted access frequency of the file. In this embodiment, the average access frequency of each cache file is obtained according to formula (1) and the following two formulas,
T_&st = (l - c) x T'+c x (N _ est - N'); ( 3 ) T_&st = (l - c) x T'+c x (N _ est - N'); ( 3 )
=丄  =丄
T_est . ( 4 )  T_est . ( 4 )
其中, 为预测的未来的平均访问时间间隔; 为最新的平均访问时间 间隔, 当所述緩存文件当前时刻没有被用户访问时, T' = T0 , 当所述緩存文件当 前时刻被用户访问时, T' = T ; c为预估因子, 且满足 0.5<c<l ; 为当前时 刻的下一个时刻; 为所述緩存文件最新一次被访问的时刻, 当所述緩存文件 当前时刻没有被用户访问时, N' = N1 , 当所述緩存文件当前时刻被用户访问时, N' = N2。 所述 c为预设的下一个时刻的访问频率的权重值。 Wherein, the predicted average access time interval is the latest average access time interval, when the current time of the cache file is not accessed by the user, T' = T 0 , when the current time of the cache file is accessed by the user , T' = T; c is a predictor, and satisfies 0.5<c<l; is the next moment of the current time; is the time when the cache file is last accessed, when the current time of the cache file is not used by the user When accessing, N' = N1, when the cache file is currently accessed by the user, N' = N 2 . The c is a weight value of the access frequency of the preset next time.
当所述緩存文件当前时刻没有被用户访问时, Γ'为过去的所述緩存文件的平 均访问时间间隔, 即 Γ。。 N为所述緩存文件上次被访问的时刻, 即 Μ。 当所述 緩存文件当前时刻被用户访问时, N为所述緩存文件当前被访问的时刻,即 N2。  When the cache file is not accessed by the user at the current time, Γ 'is the average access time interval of the cache file in the past, that is, Γ. . N is the time when the cache file was last accessed, that is, Μ. When the current time of the cache file is accessed by the user, N is the time at which the cache file is currently accessed, that is, N2.
所述预估因子 与所述遗忘因子 Ω作用相同。 本实施方式中, 可以假定所述 预估因子 c=0.7。 所述当前时刻的下一个时刻 N _ 6 ^为在当前时刻加 1秒钟。 当 然, 在其他实施方式中, 所述预估因子也可以取其他值, 或者与所述遗忘因子 Ω 取相同的值。 所述当前时刻的下一个时刻 也可以在当前时刻增加 1毫秒、 5秒或 1分钟。 The predictor has the same effect as the forgetting factor Ω . In the present embodiment, the estimation factor c = 0.7 can be assumed. The next time N _ 6 ^ of the current time is 1 second added at the current time. Of course, in other embodiments, the predictor may take other values or take the same value as the forgetting factor Ω . The next moment of the current moment may also be increased by 1 millisecond, 5 seconds or 1 minute at the current moment.
根据实际用户访问情况, 把历史平均访问时间间隔和预测得到的下一次访 问时间间隔以不同的权重融合起来, 得到一个对未来访问时间间隔的估计值。  According to the actual user access situation, the historical average access time interval and the predicted next access time interval are combined with different weights to obtain an estimated value of the future access time interval.
步骤 307: 用新的緩存文件替换所述下一个时刻的访问频率最小的緩存文 件。  Step 307: Replace the cache file with the least frequent access frequency at the next moment with the new cache file.
从预测公式中可以看出, 所述緩存文件最新一次被访问的时刻 N'越靠近当 前时刻的所述緩存文件, 间隔时间越短, 热度 M越大。 从而能够加大所述緩存 文件最近访问状态对热度 M的影响。使得所述热度 M更加贴近于所述緩存文件 当前的真实访问状态。  It can be seen from the prediction formula that the time N' at which the cache file is last accessed is closer to the cache file at the current time, and the shorter the interval time, the greater the heat M. Thereby, the influence of the most recent access state of the cache file on the heat M can be increased. The heat M is made closer to the current real access state of the cache file.
根据所述緩存文件的热度的大小对多个所述緩存文件进行排序。 本实施方 式中, 采用所述步骤 105相同的方法进行排序, 并替换所述热度最小的緩存文 件。 请参阅图 5 , 为本发明第二实施方式提供的一种緩存文件替换装置 510。 所 述緩存文件替换装置 510与所述第一实施方式提供的緩存文件替换装置 200基 本相同, 用于相同的代理服务器及网络系统中。 所述緩存文件替换装置 510 包 括获取模块 511、 访问频率模块 512、 预测模块 513及替换模块 514。 Sorting the plurality of cache files according to the size of the cache file. In this embodiment, the same method as step 105 is used to perform sorting, and the cache file with the least heat is replaced. Referring to FIG. 5, a cache file replacing apparatus 510 according to a second embodiment of the present invention is provided. The cache file replacement device 510 is substantially the same as the cache file replacement device 200 provided by the first embodiment, and is used in the same proxy server and network system. The cache file replacement device 510 includes an acquisition module 511, an access frequency module 512, a prediction module 513, and a replacement module 514.
所述获取模块 511 用于获取各个緩存文件历史访问频率、 当前访问频率及 下一个时刻的访问频率。 本实施方式中, 采用所述步骤 301的方法获取各参数。  The obtaining module 511 is configured to obtain a historical access frequency of each cache file, a current access frequency, and an access frequency of the next moment. In this embodiment, each parameter is obtained by the method of step 301.
所述访问频率模块 512用于根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权 重值获得各个緩存文件的平均访问频率, 其中所述预设的历史访问频率的权重 值小于所述预设的当前访问频率的权重值。 本实施方式中采用预设的时间间隔 公式及价值公式获得各个緩存文件的平均访问频率。 所述时间间隔公式及价值 公式为:  The access frequency module 512 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The average access frequency, wherein the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency. In this embodiment, a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file. The time interval formula and value formula are:
Γ = (1-α) χΓ0 + αχ (^2-Μ); ( 1 ) Γ = (1-α) χΓ 0 + αχ (^2-Μ); (1)
τ · ( 2 )  τ · ( 2 )
其中, 为更新后的平均访问间隔; "为遗忘因子且满足 0.5<"<1; T0为所 述緩存文件被访问的平均访问时间间隔; N1为所述緩存文件当前被访问的时 刻; 为所述緩存文件上次被访问的时刻; Μ为所述緩存文件的热度, 即所述 平均访问频率。 所述"为预设的当前访问频率的权重值, α-^为预设的历史访 问频率的权重值。 本实施方式中, 所述访问频率模块 512采用所述步骤 303相 同的方法获得各个緩存文件的平均访问频率。 Where is the updated average access interval; "is a forgetting factor and satisfies 0.5<"<1; T 0 is the average access time interval in which the cache file is accessed; N1 is the time at which the cache file is currently accessed; The time when the cache file was last accessed; Μ is the heat of the cache file, that is, the average access frequency. The weight value of the preset current access frequency, α-^ is the weight value of the preset historical access frequency. In this embodiment, the access frequency module 512 obtains each cache by the same method as step 303. The average frequency of access to the file.
所述预测模块 513 用于根据各个緩存文件的所述当前访问频率、 所述下一 个时刻的访问频率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的 访问频率的权重值获得各个緩存文件的预测访问频率。 本实施方式中, 所述预 测模块 513采用所述步骤 305相同的方法计算下一个时刻的平均访问时间间隔。 所述预测模块 513包括热度子模块 513a, 用于根据所述预测公式计算出的平均 访问时间间隔及公式(4 )计算所述緩存文件的热度。  The prediction module 513 is configured to use, according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight of the preset access frequency of the next moment. The value gets the predicted access frequency for each cache file. In this embodiment, the prediction module 513 calculates the average access time interval at the next moment in the same manner as the step 305. The prediction module 513 includes a thermal sub-module 513a for calculating the popularity of the cache file according to the average access time interval calculated by the prediction formula and the formula (4).
所述替换模块 514用于用新的緩存文件替换所述下一个时刻的访问频率最 小的緩存文件。 本实施方式中, 所述替换模块 514包括排序子模块 514a。  The replacement module 514 is configured to replace the cache file with the least frequent access frequency at the next moment with a new cache file. In this embodiment, the replacement module 514 includes a sorting sub-module 514a.
所述排序子模块 514a用于根据所述緩存文件的热度的大小对多个所述緩存 文件进行排序。 本实施方式中, 所述排序子模块 514a与所述第一实施方式中的 所述排序子模块 231相同。 所述替换模块 514用于将从流媒体文件服务器中获 得的新文件替换热度最小的緩存文件。 The sorting sub-module 514a is configured to sort a plurality of the cache files according to the size of the hotness of the cache file. In this embodiment, the ordering submodule 514a is the same as in the first embodiment. The sorting sub-module 231 is the same. The replacement module 514 is configured to replace the new file obtained from the streaming media file server with the cache file with the least heat.
请参阅图 6, 为本发明第三实施方式提供的一种緩存文件替换方法。 本实施 方式中, 所述緩存文件替换方法处理的緩存文件是视频片段。 该方法包括以下 步骤:  Please refer to FIG. 6, which is a cache file replacement method according to a third embodiment of the present invention. In this embodiment, the cache file processed by the cache file replacement method is a video clip. The method includes the following steps:
步骤 601: 获取多个视频, 将每个视频分成至少一个视频片段, 并将不同视 频中的各视频片段采用相同的标号规则标号。  Step 601: Acquire multiple videos, divide each video into at least one video segment, and use the same label rule label for each video segment in different videos.
本实施方式中, 以 5 分钟为一段将每个视频分成多段, 并将各视频中的各 个视频片段按照时间顺序依次以 0,1,2...标号。 当然, 在其他实施方式中, 也可 以采用其他数字或字母标号。  In the present embodiment, each video is divided into a plurality of segments in a period of 5 minutes, and each video segment in each video is sequentially labeled with 0, 1, 2... in chronological order. Of course, other numbers or letter numbers may be used in other embodiments.
步骤 603:获取緩存文件历史访问频率和当前访问频率及所述视频片段的标 号。  Step 603: Obtain a cache file historical access frequency and a current access frequency and a label of the video segment.
本实施方式中, 获取所述视频片段当前被访问的时刻、 所述视频片段上次 被访问的时刻、 所述视频片段被访问的平均访问时间间隔及所述视频片段的标 号。 本实施方式中, 采用所述步骤 101 相同的方法获取所述视频片段当前被访 时间间隔。 另外, 本步骤中, 还获取各个视频片段的标号。  In this embodiment, the time when the video clip is currently accessed, the time when the video clip was last accessed, the average access time interval in which the video clip is accessed, and the label of the video clip are obtained. In this embodiment, the current time interval of the video segment is obtained by the same method as that in step 101. In addition, in this step, the label of each video segment is also obtained.
步骤 605:根据所述各个緩存文件的所述历史访问频率、所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文 件的平均访问频率, 其中所述预设的历史访问频率的权重值小于所述预设的当 前访问频率的权重值。  Step 605: Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency.
本实施方式中采用预设的时间间隔公式及价值公式获得各个緩存文件的平 均访问频率。 所述时间间隔公式及价值公式为:  In this embodiment, a preset time interval formula and a value formula are used to obtain an average access frequency of each cache file. The time interval formula and value formula are:
Γ = (1-α) χΓ0 + αχ (^2-Μ); ( 1 ) τ · ( 2 ) Γ = (1-α) χΓ 0 + αχ (^2-Μ); (1) τ · ( 2 )
其中, 为更新后的平均访问间隔; "为遗忘因子且满足 0.5<"<1; T0为所 述緩存文件被访问的平均访问时间间隔; N1为所述緩存文件当前被访问的时 刻; 为所述緩存文件上次被访问的时刻; Μ为所述緩存文件的热度, 即所述 平均访问频率。 所述"为预设的当前访问频率的权重值, α-^为预设的历史访 问频率的权重值。 Where is the updated average access interval; "is a forgetting factor and satisfies 0.5<"<1; T 0 is the average access time interval in which the cache file is accessed; N1 is the time at which the cache file is currently accessed; The time when the cache file was last accessed; Μ is the heat of the cache file, that is, the average access frequency. The "weight value for the preset current access frequency, α-^ is a preset historical visit Ask the weight value of the frequency.
步骤 607: 根据各个緩存文件的所述当前访问频率、 所述下一个时刻的访问 频率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的访问频率的权 重值获得各个緩存文件的预测访问频率。  Step 607: Obtain each cache according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next time. The predicted access frequency of the file.
本实施方式中, 根据公式(1 )及以下两个公式获得各个緩存文件的平均访 问频率,  In this embodiment, the average access frequency of each cache file is obtained according to formula (1) and the following two formulas,
T_&st = (l-c)xT'+cx(N_est-N'); ( 3 )  T_&st = (l-c)xT'+cx(N_est-N'); (3)
其中, 为预测的未来的平均访问时间间隔; 为最新的平均访问时间 间隔, 当所述緩存文件当前时刻没有被用户访问时, T' = T0, 当所述緩存文件当 前时刻被用户访问时, T' = T ; c为预估因子, 且满足 0.5<c<l; 为当前时 刻的下一个时刻; 为所述緩存文件最新一次被访问的时刻, 当所述緩存文件 当前时刻没有被用户访问时, Ν' = Ν\ , 当所述緩存文件当前时刻被用户访问时, N' = N1。 所述 c为预设的下一个时刻的访问频率的权重值。 Wherein, the predicted average access time interval is the latest average access time interval, when the current time of the cache file is not accessed by the user, T' = T 0 , when the current time of the cache file is accessed by the user , T′ = T ; c is a predictor, and satisfies 0.5<c<l; is the next moment of the current time; is the time when the cache file is last accessed, when the current time of the cache file is not used by the user When accessing, Ν' = Ν\, when the cache file is currently accessed by the user, N' = N1. The c is a weight value of the access frequency of the preset next time.
步骤 609: 获取所述緩存文件的访问概率。  Step 609: Obtain an access probability of the cache file.
本实施方式中, 根据预设的访问概率公式计算各个视频片段的平均访问概 率, 所述访问相无率公式为:  In this embodiment, an average access probability of each video segment is calculated according to a preset access probability formula, and the access phase difference rate formula is:
Tbar[j] = a2 Tbar[j] + (1 - a∑) x X ? J =0123 . (5 ) Tbar[j] = a2 Tbar[j] + (1 - a∑) x X ? J =0123 . (5 )
其中, j为所述视频片段的标号; 7¾ar[ |为标号为 j的视频片段预设的平均 点播概率, 初始值为 1; 2为常数, 2大于等于 0.9, 且小于 1; X为一个访问 状态系数, 当所述视频片段被访问时, 所述 X=l, 否则 Χ=0。  Where j is the label of the video segment; 73⁄4ar[ | is the average on-demand probability of the video segment labeled j, the initial value is 1; 2 is a constant, 2 is greater than or equal to 0.9, and is less than 1; X is an access State coefficient, when the video segment is accessed, the X = l, otherwise Χ = 0.
本实施方式中, 所述 j=0,l,2,3...。 7¾r[ |为第 j个所述视频片段预设的平均 点播概率。 2为 0.999。 当然, 在其他实施方式中, 所述 2也可以为其他小于且 接近 1的小数。例如,第 0视频片段第一次被访问,则 ¾ar[0]= 0.999 X 1+(1-0.999) x l=l。 其余视频片段 ¾ar[l]、 Tbar[2]. ¾ [3]则等于 =0.999 x 1+(1-0.999) x In the present embodiment, the j = 0, 1, 2, 3, .... 73⁄4r[ | The average on-demand probability preset for the jth video clip. 2 is 0.999. Of course, in other embodiments, the 2 may also be other fractions that are smaller than and close to 1. For example, if the 0th video clip is accessed for the first time, then 3⁄4ar[0]= 0.999 X 1+(1-0.999) x l=l. The remaining video clips 3⁄4ar[l], Tbar[2]. 3⁄4 [3] are equal to =0.999 x 1+(1-0.999) x
0=0.999。 上述公式相当于低通滤波器, 2=0.999可以使滤波器带宽很小, 从而 减小用户访问行为随机性的影响。 0=0.999. The above formula is equivalent to a low-pass filter, and 2 = 0.999 can make the filter bandwidth small, thereby reducing the randomness of user access behavior.
根据预设的归一化公式将计算出的所述各个视频片段的平均访问概率归一 化, 所述归一化公式为:  Calculating the calculated average access probability of each of the video segments according to a preset normalization formula, the normalization formula is:
v = TbaAm\ . (6) v = TbaAm\ . (6)
Tbar[j]  Tbar[j]
其中, m为 j中任意一个数; P_k[j]为标号为 j的视频片段的归一化后的平均 访问概率。 本实施方式中, 以一个 ¾ar[m]为基准将所有 ¾arj]做归一化处理。 所述Where m is any number in j; P_k[j] is the normalized average access probability of the video segment labeled j. In the present embodiment, all 3⁄4arj] are normalized based on a 3⁄4ar[m]. Said
P_k[j]是一个中间变量数组。 P_k[j] is an array of intermediate variables.
根据归一化的平均访问概率及参数公式计算加权参数, 所述参数公式为: The weighting parameter is calculated according to the normalized average access probability and the parameter formula, and the parameter formula is:
P[j] = a3xP[j] + (l-a3)xy; (7) P[j] = a3xP[j] + (l-a3)xy; (7)
其中, P[j]为标号为 j的视频片段的加权参数,其初始值为 1; α3为常数, 大于等于 0.9,且小于 1; 若 P_kj] >1000 , 贝1 Jy = 1000, 若 P_k[j]≤ 1000 , 贝1 Jy = P_k[j]。 Where P[j] is the weighting parameter of the video segment labeled j, and its initial value is 1; α3 is a constant, greater than or equal to 0.9, and less than 1; if P_kj] >1000, Bay 1 Jy = 1000, if P_k[ j] ≤ 1000 , Bay 1 Jy = P_k[j].
上述公式也是一个低通滤波器, 为了不使 P[j]发生过于剧烈的变化。 限定 y 的最大值不超过 1000, 避免过于剧烈的加权值带来的扰动。  The above formula is also a low-pass filter in order not to make P[j] change too drastically. Limit the maximum value of y to no more than 1000, avoiding the perturbations caused by too severe weighting.
将计算出的所有所述加权参数按相同比例调整为小于 T_est 的加权因子 b[j]。 为了不使加权之后视频片段的相对热度大小变化得过于剧烈, 需要将不同 视频片段对应的加权参数减小为小于丁_681的数。 本实施方式中, 通过实验发现 取所述加权参数的四分之一次幂时, 视频片段在代理服务器上的命中率较高。 因而采用调整公式 b[ ] = ρϋ]。·25将所有所述加权参数按相同比例调整为小于 T_est 的数。 当然, 在其他实施方式中, 也可以是采用乘以小数或按百分比调整所述 力口权参数。 All of the calculated weighting parameters are adjusted to be equal to the weighting factor b[j] of T_est in the same ratio. In order not to change the relative heat size of the video segment after weighting too much, it is necessary to reduce the weighting parameter corresponding to different video segments to a number smaller than D_681. In this embodiment, when the experiment finds that the power of the quarter of the weighting parameter is taken, the hit rate of the video segment on the proxy server is high. Therefore, the adjustment formula b[ ] = ρϋ] is adopted. • 25 adjusts all of the weighting parameters to the same scale to a number less than T_est. Of course, in other embodiments, the force weight parameter may also be adjusted by multiplying by a decimal or by a percentage.
步骤 611:用新的緩存文件替换所述下一个时刻的访问频率最小且访问概率 最低的所述緩存文件。  Step 611: Replace the cache file with the lowest access frequency and the lowest access probability at the next moment with the new cache file.
本实施方式中, 根据所述加权因子及价值公式计算所述緩存文件的热度, 所述价值公式为:  In this embodiment, the heat of the cache file is calculated according to the weighting factor and a value formula, and the value formula is:
M = ^ 1- ^; (8) M = ^ 1 - ^; (8)
T_estxb[j]  T_estxb[j]
由于受波动性的影响,某一时刻两个视频片段的热度 M大小可能相差无几, 在这种情况下就不容易确定两个视频片段热度 M的真实相对大小。 本实施方式 中, 通过对视频片段的历史访问数据的统计分析, 得出视频片段的重要性(即 加权因子 b[j'] )。 把加权因子 b[j']与视频片段的下一个时刻的平均访问时间间隔 T_est相结合来评价热度 M。从而把历史访问信息中的趋势性信息用到价值函数 Due to the influence of volatility, the heat M size of two video clips at a certain time may be similar. In this case, it is not easy to determine the true relative size of the heat scores of the two video clips. In this embodiment, the importance of the video segment (i.e., the weighting factor b[j']) is obtained by statistical analysis of the historical access data of the video segment. The heat degree M is evaluated by combining the weighting factor b[j'] with the average access time interval T_est of the next moment of the video clip. Thus using trend information in historical access information to the value function
M =—— 1-——中, 滤除了当前波动性的影响, 从而确定出两个视频片段热度 M T_estxb[j] M =—— 1 -——, filtering out the influence of current volatility, thus determining the heat of two video clips M T_estxb[j]
的实际相对大小, 并用获取的新的文件替换所述下一个时刻的访问频率最小且 访问概率最低的所述緩存文件。 The actual relative size, and replaces the cache file with the least frequent access frequency and the lowest probability of access at the next moment with the acquired new file.
本实施方式中, 当视频片段被访问时, 把本次的访问情况和历史访问情况 以公式 TbarU] = 2x Tbar[j] + (1-α2)χΧ结合起来, 得到视频片段的平均点播概率; 然后把得到的平均点播概率 7¾ar[ ]利用设定的方法进行归一化,得到一个中间参 数 P_k[j]; 把本次得到的中间参数 p_kj]和历史上的中间参数 P j]以公式 P[j]=a3 xP[j]+(l-a3)xy结合起来, 得到一个平均的中间参数 P[j]; 最后, 把得到的平 均中间参数 P j]利用公式 b '] = p[j]。25进行调整, 得到一个最新的、 合理的加权因 子 b j]。 这种方法既保证了加权因子 b j]能够实时地反映最新的用户访问情况, 又能避免加权因子 b[j]发生过大的变化从而给决策带来扰动。 In this embodiment, when the video segment is accessed, the current access situation and the historical access situation are combined by the formula TbarU] = 2x Tbar[j] + (1-α2) , to obtain an average on-demand probability of the video segment; Then, the obtained average on-demand probability 73⁄4ar[ ] is normalized by the set method to obtain an intermediate parameter P_k[j]; the intermediate parameter p_kj] obtained this time and the historical intermediate parameter P j] are given by the formula P. [j]=a3 xP[j]+(l-a3)xy are combined to obtain an average intermediate parameter P[j]; Finally, the resulting flat The intermediate intermediate parameter P j] uses the formula b '] = p[j]. 25 to adjust, get a new, reasonable weighting factor bj]. This method not only ensures that the weighting factor bj] can reflect the latest user access situation in real time, but also avoids excessive changes in the weighting factor b[j] to cause disturbance to the decision.
请参阅图 7 , 为本发明第三实施方式提供的一种緩存文件替换装置 700。 所 述緩存文件替换装置 700包括分割模块 710、 获取模块 720、访问频率模块 730、 预测模块 740、 概率模块 750及替换模块 760。  Referring to FIG. 7, a cache file replacing apparatus 700 according to a third embodiment of the present invention is provided. The cache file replacement device 700 includes a segmentation module 710, an acquisition module 720, an access frequency module 730, a prediction module 740, a probability module 750, and a replacement module 760.
所述分割模块 710用于获取多个视频, 将每个视频分成至少一个视频片段, 所述步骤 601相同的方法进行分割及标号。  The segmentation module 710 is configured to acquire a plurality of videos, and divide each video into at least one video segment, and the step 601 performs segmentation and labeling in the same manner.
所述获取模块 720用于获取緩存文件历史访问频率和当前访问频率及所述 视频片段的标号。 本实施方式中采用所述步骤 603相同的方法获取所述视频片 段当前被访问的时刻、 所述视频片段上次被访问的时刻、 所述视频片段被访问 的平均访问时间间隔及所述视频片段的标号。  The obtaining module 720 is configured to obtain a cache file historical access frequency and a current access frequency and a label of the video segment. In this embodiment, the time when the video clip is currently accessed, the time when the video clip was last accessed, the average access time interval in which the video clip is accessed, and the video clip are obtained by using the same method in step 603. The label.
所述访问频率模块 730用于根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权 重值获得各个緩存文件的平均访问频率, 其中所述预设的历史访问频率的权重 值小于所述预设的当前访问频率的权重值。 本实施方式中, 采用所述步骤 605 相同的方法计算所述平均访问时间间隔。  The access frequency module 730 is configured to obtain each cache file according to the historical access frequency of the respective cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. The average access frequency, wherein the weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency. In this embodiment, the average access time interval is calculated by the same method as step 605.
所述预测模块 740用于根据各个緩存文件的所述当前访问频率、 所述下一 个时刻的访问频率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的 访问频率的权重值获得各个緩存文件的预测访问频率。 本实施方式中, 采用与 所述步骤 607相同的方法计算各个緩存文件的预测访问频率。  The prediction module 740 is configured to use, according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight of the preset access frequency of the next moment. The value gets the predicted access frequency for each cache file. In the present embodiment, the predicted access frequency of each cache file is calculated in the same manner as the step 607.
所述概率模块 750用于获取所述緩存文件的访问概率。 本实施方式中, 所 述概率模块 750包括概率子模块 751、 归一化子模块 752、 加权参数子模块 753 及调整子模块 754。  The probability module 750 is configured to obtain an access probability of the cache file. In this embodiment, the probability module 750 includes a probability sub-module 751, a normalization sub-module 752, a weighting parameter sub-module 753, and an adjustment sub-module 754.
所述概率子模块 751 用于根据预设的访问概率公式计算各个视频片段的平 均访问概率, 所述访问概率公式为:  The probability sub-module 751 is configured to calculate an average access probability of each video segment according to a preset access probability formula, where the access probability formula is:
Tbar[j] = a2 Tbar[j] + (1 - a∑) x X ? J =0 1 2 3 . ( 5 ) Tbar[j] = a2 Tbar[j] + (1 - a∑) x X ? J =0 1 2 3 . ( 5 )
其中, j为所述视频片段的标号; 7¾ar[ |为标号为 j的视频片段预设的平均 点播概率, 初始值为 1 ; 2为常数, 2大于等于 0.9 , 且小于 1 ; X为一个访问 状态系数, 当所述视频片段被访问时, 所述 x=l, 否则 x=0。 Where j is the label of the video segment; 73⁄4ar[ | is the average on-demand probability of the video segment labeled j, the initial value is 1; 2 is a constant, 2 is greater than or equal to 0.9, and is less than 1; X is an access State coefficient, when the video segment is accessed, the x = l, otherwise x = 0.
本实施方式中, 所述 j=0,l,2,3...。 rbar[ ]为第 j个所述视频片段预设的平均 点播概率。 2为 0.999。 当然, 在其他实施方式中, 所述 2也可以为其他小于且 接近 1的小数。例如,第 0视频片段第一次被访问,则 ¾ar[0]= 0.999 X 1+(1-0.999) x l=l。 其余视频片段 ¾ar[l]、 Tbar[2]. ¾ [3]则等于 =0.999 x 1+(1-0.999) x 0=0.999。 上述公式相当于低通滤波器, 2=0.999可以使滤波器带宽很小, 从而 减小用户访问行为随机性的影响。  In the present embodiment, the j = 0, 1, 2, 3, .... Rbar[ ] is the average on-demand probability preset for the jth video segment. 2 is 0.999. Of course, in other embodiments, the 2 may also be other fractions that are smaller than and close to 1. For example, if the 0th video clip is accessed for the first time, then 3⁄4ar[0]= 0.999 X 1+(1-0.999) x l=l. The remaining video clips 3⁄4ar[l], Tbar[2]. 3⁄4 [3] are equal to =0.999 x 1+(1-0.999) x 0=0.999. The above formula is equivalent to a low-pass filter, and 2 = 0.999 can make the filter bandwidth small, thereby reducing the randomness of user access behavior.
所述归一化子模块 752用于根据预设的归一化公式将计算出的所述各个视 频片段的平均访问概率归一化, 所述归一化公式为:  The normalization sub-module 752 is configured to normalize the calculated average access probability of each of the video segments according to a preset normalization formula, where the normalization formula is:
p kU] = 7¾orM . (6) p kU] = 73⁄4orM . ( 6 )
Tbar[j]  Tbar[j]
其中, j=0,l,2,3...; m为 j中任意一个数; p_kj]为标号为 j的视频片段的归 一化后的平均访问概率。 本实施方式中, 以一个 ¾ar[m]为基准将所有 Tbarlj] 做归一化处理。 所述 p_kj]是一个中间变量数组。  Where j=0, l, 2, 3...; m is any number in j; p_kj] is the normalized average access probability of the video segment labeled j. In the present embodiment, all Tbarlj] are normalized based on a 3⁄4ar[m]. The p_kj] is an array of intermediate variables.
所述加权参数子模块 753 用于根据归一化的平均访问概率及参数公式计算 力口权参数, 所述参数公式为: P j] = 3xP[j] + (l- 3)xy; (7 )  The weighting parameter sub-module 753 is configured to calculate a force port weight parameter according to a normalized average access probability and a parameter formula, wherein the parameter formula is: P j] = 3xP[j] + (l-3)xy; )
其中, P[j]为标号为 j的视频片段的加权参数,其初始值为 1; α3为常数, 3 大于等于 0.9,且小于 1; #P_k j] >1000 , 贝1 J y = 1000, 若 P_k[j]≤ 1000 , 贝1 J y = P_k[j]。 上述公式这也是一个低通滤波器, 为了不使 P[j]发生过于剧烈的变化。 限定 y的 最大值不超过 1000, 避免过于剧烈的加权值带来的扰动。 Where P[j] is the weighting parameter of the video segment labeled j, and its initial value is 1; α3 is a constant, 3 is greater than or equal to 0.9, and is less than 1; #P_k j] >1000, Bay 1 J y = 1000, If P_k[j] ≤ 1000, Bay 1 J y = P_k[j]. The above formula is also a low-pass filter in order not to make P[j] change too drastically. Limit the maximum value of y to no more than 1000, avoiding the disturbance caused by too severe weighting.
所述调整子模块 754用于将计算出的所有所述加权参数按相同比例调整为 小于 T_est的加权因子 b[j]。 本实施方式中, 采用调整公式 b[j]=p[j] 25将所有所 述加权参数按相同比例调整为小于 T_est的加权因子。 The adjustment sub-module 754 is configured to adjust all the calculated weighting parameters to a weighting factor b[j] smaller than T_est in the same ratio. In the present embodiment, all the weighting parameters are adjusted to the weighting factor smaller than T_est by the same ratio using the adjustment formula b[j]=p[j] 25 .
所述加权因子 bj]也可以按照经验值设定,从而省略所述归一化子模块 752、 加权参数子模块 753及调整子模块 754。 所述加权因子 bj]中也可以采用能实现 所述归一化子模块 752、加权参数子模块 753及调整子模块 754功能的其他公式。  The weighting factor bj] may also be set according to an empirical value, thereby omitting the normalization sub-module 752, the weighting parameter sub-module 753, and the adjustment sub-module 754. Other formulas that can implement the functions of the normalization sub-module 752, the weighting parameter sub-module 753, and the adjustment sub-module 754 can also be used in the weighting factor bj].
所述替换模块 760还包括热度子模块 761及排序子模块 762。  The replacement module 760 also includes a thermal sub-module 761 and a sequencing sub-module 762.
所述热度子模块 761 用于根据所述加权因子及价值公式计算所述緩存文件 的热度, 所述价值公式为:  The heat sub-module 761 is configured to calculate the heat of the cache file according to the weighting factor and a value formula, and the value formula is:
M = ^ 1- ^。 (8) M = ^ 1 - ^. (8)
T_estxb[j]  T_estxb[j]
所述排序子模块 762用于根据所述緩存文件的热度的大小对多个所述緩存 文件进行排序。 所述替换模块 760用于将从流媒体文件服务器中获得的新文件 替换热度最小的緩存文件。 The sorting sub-module 762 is configured to sort a plurality of the cache files according to the size of the heat of the cache file. The replacement module 760 is for a new file to be obtained from a streaming file server Replace the least hot cache file.
本发明实施例提供的緩存文件替换方法和装置不但能够根据旧的平均访问 时间间隔保持一定的稳定性, 降低最新访问信息的波动性的影响。 另一方面通 过在新的平均访问时间间隔中将旧的平均访问时间间隔所占的比重小于当前的 访问间隔, 从而可以在经过一定时间之后, 逐渐减弱比较久远的访问信息对当 前的访问信息的影响, 避免了很久以前的访问信息在访问模式变化之后对现在 的排序造成干扰, 从而准确反映緩存文件当前的访问状态。  The cache file replacement method and apparatus provided by the embodiments of the present invention can not only maintain a certain stability according to the old average access time interval, but also reduce the influence of the volatility of the latest access information. On the other hand, by occupying the proportion of the old average access time interval in the new average access time interval to be smaller than the current access interval, it is possible to gradually weaken the relatively long-term access information to the current access information after a certain period of time. The effect of avoiding the long-term access information interferes with the current sorting after the access mode changes, thus accurately reflecting the current access status of the cache file.
另外, 本发明实施例提供的緩存文件替换方法和装置还进一步通过预测公 式预测下一个时刻的平均访问时间间隔, 从而使得緩存文件最新一次被访问越 靠近当前时刻, 将获得更大的热度, 加大所述緩存文件最近访问状态对热度的 影响。 使得所述热度更加贴近于所述緩存文件当前的真实访问状态。  In addition, the cache file replacement method and apparatus provided by the embodiment of the present invention further predicts the average access time interval of the next moment by using the prediction formula, so that the cache file is accessed the latest time, and the closer to the current time, the greater the heat is obtained. The effect of the recent access state of the cache file on the heat. The heat is made closer to the current real access state of the cache file.
本发明实施例提供的緩存文件替换方法和装置还通过在价值公式中增加加 权因子, 从而通过历史访问数据的统计分析区分两个热度相差较小的緩存文件, 确定出两个视频片段热度的实际相对大小。  The cache file replacement method and apparatus provided by the embodiment of the present invention further increases the weight of the two video segments by statistically analyzing the historical access data by adding a weighting factor to the value formula to determine the actual heat of the two video segments. Relative size.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另 外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个调整单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元 中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件功能 单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one adjustment unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机可 读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指令用 以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动 硬盘、只读存储器(Read-Only Memory, 筒称 ROM )、随机存取存储器( Random Access Memory, 筒称 RAM )、 磁碟或者光盘等各种可以存储程序代码的介质。 The above integrated unit implemented in the form of a software functional unit can be stored in a computer Read in the storage medium. The software functional unit described above is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory), a random access memory (RAM), a disk or an optical disk, and the like. The medium of the program code.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限 制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员 应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其 中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的 本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1. 一种緩存文件替换方法, 该方法包括以下步骤:  A cache file replacement method, the method comprising the following steps:
获取已存储的各个緩存文件的历史访问频率和当前访问频率;  Obtain the historical access frequency and current access frequency of each cache file that has been stored;
根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的 历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文件的平 均访问频率, 其中所述预设的历史访问频率的权重值小于所述预设的当前访问 频率的权重值;  Obtain an average access frequency of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency, where The weight value of the preset historical access frequency is smaller than the weight value of the preset current access frequency;
获取平均访问频率最小的緩存文件, 用新的緩存文件替换所述平均访问频 率最小的緩存文件。  Obtain the cache file with the lowest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
2. 如权利要求 1所述的緩存文件替换方法, 其特征在于, 所述获取已存储 的各个緩存文件历史访问频率和当前访问频率还包括: 获取下一个时刻的访问 频率;  The cache file replacement method according to claim 1, wherein the obtaining the stored historical access frequency and the current access frequency of each cache file further comprises: acquiring an access frequency of the next time;
在根据各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的历 史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文件的平均 访问频率的步骤之后还包括:  And after the step of obtaining the average access frequency of each cache file according to the historical access frequency of each cache file, the current access frequency, the weight value of the preset historical access frequency, and the weight value of the preset current access frequency, :
根据各个緩存文件的所述当前访问频率、 所述下一个时刻的访问频率、 所 述预设的当前访问频率的权重值、 预设的下一个时刻的访问频率的权重值获得 各个緩存文件的预测访问频率, 其中所述预设的当前访问频率的权重值小于所 述预设的下一个时刻的访问频率的权重值;  Obtaining predictions of each cache file according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next time An access frequency, wherein a weight value of the preset current access frequency is smaller than a weight value of an access frequency of the preset next time;
相应的, 所述获取平均访问频率最小的緩存文件, 用新的緩存文件替换所 述平均访问频率最小的緩存文件还包括: 用新的緩存文件替换所述下一个时刻 的访问频率最小的緩存文件。  Correspondingly, the obtaining the cache file with the smallest average access frequency and replacing the cache file with the smallest average access frequency with the new cache file further includes: replacing the cache file with the least frequent access frequency at the next moment with the new cache file. .
3. 如权利要求 2所述的緩存文件替换方法, 其特征在于, 在根据各个緩存 文件的所述当前访问频率、 所述下一个时刻的访问频率、 所述预设的当前访问 频率的权重值、 预设的下一个时刻的访问频率的权重值获得各个緩存文件的预 测访问频率的步骤之后还包括:  The cache file replacement method according to claim 2, wherein the weight value of the current access frequency, the access frequency of the next moment, and the preset current access frequency according to each cache file After the step of obtaining the predicted access frequency of each cache file by the preset weight value of the access frequency at the next moment, the method further includes:
获取所述各个緩存文件的访问概率;  Obtaining an access probability of each cache file;
相应的, 所述用新的緩存文件替换所述下一个时刻的访问频率最小的緩存 文件包括: 用新的緩存文件替换所述下一个时刻的访问频率最小且访问概率最 低的緩存文件。 Correspondingly, the replacing the cache file with the least frequent access frequency at the next moment by using the new cache file comprises: replacing, by the new cache file, the cache file with the lowest access frequency and the lowest access probability at the next moment.
4.如权利要求 1、 2或 3中任一项所述的緩存文件替换方法, 其特征在于, 所述根据所述各个緩存文件的所述历史访问频率、 所述当前访问频率、 预设的 历史访问频率的权重值、 预设的当前访问频率的权重值获得各个緩存文件的平 均访问频率包括: The cache file replacement method according to any one of claims 1 to 2, wherein the historical access frequency, the current access frequency, and a preset according to the respective cache files are The weight value of the historical access frequency and the weight value of the preset current access frequency obtain the average access frequency of each cache file including:
Γ = (1-α)χΓ0 +ax(N2-M); Γ = (1-α)χΓ 0 +ax(N2-M);
M =丄;  M =丄;
T  T
其中, 为更新后的平均访问间隔; "为遗忘因子, 且满足 0.5<"<1; ^为 所述緩存文件被访问的平均访问时间间隔; N1为所述緩存文件当前被访问的时 刻; N为所述緩存文件上次被访问的时刻; M为所述平均访问频率。  Wherein, is the updated average access interval; "is a forgetting factor, and satisfies 0.5<"<1; ^ is the average access time interval in which the cache file is accessed; N1 is the time at which the cache file is currently accessed; The time when the cache file was last accessed; M is the average access frequency.
5.如权利要求 4所述的緩存文件替换方法, 其特征在于, 所述根据各个緩 存文件的所述当前访问频率、 所述下一个时刻的访问频率、 所述预设的当前访 问频率的权重值、 预设的下一个时刻的访问频率的权重值获得各个緩存文件的 预测访问频率包括:  The cache file replacement method according to claim 4, wherein the weight of the current access frequency, the access frequency of the next moment, and the preset current access frequency according to each cache file The value, the preset weight value of the access frequency of the next time to obtain the predicted access frequency of each cache file includes:
r_est = (l-c)xT'+cx(N _est-N');  R_est = (l-c)xT'+cx(N _est-N');
^丄;  ^丄;
T_est  T_est
其中, 为预测的未来的平均访问时间间隔; 为最新的平均访问时间 间隔, 当所述緩存文件当前时刻没有被用户访问时, T' = T 当所述緩存文件当 前时刻被用户访问时, T' = T ; c为预估因子, 且满足 0.5<c<l; 为当前时 刻的下一个时刻; 为所述緩存文件最新一次被访问的时刻, 当所述緩存文件 当前时刻没有被用户访问时, N' = N1 , 当所述緩存文件当前时刻被用户访问时, N' = N1。 Wherein, the average access time interval for the future is predicted; for the latest average access time interval, when the current time of the cache file is not accessed by the user, T'= T when the current time of the cache file is accessed by the user, T ' = T ; c is the predictor, and satisfies 0.5 < c <l; is the next moment of the current time; is the time when the cache file is last accessed, when the current time of the cache file is not accessed by the user , N' = N1, when the cache file is currently accessed by the user, N' = N1.
6.如权利要求 5所述的緩存文件替换方法, 其特征在于, 所述緩存文件为 视频片段, 在获取已存储的各个緩存文件的历史访问频率和当前访问频率的步 骤之前, 还包括以下步骤:  The cache file replacement method according to claim 5, wherein the cache file is a video segment, and the steps of the step of acquiring the historical access frequency and the current access frequency of each cache file that are stored include the following steps. :
获取多个视频, 将每个视频分成至少一个视频片段, 并将不同视频中的各 视频片段采用相同的标号规则标号;  Acquiring multiple videos, dividing each video into at least one video segment, and using the same labeling rule label for each video segment in the different video;
在获取已存储的各个緩存文件的历史访问频率和当前访问频率的步骤中, 还获取所述视频片段的标号;  And acquiring, in the step of acquiring the historical access frequency and the current access frequency of the stored cache files, the label of the video segment;
在所述根据各个緩存文件的所述当前访问频率、 所述下一个时刻的访问频 率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的访问频率的权重 值获得各个緩存文件的预测访问频率的步骤中, 根据下式获得各个緩存文件的 平均访问频率; The access frequency according to the current access frequency and the next moment according to each cache file In the step of obtaining a predicted access frequency of each cache file by using a weight, a weight value of the preset current access frequency, and a weight value of the access frequency of the preset next time, obtaining an average access frequency of each cache file according to the following formula;
Tbar[j] = a2x Tbar[j] + (1-α2)χΧ;  Tbar[j] = a2x Tbar[j] + (1-α2)χΧ;
p kU] = 7¾or[m] ? j=0,l,2,3...; p kU] = 73⁄4or[m] ? j=0 ,l,2,3...;
Tbar[j]  Tbar[j]
P[j] = a3xP[j] + (l-a3)xy;  P[j] = a3xP[j] + (l-a3)xy;
b[ ] = p[j]025 ; b[ ] = p[j] 025 ;
M 1 -M 1 -
T_est b[j] T_est b[j]
其中, j为所述视频片段的标号; ^^[ 为标号为 j的视频片段预设的平均 点播概率, 初始值为 1; "2为常数, "2大于等于 0.9, 且小于 1; X为一个访问 状态系数, 当所述视频片段被访问时, 所述 χ=ι, 否则 χ=ο; 为 j中任意一个 数; P-1*']为标号为 j的视频片段的归一化后的平均访问概率; ρϋ]为标号为 j的 视频片段的加权参数, 其初始值为 1; "3为常数, "3大于等于 0.9, 且小于 1; 若!^_]^]>1000, 则 y = 1000, 若!^_]^]≤1000, 则 y = P_k[j]; Wj']为加权因子。 Where j is the label of the video segment; ^^[ is the default on-demand probability of the video segment labeled j, the initial value is 1; " 2 is a constant," 2 is greater than or equal to 0.9, and is less than 1; X is An access state coefficient, when the video segment is accessed, the χ=ι, otherwise χ=ο; is any number in j; P- 1 *'] is the normalized video segment labeled j Average access probability; ρ ϋ] is the weighting parameter of the video segment labeled j, whose initial value is 1; " 3 is a constant," 3 is greater than or equal to 0.9, and is less than 1; if !^_]^]>1000, Then y = 1000, if !^_]^] ≤ 1000, then y = P_k[j] ; Wj'] is the weighting factor.
7. 一种緩存文件替换装置, 该装置包括: 7. A cache file replacement device, the device comprising:
获取模块, 用于获取已存储的各个緩存文件的历史访问频率和当前访问频 率;  An obtaining module, configured to obtain a historical access frequency and a current access frequency of each cache file that has been stored;
访问频率模块, 用于根据所述各个緩存文件的所述历史访问频率、 所述当 前访问频率、 预设的历史访问频率的权重值、 预设的当前访问频率的权重值获 得各个緩存文件的平均访问频率, 其中所述预设的历史访问频率的权重值小于 所述预设的当前访问频率的权重值;  The access frequency module is configured to obtain an average of each cache file according to the historical access frequency of the cache file, the current access frequency, a weight value of a preset historical access frequency, and a weight value of a preset current access frequency. An access frequency, where a weight value of the preset historical access frequency is less than a weight value of the preset current access frequency;
替换模块, 用于获取平均访问频率最小的緩存文件, 用新的緩存文件替换 所述平均访问频率最小的緩存文件。  The replacement module is configured to obtain a cache file with the smallest average access frequency, and replace the cache file with the smallest average access frequency with the new cache file.
8. 如权利要求 7所述的緩存文件替换装置, 其特征在于, 所述获取模块用 于获取下一个时刻的访问频率, 所述緩存文件替换装置还包括:  The cache file replacement device according to claim 7, wherein the acquisition module is configured to acquire an access frequency of a next time, the cache file replacement device further comprising:
预测模块, 用于根据各个緩存文件的所述当前访问频率、 所述下一个时刻 的访问频率、 所述预设的当前访问频率的权重值、 预设的下一个时刻的访问频 率的权重值获得各个緩存文件的预测访问频率, 其中所述预设的当前访问频率 的权重值小于所述预设的下一个时刻的访问频率的权重值;  a prediction module, configured to obtain, according to the current access frequency of each cache file, the access frequency of the next moment, the weight value of the preset current access frequency, and the weight value of the access frequency of the preset next moment a predicted access frequency of each cache file, where the weight value of the preset current access frequency is smaller than a weight value of the access frequency of the preset next time;
相应的, 所述替换模块, 用于用新的緩存文件替换所述下一个时刻的访问 频率最小的緩存文件。 Correspondingly, the replacing module is configured to replace the access of the next moment with a new cache file. The least frequently cached file.
9. 如权利要求 8所述的緩存文件替换方法, 其特征在于, 所述緩存文件替 换装置还包括:  The cache file replacement method according to claim 8, wherein the cache file replacement device further comprises:
概率模块, 用于获取所述緩存文件的访问概率;  a probability module, configured to acquire an access probability of the cache file;
相应的, 所述替换模块还用于用新的緩存文件替换所述下一个时刻的访问 频率最小且访问概率最低的所述緩存文件。  Correspondingly, the replacement module is further configured to replace, by the new cache file, the cache file with the lowest access frequency and the lowest probability of access at the next moment.
10. 如权利要求 7、 8或 9中任一项所述的緩存文件替换装置, 其特征在于, 所述访问频率模块用于根据下式获得各个緩存文件的平均访问频率, The cache file replacement device according to any one of claims 7, 8 or 9, wherein the access frequency module is configured to obtain an average access frequency of each cache file according to the following formula:
Γ = (1-α)χΓ0+αχ(^2-Μ); Γ = (1-α)χΓ 0 +αχ(^2-Μ);
M =丄;  M =丄;
T  T
其中, r为更新后的平均访问间隔; Ω为遗忘因子, 且满足 0.5<Ω<1; r。为 所述緩存文件被访问的平均访问时间间隔; N2为所述緩存文件当前被访问的时 刻; Μ为所述緩存文件上次被访问的时刻; Μ为所述平均访问频率。 Where r is the updated average access interval; Ω is the forgetting factor and satisfies 0.5 < Ω <1; r. The average access time interval for which the cache file is accessed; N2 is the time at which the cache file is currently accessed; Μ is the time when the cache file was last accessed; Μ is the average access frequency.
11. 如权利要求 10所述的緩存文件替换装置, 其特征在于, 所述访问频率 模块用于根据下式获得各个緩存文件的平均访问频率,  11. The cache file replacement device according to claim 10, wherein the access frequency module is configured to obtain an average access frequency of each cache file according to the following formula:
r_est = (l-c)xT'+cx(N _est-N');  R_est = (l-c)xT'+cx(N _est-N');
M =丄;  M =丄;
T_est  T_est
其中, 为预测的未来的平均访问时间间隔; 为最新的平均访问时间 间隔, 当所述緩存文件当前时刻没有被用户访问时, τΆ, 当所述緩存文件当 前时刻被用户访问时, T' = T ; c为预估因子, 且满足 0.5<c<l; 为当前时 刻的下一个时刻; 为所述緩存文件最新一次被访问的时刻, 当所述緩存文件 当前时刻没有被用户访问时, N' = N\ , 当所述緩存文件当前时刻被用户访问时, N' = N1。 Wherein, the average access time interval for the future is predicted; for the latest average access time interval, when the current time of the cache file is not accessed by the user, τΆ, when the current time of the cache file is accessed by the user, T' = T; c is a predictor, and satisfies 0.5<c<l; is the next moment of the current time; is the time when the cache file is last accessed, when the current time of the cache file is not accessed by the user, N ' = N\ , N' = N1 when the cache file is currently accessed by the user.
12. 如权利要求 11所述的緩存文件替换装置, 其特征在于, 所述緩存文件 是视频片段, 所述緩存文件替换装置还包括:  The cache file replacement device according to claim 11, wherein the cache file is a video clip, and the cache file replacement device further includes:
分割模块, 用于获取多个视频, 将每个视频分成至少一个视频片段, 并将 所述获取模块还用于获取所述视频片段的标号;  a segmentation module, configured to acquire a plurality of videos, divide each video into at least one video segment, and use the acquiring module to acquire a label of the video segment;
所述访问频率模块用于根据下式获得各个緩存文件的平均访问频率 , Tbar[j] = a2x Tbar[j] + (1-α2)χΧ;  The access frequency module is configured to obtain an average access frequency of each cache file according to the following formula, Tbar[j] = a2x Tbar[j] + (1-α2)χΧ;
p kU] = 7¾or[m] ? j=0,l,2,3...; p kU] = 73⁄4or[m] ? j=0 ,l,2,3...;
Tbar[j]  Tbar[j]
P[j] = a3xP[j] + (l-a3)xy; T_estxb[j] P[j] = a3xP[j] + (l-a3)xy; T_estxb[j]
其中, j为所述视频片段的标号; " ']为标号为 j的视频片段预设的平均 点播概率, 初始值为 1; "2为常数, "2大于等于 0.9, 且小于 1; X为一个访问 状态系数, 当所述视频片段被访问时, 所述 X=l, 否则 X=0; ^为』'中任意一个 数; P-1*']为标号为 j的视频片段的归一化后的平均访问概率; ρϋ]为标号为 j的 视频片段的加权参数, 其初始值为 1; "3为常数, "3大于等于 0.9, 且小于 1; 若!^_]^]>1000, 则 y = 1000, 若!^_]^]≤1000, 则 y = P_k[j]; Wj']为加权因子。 Where j is the label of the video segment; "'] is the preset average on-demand probability of the video segment labeled j, with an initial value of 1; " 2 is a constant," 2 is greater than or equal to 0.9, and is less than 1; An access state coefficient, when the video segment is accessed, the X=l, otherwise X=0; ^ is any number of 』'; P- 1 *'] is the normalization of the video segment labeled j The average access probability after the transformation; ρ ϋ] is the weighting parameter of the video segment labeled j, whose initial value is 1; " 3 is a constant," 3 is greater than or equal to 0.9, and is less than 1; if !^_]^]> 1000, then y = 1000, if !^_]^] ≤ 1000, then y = P_k[j] ; Wj'] is the weighting factor.
13.一种网络系统, 其特征在于, 所述网络系统包括流媒体文件服务器及代 理服务器,其中,所述代理服务器包括如权利要求 7-9中任意一项所述的緩存文 件替换装置, 从所述流媒体文件服务器中获取流媒体文件, 并将所述流媒体文 件保存为所述代理服务器内的緩存文件。  A network system, comprising: a streaming media file server and a proxy server, wherein the proxy server comprises the cache file replacing device according to any one of claims 7-9, And obtaining, by the streaming media file server, a streaming media file, and saving the streaming media file as a cache file in the proxy server.
PCT/CN2011/082996 2011-11-26 2011-11-26 Cache file replacement method, apparatus and system WO2013075341A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180002900.4A CN102511043B (en) 2011-11-26 2011-11-26 Method for replacing cache files, device and system thereof
PCT/CN2011/082996 WO2013075341A1 (en) 2011-11-26 2011-11-26 Cache file replacement method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/082996 WO2013075341A1 (en) 2011-11-26 2011-11-26 Cache file replacement method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2013075341A1 true WO2013075341A1 (en) 2013-05-30

Family

ID=46222773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/082996 WO2013075341A1 (en) 2011-11-26 2011-11-26 Cache file replacement method, apparatus and system

Country Status (2)

Country Link
CN (1) CN102511043B (en)
WO (1) WO2013075341A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160011979A1 (en) * 2014-07-08 2016-01-14 International Business Machines Corporation Multi-tier file storage management using file access and cache profile information

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015413B2 (en) 2012-10-02 2015-04-21 International Business Machines Corporation Management of data using inheritable attributes
CN103902473B (en) * 2012-12-31 2018-07-03 华为技术有限公司 A kind of data processing method and data buffering system
CN104111900B (en) * 2013-04-22 2017-06-20 中国移动通信集团公司 Data replacement method and device in one kind caching
CN104123243B (en) * 2013-04-24 2018-08-03 鸿富锦精密电子(天津)有限公司 Data caching system and method
CN103870393B (en) * 2013-07-09 2017-05-17 上海携程商务有限公司 cache management method and system
CN103442000B (en) * 2013-08-22 2016-08-10 北京星网锐捷网络技术有限公司 WEB caching replacement method and device, http proxy server
CN103607386B (en) * 2013-11-15 2017-11-10 南京云川信息技术有限公司 A kind of cooperation caching method in P2P Cache systems
CN103813181A (en) * 2014-02-14 2014-05-21 华为技术有限公司 System and method for optimizing video
CN105354193A (en) * 2014-08-19 2016-02-24 阿里巴巴集团控股有限公司 Caching method, query method, caching apparatus and query apparatus for database data
CN105471952A (en) * 2014-09-10 2016-04-06 中国移动通信集团公司 Cache method based on global value and cache server
US9740635B2 (en) * 2015-03-12 2017-08-22 Intel Corporation Computing method and apparatus associated with context-aware management of a file cache
US10725922B2 (en) * 2015-06-25 2020-07-28 Intel Corporation Technologies for predictive file caching and synchronization
CN105488180B (en) * 2015-11-30 2019-04-26 中国建设银行股份有限公司 A kind of date storage method and system
CN105740445A (en) * 2016-02-02 2016-07-06 贵州大学 Database query method and device
KR102580820B1 (en) * 2016-03-10 2023-09-20 에스케이하이닉스 주식회사 Data storage device and operating method thereof
CN106528604A (en) * 2016-09-26 2017-03-22 平安科技(深圳)有限公司 Data cache control method and system
CN107870726A (en) * 2016-09-26 2018-04-03 北京优朋普乐科技有限公司 Date storage method and device, server based on redundancy scheme
CN106502789A (en) * 2016-10-12 2017-03-15 阔地教育科技有限公司 A kind of resource access method and device
CN106776380A (en) * 2016-11-28 2017-05-31 清华大学 Terminal content buffer replacing method and alternative
CN106991060B (en) * 2017-02-27 2020-04-14 华为技术有限公司 Elimination optimization method and device for read cache
CN107391696A (en) * 2017-07-27 2017-11-24 合肥泓泉档案信息科技有限公司 A kind of Archival Informationization management system
CN107666516A (en) * 2017-09-20 2018-02-06 重庆邮电大学 A kind of method for ensureing kafka company-data uniformity based on message temperature
CN107911711B (en) * 2017-10-24 2020-09-01 北京邮电大学 Edge cache replacement improvement method considering partitions
CN107943720A (en) * 2017-11-29 2018-04-20 武汉理工大学 Algorithm is optimized based on the LRU cache of file income and priority weighting in mixed cloud
CN108183867B (en) * 2017-12-25 2021-08-10 重庆邮电大学 Information center network node cache replacement method
CN108777802B (en) * 2018-06-05 2021-07-13 网宿科技股份有限公司 Method and device for caching VR (virtual reality) video
CN110290394A (en) * 2019-07-15 2019-09-27 宁波华数广电网络有限公司 A kind of video on-demand system and method
CN110688401B (en) * 2019-09-10 2023-11-03 中国平安财产保险股份有限公司 Dynamic cache processing method and device, storage medium and electronic equipment
CN110807009B (en) * 2019-11-06 2022-04-26 湖南快乐阳光互动娱乐传媒有限公司 File processing method and device
CN111083236A (en) * 2019-12-31 2020-04-28 扬州大学 Cache replacement method based on popularity measurement
CN111984889A (en) * 2020-02-21 2020-11-24 广东三维家信息科技有限公司 Caching method and system
CN111752902A (en) * 2020-06-05 2020-10-09 江苏任务网络科技有限公司 Dynamic hot data caching method
CN112363986B (en) * 2021-01-15 2021-07-02 北京东方通软件有限公司 Time optimization method for file caching
CN113784170B (en) * 2021-11-11 2022-03-22 深圳市名竹科技有限公司 Content data preheating method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308744A (en) * 1998-07-03 2001-08-15 艾利森电话股份有限公司 Cache server network
CN1869979A (en) * 2005-12-30 2006-11-29 华为技术有限公司 Buffer store management method
CN1996996A (en) * 2006-12-19 2007-07-11 北京邮电大学 The method for stream media file buffer for the mobile stream media proxy server
CN101040267A (en) * 2004-10-06 2007-09-19 汤姆逊许可公司 Method and system for caching data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308744A (en) * 1998-07-03 2001-08-15 艾利森电话股份有限公司 Cache server network
CN101040267A (en) * 2004-10-06 2007-09-19 汤姆逊许可公司 Method and system for caching data
CN1869979A (en) * 2005-12-30 2006-11-29 华为技术有限公司 Buffer store management method
CN1996996A (en) * 2006-12-19 2007-07-11 北京邮电大学 The method for stream media file buffer for the mobile stream media proxy server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160011979A1 (en) * 2014-07-08 2016-01-14 International Business Machines Corporation Multi-tier file storage management using file access and cache profile information
US9612964B2 (en) 2014-07-08 2017-04-04 International Business Machines Corporation Multi-tier file storage management using file access and cache profile information
US20170153834A1 (en) * 2014-07-08 2017-06-01 International Business Machines Corporation Multi-tier file storage management using file access and cache profile information
US10346067B2 (en) 2014-07-08 2019-07-09 International Business Machines Corporation Multi-tier file storage management using file access and cache profile information

Also Published As

Publication number Publication date
CN102511043A (en) 2012-06-20
CN102511043B (en) 2014-07-09

Similar Documents

Publication Publication Date Title
WO2013075341A1 (en) Cache file replacement method, apparatus and system
US6901484B2 (en) Storage-assisted quality of service (QoS)
US11301394B2 (en) Using a machine learning module to select one of multiple cache eviction algorithms to use to evict a track from the cache
US10592432B2 (en) Adjusting active cache size based on cache usage
US9779029B2 (en) Cache replacement policy for data with strong temporal locality
US11030116B2 (en) Processing cache miss rates to determine memory space to add to an active cache to reduce a cache miss rate for the active cache
KR102043886B1 (en) Profiling Cache Substitution
US10862992B2 (en) Resource cache management method and system and apparatus
US20140095591A1 (en) Cloud-based file prefetching on electronic devices
JP2015072682A (en) Method and device for load balancing and dynamic scaling of low delay two-layer distributed cache storage system
EP1678642A1 (en) Method for prioritizing segments of multimedia content in a proxy cache
US9591096B2 (en) Computer system, cache control method, and server
CN102439934A (en) Method and system for managing multilevel caches of edge server in cdn
US6944715B2 (en) Value based caching
TW201432451A (en) Method to throttle rate of data caching for improved I/O performance
CN109074331A (en) Memory sub-system is reduced with the power of system cache and location resource allocation
CN110688062B (en) Cache space management method and device
CN111917882B (en) File caching method and device and electronic equipment
CN105095495B (en) A kind of distributed file system buffer memory management method and system
EP3588913B1 (en) Data caching method, apparatus and computer readable medium
CN112199304B (en) Data prefetching method and device
CN113094392A (en) Data caching method and device
EP2593871B1 (en) Customized of a bus adapter card
US7529891B2 (en) Balanced prefetching exploiting structured data
CN109511009B (en) Video online cache management method and system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180002900.4

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11876229

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11876229

Country of ref document: EP

Kind code of ref document: A1