Recall the simple model for HTTP streaming shown in Figure 7.3. Suppose the client application buffer is infinite, the server sends at the constant rate x, and the video consumption rate is r with r < x. Also suppose playback begins immediately. Suppose that the user terminates the video early at time t = E.At the time of termination, the server stops sending bits (if it hasn’t already sent all the bits in the video).
a. Suppose the video is infinitely long. How many bits are wasted (that is, sent but not viewed)?
b. Suppose the video is T seconds long with T > E. How many bits are wasted (that is, sent but not viewed)?
a) Buffer grows at rate x-r. At time (x-r)*E bits are in buffer and are wasted.
b) Let S be the time when the server has transmitted the entire video. If S>E , buffer grows at rate x-r until time E , so the waste is again (x-r)*E . If S<E , then at time E there are T-E seconds of video still to be played in buffer. So the waste is r*(T-E).
BY MANISH KUMAR FROM INDIA