Abstract

Traditionally, people usually watch a video from the beginning and continuously to the end; this is changed by the concept and application of Video-On-Demand (VOD). Users do not want to wait for a long time when they seek some specific content in a video; they want to instantly watch any part in a video according to their needs. To resolve this challenge, in this paper, we propose a Flexible-Segmentation-Jumping Strategy (FSJS). This scheme considers users' randomly access behaviors, especially concerns the initial delay before watch point selection. By considering these behaviors and flexibly selecting jumping point, our scheme can significantly reduce user waiting time, in most cases can reduce the waiting time to zero. Our simulation implements the proposed FSJS scheme to the uniform segmentation and exponential segmentation algorithms to show how FSJS improves a user's perceived latency and reduces the extra average serving time. The simulation results show that FSJS can have a significant improvement in user-perceived latency.

1. Introduction

Nowadays, Video-On-Demand (VOD) services have been successfully applied in many applications; their unique merits have been accepted by most people and companies. Compared to text-based content systems, a VOD system usually serves large-size streaming media, which means it naturally requires larger disk space. In a VOD system, the initial delay has become one of the most important aspects for its quality of service (QoS). Using multiple servers to store media files cannot solve the large initial delay issue when there are a number of clients watching VOD at the same time; in addition, this method cannot effectively reduce user-perceived latency.

Figure 1 shows the general architecture of a VOD system. VOD servers are connected with each other, not isolated anymore when compared with the traditional VOD form; they all connect to a shared disk array, which is used to store all media objects. Such architecture has at least two advantages. First, the streaming media objects are stored not in individual servers but in a disk array, and, hence, the disk space can be shared by all servers to store more media files. Second, since servers are connected with each other, we can apply some scheduling strategies to improve the performance of the system. For example, we can use Load-Balance strategy to schedule and manage the server resources or some other useful strategies to decrease a user's start-up latency (initial delay). In this paper, we focus on user's waiting time and how to reduce a user's perceived latency.

Traditionally, segment-based cache [14] is a good scheme to deal with how to hit as many segments as possible in a predefined caching space. It includes the uniform-segmentation strategy, exponential-segmentation strategy [1], and adaptive and lazy segmentation strategy [24]; each of them has its own advantages when used in a VOD system. Uniform-segmentation is easily to be used, and it considers the recently used segment of a file. Exponential-segmentation scheme concerns both the recently-used and the size of a segment of a file. Adaptive and lazy segmentation considers many factors, among which the most prominent factor that is the average access duration. All these algorithms effectively improve the Byte-Hit-Ratio (BHR) and reduce the network bandwidth.

However, because the algorithms introduced above all aim to boost BHR, they have little contribution in improving the response time of requested media object. Their focus is to reduce the server load, not the user-perceived latency (start-up latency). If we reduce the user-perceived latency, which directly corresponds to users' perception when they use a VOD system, user satisfaction will be highly increased. Therefore, it is urgent for us to design a new caching scheme focusing on reducing user startup latency. Another problem is that the algorithms introduced above all assume that users always play media files from the beginning and continuously towards the end, that is, users do not jump forward or backward or conduct other actions used in Video-Cassette-Recorder (VCR) operations. For VOD systems, this assumption clearly does not hold in practice and users will conduct random access operation. Hence, our designed caching scheme should take random access into account.

In this paper, we propose a Flexible-Segmentation-Jumping-Strategy (FSJS). This strategy pays attention to both the initial delay and user's random access behavior. Through dividing the BaseSegment and flexibly selecting the jumping point, FSJS fully considers the factor of user operation behaviors in VOD systems, significantly reducing user's average waiting time, and, in most cases, eliminating the waiting time completely.

In order to study the performance of FSJS, in our simulation study, we incorporate FSJS with the following two basic strategies that are currently widely used in VOD systems: uniform segmentation scheme and exponential segmentation scheme. Then, we demonstrate how to use our proposed scheme to flexibly select jumping point to obtain the best performance. The simulation outcomes fully verified that the FSJS has a good performance in improving the user-perceived latency and user's satisfaction.

The rest of paper is organized as follows. Related works is presented in Section 2, Caching scheme design is presented in Section 3, and Section 4 presents Simulation and performance evaluation. We will make the conclusion in Section 5.

