Download presentation
Presentation is loading. Please wait.
1
Smoothing Variable-Bit-Rate Video in an Internetwork Jennifer Rexford, Member, IEEE, and Don Towsley, Fellow, IEEE IEEE/ACM Transactions on Networking, Vol. 7, No.2, April 1999
2
Introduction To reduce the end-to-end resource requirements, a stored-video server can smooth the outgoing stream through work-ahead transmission into the client playback buffer. An efficient algorithm is presented for minimizing both the playback delay and the buffer allocation.
3
The Sample Transmission Plan
4
Smoothing Constraints x: bytes of the playback buffer L k : the amount of data consumed at the client by time k U k = L k +x L= (L 0, …,L N ) U= (U 0, …,U N ) S= (S 0, …,S N ) R(S) = (S 1 -S 0, …,S N -S N-1 )
5
Change Point Change point: If R k+1 ≠R k, then k is said to be a change point in the vector S. Convex change point: If R k+1 >R k Concave change point: If R k+1 <R k
6
Majorization Schedule Vector Y majorizes X ;intuitively, the elements of vector X are more “ evenly distributed ” than the elements of Y
7
Example: Jurassic Park
8
The peak-rate curve p(x)
9
Single-Link Model Arrival vector A=(A 0, …,A N ) A k : The amount of data which has arrived at the ingress node by time k=0,1, …,N. A k ≧ A k-1, k=1, …,N. Playout vector D=(D 0, …,D N ) D k : The amount of data that must be removed from the x-bit egress buffer by time k=0,1, …,N. D k ≧ D k-1, k=1, …,N.
10
Single-Link Model D ≦ S ≦ D+vec(x) A-vec(M-x) ≦ S ≦ A S * (A, D, (M-x, x)) denote the majorization schedule.
11
Buffer Allocation The smoothing constraints : L 1 (x)= A + vec(x-M) U 1 (x)= D + vec(x) L 2 (x)= D U 2 (x)= A S * (x) is the majorization schedule associated with S(max{L 1 (x), L 2 (x)}, min{U 1 (x), U 2 (x)}, (M-x,x)).
12
Buffer Allocation Lemma 3.1: The peak rate p(x, M) of the single-link system is a piecewise-linear, convex function. The main consequence of the lemma is that the peak-rate curve has one of the shapes shown in Fig. 4. A binary search is sufficient to determine a value of x that minimizes p(x, M) for a given value of M.
13
Simpler case Now consider the simpler case of stored video, where A i =A N for k=0,1, …,N and the ingress buffer is large enough to store the entire video(I.e, A N bits). The peak bandwidth decreases as the egress buffer size x increase. U rises as x increases, causing a gradual decrease in the slope of the peak rate run.
14
Example A
15
Start Up Delay A video service can minimize the bandwidth requirements by introducing a start up latency of w at the egress node. D k (w) =0,k=0, …,w-1 D k-w,k=w, …,N+w A k (w) =A k,k=0, …,N A N,k=N+1, …,N+w w max ≡ min{w|max{A k (w)-D k (w)} ≧ M} 0 ≦ k ≦ N+w
16
Start Up Delay The smoothing constraints: L 1 (w)= D(w) U 1 (w)= D(w) + vec(x) L 2 (w)= A + vec(x - M) U 2 (w)= A(should exchange??) Lemma 3.2: The peak rate, p(w), of the single link system is a piecewise-linear convex function of w.
17
Practical Constraints To account for a constant propagation delay of d time units, the playout curve D should be shifted to the left by d units, to ensure that each frame arrives at the egress node by its deadline. Delay jitter can be handled by making the smoothing constraints more conservative, based on the minimum and maximum number of bits that may arrive at any time.
18
Joint Minimization of Start Up Delay and Egress/Ingress Buffer Size For stored video with an ingress buffer of size y ≧ D N, the smoothing constraints simplify to L(x,w)=D(w) and U(x,w) = D(w)+vec(x) As late as possible: S =D N,k=N max{S - r, D k }k<N x * =max{S - D k } w * =min{w|A k – S ≧ 0} Late k Late K+1 Late k Late k k
19
As Late As Possible
20
Joint Minimization of Start Up Delay and Egress/Ingress Buffer Size Because x and w are independent, this process jointly minimizes both x and w. As early as possible: S =0,k=0 min{S +r, A k },k>0 y * =max{A k -S } w * =min{w|S -D k-w ≧ 0} After determining the values for x, y, and w, the majorization algorithm can compute the optimally smooth transmission schedule. Early k Early K-1 Early k k Early k
21
Joint Minimization of Start Up Delay and Total Buffer Allocation While x * was determined from S late subject to L(x,w) = D(x), the ingress buffer size y ’ can be found by generating S early’ subject to U = min{D(w) + vec(x * ),A}. Consequently, y ’ (w) = max{A k -S },w ≧ w * Similarly, x ’ can be determined from S late’ subject to L = max{D(w), A - vec(y * )}, resulting in x ’ (w) = max{S -D k },w ≧ w * early ’ k late ’ k k k
22
Theorem 4.1 Given a rate constraint r, an arrival vector A, a playout vector D, and a startup latency w ≧ w *, the total buffer size size M(w) is minimized by allocating an egress buffer of size x * and an ingress buffer of size y ’ (w). Similarly, M(w) is minimized by allocating an egress buffer of size x ’ (w) and an ingress buffer of size y *. Selecting w=w * results in the minimum total buffer M * (w * )=x * +y ’ (w * )=x ’ (w * )+y *.
23
Theorem 4.2 Given a rate constraint r and A ≡ D, x * = y * = x ’ (w * ) = y ’ (w * ) and M * (w * ) = 2x * = 2y *. The theorem shows that when the ingress node receives an unsmoothed version of the video stream, the optimal buffer allocation divides the resources evenly between the ingress and egress nodes.
24
Tandem Model It is possible to compute an optimal tandem schedule by applying the majorization algorithm on a collection of independent single-link problems.
25
Optimization The optimal single-link solutions {S * } i=1 are also the optimal link transmission schedules for the tandem system. The optimal buffer allocation problem can be reduced to a single-link system with buffers at the ingress and egress nodes, such as b ’ = (M-x,0, …,0,x). i n
26
Buffer Allocation From upper left to lower right, the curves correspond to M = W, 1.25W, 1.5W, 2W, 3W.
27
Start Up Latency Each peak-rate curve corresponds to a different value of M with an optimal buffer distribution of x = y = M/2.
28
Optimal Start Up Delay The solid line corresponds to M = 2W
29
Conclusion A simple binary search can determine the buffer allocation and start up latency that minimize the peak rate in the transmission schedule. The smoothing model has been applied to the online smoothing problem, where the ingress node does not have a prior knowledge of frame sizes.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.