The present application is based on, and claims priority from, Taiwan Patent Application No. 102140172 filed Nov. 5, 2013, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure generally relates to a method and device operable to store video and audio data.
Online video streaming through internet become one of network applications as the advance of bandwidth and video compression technology. For example, in large-scale and high-quality video/audio service applications, Master/Slave architecture is used to provide video streaming service, or a peer-to-peer (P2P) architecture is used to store and share information between peers. Online video service technology provides two service modes, one is the live broadcasting mode, the other is video on demand (VoD) mode.
When using P2P architecture to provide live broadcasting services, due to the timings for peers watching video content are similar, each of peers may not need to store large amount of video for each sending, receiving, and exchanging of video/audio data content, so as to achieve the effect of data sharing among peers. When using P2P architecture to provide a VoD service, each peer may view different video/audio content at different time, that is, each peer requires different video and audio data at different time. Therefore, each peer stores more video and audio data that have been viewed, and the opportunity of sharing each own video and audio data between peers is also relatively higher. For video and audio data that have not been stored and shared, the peer may grab the desired video and audio data from a video server. However, the loading amount of the video server will be increased.
In applications of using P2P architecture to provide VoD services, more and more users use VoD services through a lightweight device (such as smart phone, tablet PC, set-top box (STB), etc.). In the environment of using P2P architecture to provide VoD services, when a single peer is a lightweight device, the storage space in the single peer is limited and usually has a small capacity, and may not store the video and audio data having a large amount or been viewed, so that the single peer is less likely to become a data provider for the P2P network. Therefore, the P2P sharing rate of the video and audio data among peers is relatively low, and the loading of a server providing the video and audio data source is more likely increased.
For transmission and sharing of VoD among peers, the existing technologies may usually cut the video and audio data into small blocks. Then peer(s) gradually grabs video and audio data to be viewed from a server or other peers. The video and audio data stored in each peer may, based on the time whether to view, include such as the video and audio data which are already down-streamed and completely stored, or the video and audio data which are partially stored, or the video and audio data that have been deleted partial stored video and audio data. Under a situation that a peer does not have an enough storage space, a technique may calculate the bandwidth gap via the global information of a P2P VoD service environment, such as a movie playback rate (PBR), an aggregation service rate (ASR), a movie request rate/movie popularity, a total number of peers in the video and audio streaming system, and so on, to determine whether the peer stores the video and audio data. So that the video and audio data content stored in each peer may achieve the P2P sharing effect, and reduce the loading of the server.
Users may use VoD services via at least one peer (such as a lightweight device) and this is becoming more popular. It may use a dynamically adjustable storing probability to determine whether the video and audio data to be stored in the storage space of a peer. And this storing probability may be dynamically adjustable according to the timing point of sharing the video and audio data required by a demand peer, or the bit rate of the video and audio data, or the storage space of peer, so that for each peer with a limited storage space, the stored video and audio data may achieve a P2P sharing effect. This may be one of many ways to increase the P2P sharing rate of the video and audio data, and may reduce the loading of the server.
The exemplary embodiments of the disclosure may provide a method and device operable to store video and audio data.
One exemplary embodiment relates to a method operable to store video and audio data, and the method is adapted to a first peer of a video and audio data system having a plurality of peers with each peer having a corresponding storage space. The method may comprise: before a first peer has not received a service request of a second peer of the plurality of peers, determining whether at least a video and audio data received by the first peer is stored in its corresponding storage space by using a first video and audio storing probability that is dynamically adjustable, and extending a time interval of the first peer for storing received video and audio data; and when the first peer receives the service request of the second peer, setting a second video and audio storing probability, thereby the second peer obtaining at least one stored video and audio data from the first peer.
Another exemplary embodiment relates to a device operable to store video and audio data, and the device is adapted to a first peer of a video and audio data system having a plurality of peers. This device may comprise a hardware processor and a storage medium. The hardware processor performs: before a first peer has not received a service request of a second peer of the plurality of peers, determining whether at least a video and audio data received by the first peer is stored in the storage medium by using a first video and audio storing probability that is dynamically adjustable, and extending a time interval of the first peer for storing received video and audio data; and when the first peer receives the service request of the second peer, setting a second video and audio storing probability, thereby the second peer obtaining at least one stored video and audio data from the first peer.
Below, exemplary embodiments will be described in detail with reference to accompanying drawings so as to be easily realized by a person having ordinary knowledge in the art. The inventive concept may be embodied in various forms without being limited to the exemplary embodiments set forth herein. Descriptions of well-known parts are omitted for clarity, and like reference numerals refer to like elements throughout.
The exemplary embodiments in the disclosure provide a technique of dynamical adjusting the storing probability according to the storage space of a demand peer (such as a smart phone, a tablet PC, a set-top box, or other lightweight device), the multimedia bit rate, and the service request status of the demand peer. Under the conditions of a limited storage space, this technique may effectively extend stored video and audio data interval of a peer, to increase the sharing opportunities of the peer; and after this peer receives a service request from a demand peer, the P2P sharing rate of VoD video and audio data is increased. While the VoD video and audio data sharing applied on a P2P network is an exemplary application of the technique. In a true scope of the disclosure, this video and audio data storage technology may be applied on various types of network environments, but not limited to P2P network environment(s).
In an application environment of managing video and audio data, a demand peer may receive the video and audio data from other peer(s) or a server. When a peer has a limited storage space, a mechanism of storage control for the video and audio data is needed to determine whether the received video and audio data is stored in the storage space of this peer.
As showed in
This method for example may be performed by a hardware processor of the first peer. The storage space of the first peer is for example, but not limited to a storage media in the first peer. The processor and the storage medium is for example, but not limited to a storage module components of a plurality modules in the first peer. This first peer is, for example, but not limited to a light weight device with a limited storage space.
Accordingly, according to an exemplary embodiment of
The following may illustrate, according to exemplary embodiments, how the first peer in the waiting phase (i.e., has not received service request from other peers), dynamically adjusts the video and audio storing probability PW in the waiting phase; and in the service phase (i.e., received a service request from the second peer), how the first peer phase sets the video and audio storing probability PS in this service phase. Let PWk represent the video and audio storing probability of the kth waiting cycle of the first peer in the waiting phase, 0≤PWk≤1, and PWk=PWk-1×α, 0≤α≤1. In other words, the waiting phase includes at least one waiting cycle, and in each waiting cycle, the first peer may use a parameter α, 0≤α≤1, to adjust the first video and audio storing probability; such as using a common ratio α, 0≤α≤1, to adjust the first video and audio storing probability. Let RM be a video and audio data bit rate, assuming the unit is kilobits per second (kbps), TW is a waiting cycle, and the unit may be second or minute. After each cycle the first peer checks whether there is a demand peer such as the second peer, to request service(s). Let TS be a service interval, and this TS service interval is the difference between the playing time point of the latest data in the storage space of the first peer and the playing time point of the stored data of the first peer requested by the second peer. Let S be a storage space used by the first peer, assuming the unit is MB, i.e. 106 bytes. In the disclosure, a limited storage space for a peer is represented by SMAX.
According to the step 220 in
According to an exemplary embodiment, the first peer dynamically adjusts the video and audio data storing probability in the second cycle to the nth cycle of the waiting phase, wherein only fewer video and audio data are retained. For example, in the scenario of
When the first peer during the (n+1)th cycle receives a service request from the second peer, the first peer, during the (n+[TS/TW])th cycle, may refer to such as the service interval TS, the video and audio data bit rate RM, and the storage space limitation SMAX of the first peer, to set the second video and audio storing probability (video and audio storing probability PS) as following:
PS=SMAX/(TS×RM), and 0≤PS≤1.
In other words, the second video storing probability may be decided based on a service interval, a video and audio data bit-rate, and a storage space limitation. For example, when the SMAX is equal to 100 MB, n is equal to 8, TS=480 s, the video and audio storing probability may be calculated as PS=100 MB/[480×(2048 k/8)B] according to the above formula. The value of video and audio storing probability PS is approximately 0.813.
The first peer sets the video and audio storing probability PS, and enters into the service phase since the (n+[TS/TW])th cycle. Thereby the second peer may obtain from the first peer the shared video and audio data stored by the first peer in the first cycle.
In the waiting cycle from the second cycle to the nth cycle, if the used storage space S is more than a storage space limitation SMAX, for example, it may delete the oldest video data blocks from the storage space, or just store less video and audio data. Following the above exemplary embodiments, in the waiting cycle from the second cycle to the nth cycle, the first peer dynamically adjusts the video storing probability PWk, 0≤k≤n; for example, the first peer may use the geometric formulas PWk=PWk-1×α, wherein 0≤α≤1. This design approach is used to retain fewer video and audio data. The following further illustrates the adjustment of the video storing probability PWk and the design of a in the waiting phase.
One way to design α may use the formula to calculate the length of time interval for storing the video and audio data. According to the geometric formulas for the video and audio storing probability in the waiting phase PWk=PWk-1×α, 0≤α≤1, the use of the geometric formula for calculating a total sum may result in the size of the used storage space S of the first peer will converge to PW1(1−αn)/(1−α). In the preceding example, α=0.8, and SMAX=100 MB. If the first peer follows the formula PWk=PWk-1×α, and limits the range of α with 0.05≤α≤1, then the stored video and audio data may use a storage space of 72.6 MB for 13 minutes. For the next kth cycle, the video and audio storing probability PWk=0.05 and k>14, then the remaining 27.3 MB may be stored for 35 minutes. In other words, with the adjustment of the video and audio storing probability PWk and the design of a, the first peer may at least store video and audio data for 48 minutes.
Another design approach of α is to calculate used video and audio storing probability of each cycle by using the length of a time interval of the video and audio data to be stored. The design of the video and audio storing probability PWk and the α is that, let the video and audio storing probability PWk of the first peer in the waiting phase be a fixed value α, 0≤α≤1, then the first peer uses the formula calculating the video and audio storing probability in the service phase, PS=SMAX/(TM×RM), to store the received video and audio data, wherein TM is the time length of the video and audio data (unit is one second or one minute). In the exemplary embodiment of
Take 25 peers randomly added in a VoD service in [0, 120] minutes as an example, and four different values 1, 0.2, 0.5, 0.8 are taken for fixed video and audio storing probabilities of a peer, to observe the relationship between the storage space size (in MB) corresponding to a peer and the transmission bit rate (unit is Mbps, i.e. 106 bits per second) of a server's loading, and compare with the approach of simultaneously dynamic adjusting the video and audio storing probability PWk and referring the storage size of the present disclosure.
It may be seen from the experimental effects in
Accordingly, the first video and audio storing probability and the second video and audio storing probability are two dynamically adjustable probability values, and both are less than or equal to 1 and greater than or equal to 0. Processor 1310 may refer to a service interval, a video and audio data bit rate, and a storage space limitation, to set the second video and audio storing probability. The device 1300 operable to store video and audio data may provide a P2P video and audio data sharing service for the plurality of peers in a video and audio data transmission environment. The processor 1310 and the storage medium 1320, such as, but not limited to two components of a storage module in a plurality of modules of the first peer.
In summary, a video and audio data storage technology is provided according to the exemplary embodiments of the present disclosure. This technology uses the storing probability to decide whether the video and audio data is stored in a storage space of a device. When a peer has not yet received the service request from other peer(s), the peer dynamically adjusts a first storing probability; and when the peer receives a service request from a demand peer, it sets a second storing probability according to a time point of the demand peer requesting, a video and audio data bit rate and a storage space limitation, and extends a time interval for storing the video and audio data. Accordingly, for a peer device with a limited storage space, it may randomly discard some video and audio data that have been viewed based on the value of the storing probability, to increase the P2P sharing rate of stored video and audio data, thereby reducing the server's loading of the video and audio sources. In a true scope of the disclosure, this video and audio data storage technology may be applied on various types of network environments, but not limited to P2P network environment(s).
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
102140172 A | Nov 2013 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
79543 | Bigelow | Jul 1868 | A |
297432 | Neracher | Apr 1884 | A |
7080400 | Navar | Jul 2006 | B1 |
7194195 | Cole et al. | Mar 2007 | B1 |
7278153 | Sanders | Oct 2007 | B1 |
8001561 | Gibbs | Aug 2011 | B2 |
8312068 | Matsuo | Nov 2012 | B2 |
8463936 | Maze et al. | Jun 2013 | B2 |
8555323 | Zhou et al. | Oct 2013 | B2 |
8782701 | Yu | Jul 2014 | B2 |
8856846 | Applegate | Oct 2014 | B2 |
20030093810 | Taniguchi | May 2003 | A1 |
20030204856 | Buxton | Oct 2003 | A1 |
20050028208 | Ellis | Feb 2005 | A1 |
20050278389 | Maze et al. | Dec 2005 | A1 |
20060140584 | Ellis | Jun 2006 | A1 |
20070157281 | Ellis | Jul 2007 | A1 |
20080134258 | Goose et al. | Jun 2008 | A1 |
20090060468 | Carlberg | Mar 2009 | A1 |
20090119455 | Kisel et al. | May 2009 | A1 |
20090133069 | Conness | May 2009 | A1 |
20090133078 | Hamano | May 2009 | A1 |
20100086277 | Craner | Apr 2010 | A1 |
20100250593 | Matsuo | Sep 2010 | A1 |
20100332560 | Gerbasi, III | Dec 2010 | A1 |
20100333161 | Chen | Dec 2010 | A1 |
20110078717 | Drummond | Mar 2011 | A1 |
20110099228 | Smith | Apr 2011 | A1 |
20110126245 | Chen | May 2011 | A1 |
20110164175 | Chung | Jul 2011 | A1 |
20120079543 | Zhou et al. | Mar 2012 | A1 |
20120297432 | Zhou et al. | Nov 2012 | A1 |
Number | Date | Country |
---|---|---|
1983907 | Jun 2007 | CN |
101563886 | Oct 2009 | CN |
102378065 | Mar 2012 | CN |
102695024 | Sep 2012 | CN |
103024443 | Apr 2013 | CN |
286461 | Sep 1996 | TW |
321765 | Dec 1997 | TW |
201006180 | Feb 2010 | TW |
WO-0154118 | Jul 2001 | WO |
WO-2008064356 | May 2008 | WO |
Entry |
---|
Wu et al., Exploring the Optimal Replication Strategy in P2P-VoD Systems: Characterization and Evaluation, IEEE Transactions on Parallel and Distributed Systems, vol. 23, No. 8, Aug. 2012, pp. 1492-1503. |
Lee et al., P2Proxy: Peer-to-Peer Proxy Caching Scheme for VOD Service, IEEE Sixth International Conference on Computational Intelligence and Multimedia Applications (ICCIMA'05), 2005, pp. 272-277. |
Li et al., Towards Health of Replication in Large-Scale P2P-VoD Systems, IEEE Performance Computing and Communications Conference (IPCCC), 2009, pp. 323-330. |
Zhou et al., On Replication Algorithm in P2P VoD, IEEE/ACM Transactions on Networking, vol. 21, No. 1, Feb. 2013, pp. 233-243. |
Huang et al., The effects of replication on the QoS in P2P VoD systems, The 4th IET International Conference on Wireless, Mobile & Multimedia Networks (ICWMMN 2011), 2011, pp. 270-273. |
Feng, A Novel Caching Mechanism for P2P Video-on-Demand Systems, Second International Conference on Future Generation Communication and Networking, vol. 1, 2008, pp. 140-143. |
Miao et al., Scalable Proxy Caching of Video Under Storage Constraints, IEEE Journal on Selected Areas in Communications, vol. 20, No. 7, Sep. 2002, pp. 1315-1327. |
Tewari et al., Proportional Replication in Peer-to-Peer Networks, Proceedings of the 25th IEEE International Conference on Computer Communications. (INFOCOM 2006), 2006, pp. 1-12. |
Taiwan Patent Office, Notice of Allowance, Patent Application No. TW102140172, dated Dec. 31, 2015, Taiwan, R.O.C. |
China Patent Office, Office Action dated Apr. 13, 2017. |
Number | Date | Country | |
---|---|---|---|
20150128197 A1 | May 2015 | US |