In order to reduce user average waiting time and improve quality of service, researchers have proposed many novel strategies, such as partial cache, proxy updating algorithms, prefetching technique, and media delivery technique. Partial cache [14], which have been briefly introduced above, can minimize data traffic between servers and clients. But its focus is on improving BHR, and, hence, it has little benefit in improving user-perceived latency.

Proxies are widely used in web browsing and video streaming services to decrease client waiting time. Reference [5, 6] have proposed proxy cache update algorithms to dynamically manage a proxy's cache in order to improve quality of service in streaming media and startup latency. Reference [7] describes a video staging technique which is useful in maintaining a constant bit-rate stream between a proxy and a server.

References [810] studied prefetching of multimedia objects. Reference [8] proposed a proactive prefetching method utilizing partially fetched data to improve the utilization of network bandwidth. In [9], the prefetching was applied to preload a certain amount of data in order to take advantage of the caching power. For layered-encoded objects, [10] studied prefetching of layered video not in cache by maintaining a prefetching window of a cached stream.

Media delivery techniques include batching [1113] stream merging [14], utilize multicast [15, 16] and patching [17]. Tokekar et al. [11] presented a model to analyze proposed batching policy in view of different user reneging behaviors and came up with the optimum value of batching interval to maximize the average number of users served and at the same time minimize reneging probability. Reference [12] considered a finite-buffer batch arrival and batch service queue with single and multiple vacations. Reference [13] analyzed a discrete-time two-phase queuing system, which receives batch service in the first queue and individual service in the second queue. It analyzed the queue length and the effect of batch size on the waiting time. However, it is not easy to decide the batching interval and size. Reference [14] discussed three main stream merging techniques: Patching, Transition Patching, and ERMT. It also presented two alternative implementations of MCF (MCF-T and MCF-P), and showed that MCF achieves significant performance benefits in terms of both the number of requests that can be served concurrently and the average waiting time for service. Reference [15] addressed a relevant optimization problem, and proposed a hybrid transmission scheme to tackle channel allocation problem. This scheme determines the most suitable delivery technique for each video and the appropriates number of channels to be allocated to the video using a dynamic programming approach. [16] evaluated and discussed the recent progress in developing multicast VOD systems, and studied QoS, fairness of multicast VOD server, and custom behavior. But it is hard to develop standard protocols for multicast VOD for practical applications. In terms of patching, [17] proposed a PeriodPatch, which only uses 38% streams of FIFO or 50% of Patching schedule to provide the same TVOD service.

3. Caching Scheme Design

3.1. Basic Design Idea

Since media files used in a VOD system are very large, it is impractical to cache all streaming media in a limited caching space. Thus, it is a good idea to use partial caching scheme instead. First, we divide the media file into segments. Each segment is called a BaseSegment and has a size of . In order to reduce the initial delay and guarantee to have a relatively high BHR, when a user first requests a new media file, our strategy will cache the first BaseSegment unconditionally if the caching space has enough size to cache this segment.

Second, except the first BaseSegment, we divide each of the remaining BaseSegments into two parts: Prefix and Suffix. Since the caching space is limited, our caching scheme will only cache the Prefix of each segment as shown in Figure 2.

With the same caching capacity, this strategy allows us to cache more segments, both the total number of segments and the number of same media file's segments. The number of same media file's segments affects the user-perceived latency. However, since VOD services allow users to jump forward or backward randomly, these actions will still cause users to wait for some time. A user with little patience can still give up seeing such a movie. To deal with this challenge, we modify our scheme in the following way: if users' play in Prefix part which has been cached, the user can see the content without waiting, else in the Suffix part that not in cache, we do not immediately tell the server to send the frames to users; alternatively, we flexibly select the jumping point, like the Figure 3.

If a user plays in , he or she can watch the movie immediately; if the user's request point is in , our scheme will simply let the request jump to or (which one point to jump is determined by the length of ), and at the same time request the remote server to download the unavailable Suffix part. In a round trip time delay, when the user still watches in the Prefix part, the Suffix part has been continuously forwarded to the client, which leads to an uninterrupted playout at the user side. If we limit the size in or , this minor jumping will not disturb the user too much, and the user will no observe the difference. However, the jumping strategy brings us the benefit of almost no waiting time for a user when the user jumps forward or backward to see a specific content.

