Question
Suppose you are creating software for a streaming-video site. You want to limit the video read-ahead the gap between how much has been downloaded and
Suppose you are creating software for a streaming-video site. You want to limit the video read-ahead the gap between how much has been downloaded and how much the viewer has actually watched to approximately 1 MB; the server should pause in sending when necessary to enforce this. On the other hand, you do want the receiver to be able to read ahead by up to this much. You should assume that the TCP connection throughput will be higher than the actual video-data-consumption rate.
(a). Suppose the TCP window size happens to be exactly 1 MB. If the receiver simply reads each video frame from the TCP connection, displays it, and then pauses briefly before reading the next frame in accordance with the frame rate, how will the flow-control mechanism of 12.17 TCP Flow Control be applied?
(b). What support do you have to add to the video-transfer application to allow it to read ahead by 1 MB but not to exceed this? Even the server side of the application cannot affect the sending winsize directly. Hint: both client and server sides of the application will have to implement something to enable this feature.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started