Compared with the traditional cache, like the uniform segmentation, exponential segmentation, or adaptive and lazy segmentation scheme, and so forth, FSJS's most striking feathers lie in the segmentation strategy and jumping strategy. One is that in traditional cache, the basic unit is BaseSegment, but in FSJS, which divides the BaseSegment to Prefix and Suffix, made the basic unit smaller, that eventually benefits for us to do better caching strategy. Another is that traditional caches in initial delay are very high; however, FSJS using the jumping strategy can let the users obtain almost zero waiting time in most cases. With the increase of server load (by increasing the number of VOD users), the FSJS's advantage becomes more obvious, as more and more users will be pulled to the same segment in cache, which definitely will increase the BHR and reduce the server load.

If a user's jumping point is in , the system will only have the previous cached Prefix part without the subsequent cached Prefix part. In this situation, the request point will be pulled to . However, if the length of is large enough to affect the user's normal watching, how to deal with such situation and size should be discussed.

FSJS can reduce a user's waiting time; however, in some cases, it may cause the remote server to introduce an extra serving time. In Figure 3, if the user's request point is in , and assuming that in our scheme it jumps to , the user can immediately see the video but he or she needs an extra time to download video streaming in the size of from the remote server when reaching the first request point , which definitely will increase the server load and influence the server performance.

3.2. Analyzing the Model

Considering the basic structure of VOD system as shown in Figure 1, it consists of heterogeneous servers and a disk array. Let the set denote servers and each server has the capacity of to be used as buffer to cache some popular media segments. The disk array's storage is , and it has enough space to cache the video media. All streaming media are stored in disk array, not in the servers. Each server caches different media files , and each media file has . For each media object, its caching status is denoted as , in which 1 means the media object is in cache, 0 indicates the object is no in cache. Thus, in order to maximum the BHR and space utilization, the caching scheme should be made as

When a client requests a video media, the time of the request from the client to server is denoted as , the retrieval time of the media file in server is denoted as , and the media's transportation from the server to client is denoted as . Assuming the network delay between server and client is , such as network congestion, that can affect a user's waiting time. In such situation, each client's waiting time when playing a video can be defined as follows:

It is obvious that request from client to server needs far smaller time compared to the retrieval and the data transmission time from the server to client. Thus, in our calculation can be neglected. Simply, in our simulation, assume the network delay . Our scheme's objective can be formulated as

In Figure 2, suppose the size of the BaseSegment is and the Prefix size is ; thus, the percentage of Prefix, denoted as PerPrefix, is equal to , . The value of PerPrefix, which affects the BHR or other performances, will be studied through our simulation experiments.

Suppose we define , , and . If a jump point has both previous Prefix and subsequence Prefix part, like , is less than or equal to half of the BaseSegment or more than half of BaseSegment, in our strategy, we will let the request point jump to , and vice versa jump to . If the point only has the previous Prefix, like the , when less than or equal to BaseSegment, we think it will not disturb the user too much, then jump to . But when larger than BaseSegment, the users may notice the difference, so it should not jump, but stay in . The jumping point , can be defined as follows:

From above, if user's play in , , , through select appropriate jumping point, , users can obtain the best satisfaction. Only in , users need to wait before the frames were sent from the servers to clients.

In the basic design as shown in Figure 3, the extra download size is an important factor that needs to be studied. In this paper, we use Extra Average Serving Time (EAST) to describe the extra waiting time for downloading of . EAST only happens when the system selects the previous point of the current request point, and selecting the next point or stand still will no exert EAST. Thus, in each media file , can be simply calculated as where represents the average transmitting rate between the servers and clients. means pulling the request point to .

3.3. Simulation Strategy

Because FSJS is just a segment-divide strategy, it has no utility function. New media segment has to be added and the popularity of the segment also changes over time, which means, the caching segment should be updated periodically and we need to evict the smallest value segment. In order to simply show the merits of FSJS and also find out which caching scheme has the smallest EAST, we only use FSJS to update uniform segmentation and exponential segmentation algorithm.

3.3.1. FSJS Updating Uniform Segmentation

We cache the first BaseSegment when a media file is first requested and increase only one Prefix part for the next been requested. Then, we use LRU (Least Recently Used) replacement to decide which segment should be evicted from the cache. There are two eviction strategies assuming that we have found the media file which has the smallest utility value. (1) if the smallest utility value's media file has some Prefix in cache, our eviction only drop the last Prefix part; otherwise, we drop the BaseSegment. (2) we drop all segments of this selected media in cache, including all Prefix parts and the BaseSegment. The first strategy calls UniSeg (FSJS) and second one UniSeg (FSJS)-D.

3.3.2. FSJS Updating Exponential Segmentation

Similarly, we can form eviction strategies called ExpSeg (FSJS) and ExpSeg (FSJS)-D for using FSJS to update the exponential segmentation. Exponential segmentation scheme still uses its own utility function [2], (in which is the current time, is the last time to access the media segment, is the number of the segment) and the difference is that the Prefix will increase double each time when the media file been requested. Right now, the form of FSJS updating the basic caching scheme has been discussed, but we have not known the ratio of the Prefix to BaseSegment.

4. Simulation and Performance Evaluation

4.1. Finding the Best Percentage of Prefix to BaseSegment

Our simulation uses 10 days' VOD log captured from our university's campus network to a VOD server. The log recorded all users' VCR operations in detail. The server ip is 202.38.64.88, and the number of media files is 7424. Considering each VCR operational jump as an independent play, the total play count is 279,765, the total media size is 2, 572, 949, 855, 454B, and the average flow size is 169, 175, 372B, the relationship of file popularity can be drawn in Figure 4.

In Figure 4, it shows the ratio of current size to total media size and the ratio of current flow size to total flow size, we can see from the figure that almost the first 1300 media files account the 20% of the total media size, but hold the 78% of the total flow size, thus the popularity of individual requests taken from a “80/20” laws.

As the percentage of Prefix to BaseSegment significantly affects BHR and server's additional serving time, we need to find the best ratio of Prefix/BaseSegment. In our simulation, we assume BaseSegment = 2 MB, Caching Size = 30 GB,  Mbps. Our objective is that in the same caching capacity cache as many media file segments as possible, thus PerPrefix should be no bigger than 50%. At the same time, since a small ratio means low BHR, we define PerPrefix should be larger than 10%. The relationship about the PerPrefix, BHR, and EAST is shown in Figure 5 when using FSJS to update the uniform segmentation.

In Figure 5, the value of BHR increases when we increase the value of PerPrefix. This is what we want, since a higher BHR means a lower server load. But at the same time, the EAST also increases, which is not what we want, as it will bring an extra serving time. Next, in the same way like the UniSeg(FSJS)-D, Figure 6 shows the simulation results when using FSJS to update the exponential segmentation.

Figure 6 shows that ExpSeg(FSJS)-D has a similar performance like the UniSeg(FSJS)-D. When the value of PerPrefix increases, both BHR and EAST rise, but at a different rate at each PerPrefix. In order to find the best operation setting, which means in such PerPrefix, the BHR is not low, the EAST also not high, but their combination have the best satisfaction when used in VOD system. Thus, we have to compromise in BHR and EAST to find the best percentage of Prefix to BaseSegment. Using the following equation as a standard criterion: where Satisfaction is the percentage of to , is a constant, as a control factor which can minor adjust system in order to achieve the expected result, and larger than zero are decided by different situation of VOD system. If the designer is more concerned with the server load, he or she can choose larger than ; if the designer cares more about the user waiting time, should be chosen less than . In our simulation, we think both BHR and EAST are important; thus, we choose and , Figure 7 shows the simulation results of BHR/EAST.

With the percentage of Prefix increasing, UniSeg(FSJS)-D and ExpSeg(FSJS)-D have different BHR/EAST, and the higher value of BHR/EAST, the more satisfaction a user will get. Thus, in Figure 7, it is easier to find the best point of UniSeg(FSJS)-D is PerPrefix = 15%, and ExpSeg(FSJS)-D's best point is PerPrefix = 35%.

4.2. Comparison in Extra Average Serving Time

Now, we have found the best percentage of Prefix to BaseSegment, next we use PerPrefix = 15% in UniSeg(FSJS) and UniSeg(FSJS)-D to compare with uniform segmentation and PerPrefix = 35% in ExpSeg(FSJS) and ExpSeg(FSJS)-D to compare with exponential segmentation in EAST, respectively. The simulation results are shown in Figures 8 and 9.

Figure 8 shows how using FSJS to update uniform segmentation affects the EAST. With the increase of the caching size, EAST decreases. But the extra serving time almost stops decreasing in 820 ms when using the uniform segmentation strategy and the caching size becomes larger than 20 GB. Using FSJS, it continues to decrease in EAST with the expanding of the caching size. The reason is that when applying FSJS, with the same caching space, the system can cache more Prefix segments and reduces the EAST through selecting forward or backward jumping point in a more effective way. At the same time, when the caching size is less than or equal to 20 GB, UniSeg(FSJS) has a superior performance than the UniSeg(FSJS)-D, in other conditions, UniSeg(FSJS)-D exhibits better performance. Due to using UniSeg(FSJS) and UniSeg(FSJS)-D, their results in EAST are slight difference. However, when the caching space is full, UniSeg(FSJS) only evicts the smallest utility functional Prefix part, which needs more iteration when it has enough space to cache the next new BaseSegment. In UniSeg(FSJS)-D, it drops all the smallest utility functional segments, only needs one eviction that can release enough space, therefore, UniSeg(FSJS)-D saves more time in replacing the segments.

Figure 9 shows the performance in terms of EAST when using FSJS to update exponential segmentation. ExpSeg(FSJS) is better than ExpSeg(FSJS)-D, at least saving 180 ms in average in EAST. The worst performance is exponential segmentation, which needs nearly more than 220 ms in average in EAST to the ExpSeg(FSJS)-D and 400 ms to the ExpSeg(FSJS). ExpSeg(FSJS)-D is superior to the ExpSeg(FSJS) in the replacing moment, ExpSeg(FSJS)-D needs less time to replace segments compared to the ExpSeg(FSJS). However, in exponential segmentation scheme, it evicts twice segments of the previous each time. In this way, it can quickly release enough space to cache new segments. So the difference between the ExpSeg(FSJS)-D and ExpSeg(FSJS) is less than the difference between UniSeg(FSJS)-D and UniSeg(FSJS) in terms of evicting time. Thus, in our simulation, ExpSeg(FSJS) is better than ExpSeg(FSJS)-D.

UniSeg(FSJS)-D (PerPrefeix = 15%) is the best caching scheme when using FSJS to update uniform segmentation, and ExpSeg(FSJS) (PerPrefix = 35%) is the best caching scheme when applying the FSJS to exponential segmentation. As shown in Figure 10, it is easier to see that ExpSeg(FSJS) is superior to the UniSeg(FSJS)-D in EAST, especially the caching size is small, it almost saves 200 ms in EAST when caching size is 5 GB. With the caching size increasing to 30 GB, the UniSeg(FSJS)-D almost stops in 180 ms, but the ExpSeg(FSJS) can still decreasing, which nearly decrease to 120 ms in EAST when the caching size reach to 50 GB. So far, we have found that the best caching scheme using FSJS is ExpSeg(FSJS), and the PerPrefix is 35%. In such condition, we can achieve the smallest Extra Average Serving Time.

5. Conclusion

In this paper, we analyze the current exiting problems using traditional caching strategies, and propose a Flexible-Segmentation-Jumping-Strategy (FSJS). We use FSJS to update uniform segmentation and exponential segmentation. Based on the initial delay, the server load, the factor of user randomly access behavior, we developed four different strategies called UniSeg(FSJS), UniSeg(FSJS)-D and ExpSeg(FSJS), ExpSeg(FSJS)-D. We also found the best point of Prefix/BaseSegment. We compared the four proposed strategies, and found that FSJS not only can cut down a user's waiting time to zero in most cases, but also can reduce a server's extra serving time. Among the four strategies, ExpSeg(FSJS) can achieve the best performance. We plan to use ExpSeg(FSJS) in our future real VOD project. Our simulation results showed that FSJS can significantly reduce user-perceived latency.

Acknowledgment

This paper is sponsored by the National High Technology Research and Development Program of China (no. 2008AA01A317), the AnHui Colleges & Universities Provincial Science Research Project (no. KJ2008A106), and the Fundamental Research Funds for the Central Universities (no. WK2100100006).