NUS.SOC.CS5248-2014 Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.

Slides:



Advertisements
Similar presentations
1 School of Computing Science Simon Fraser University CMPT 771/471: Internet Architecture & Protocols TCP-Friendly Transport Protocols.
Advertisements

A Graduate Course on Multimedia Technology 3. Multimedia Communication © Wolfgang Effelsberg Media Scaling and Media Filtering Definition of.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Adaptive Playout. NUS.SOC.CS5248 Ooi Wei Tsang 2 You are Here Network Encoder Sender Middlebox Receiver Decoder.
Doc.: IEEE /0604r1 Submission May 2014 Slide 1 Modeling and Evaluating Variable Bit rate Video Steaming for ax Date: Authors:
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) MPEG + RTP.
Receiver-driven Layered Multicast S. McCanne, V. Jacobsen and M. Vetterli University of Calif, Berkeley and Lawrence Berkeley National Laboratory SIGCOMM.
Internet Video By Mo Li. Video over the Internet Introduction Video & Internet: the problems Solutions & Technologies in use Discussion.
1 NUS.SOC.CS5248 OOI WEI TSANG Playout Buffer Management.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Adaptive Playout.
1 Measurements of the Congestion Responsiveness of Windows Streaming Media James Nichols, Mark Claypool, Robert Kinicki and Mingzhe Li Computer Science.
Measurements of Congestion Responsiveness of Windows Streaming Media (WSM) Presented By:- Ashish Gupta.
Receiver-driven Layered Multicast S. McCanne, V. Jacobsen and M. Vetterli SIGCOMM 1996.
1 Equation-Based Congestion Control for Unicast Applications Sally Floyd, Mark Handley, Jitendra Padhye & Jorg Widmer August 2000, ACM SIGCOMM Computer.
Fine Grained Scalable Video Coding For Streaming Multimedia Communications Zahid Ali 2 April 2006.
1 TCP Transport Control Protocol Reliable In-order delivery Flow control Responds to congestion “Nice” Protocol.
Streaming Media. Unicast Redundant traffic Multicast One to many.
TCP Friendliness CMPT771 Spring 2008 Michael Jia.
Streaming Video Gabriel Nell UC Berkeley. Outline Scalable MPEG-4 video – Layered coding method – Integrated transport-decoder buffer model RAP streaming.
Receiver Capability Heterogeneity in the Internet.
EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Reliable Network Service: Design Issues  Unreliable Network.
K. Salah 1 Chapter 28 VoIP or IP Telephony. K. Salah 2 VoIP Architecture and Protocols Uses one of the two multimedia protocols SIP (Session Initiation.
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
Ali Saman Tosun Computer Science Department
Congestion control for multimedia Henning Schulzrinne Dept. of Computer Science Columbia University Fall 2003.
1 Cache Me If You Can. NUS.SOC.CS5248 OOI WEI TSANG 2 You Are Here Network Encoder Sender Middlebox Receiver Decoder.
Analysis of FEC Function for Real-Time DV Streaming Kazuhisa Matsuzono, Hitoshi Asaeda, Kazunori Sugiura, Osamu Nakamura, and Jun Murai Keio University.
TFRC: TCP Friendly Rate Control using TCP Equation Based Congestion Model CS 218 W 2003 Oct 29, 2003.
Kamal Singh, Árpád Huszák, David Ros, César Viho and Jeney Gábor
NUS.SOC.CS5248 Ooi Wei Tsang Previously, on CS5248..
Datagram Congestion Control Protocol
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Systems Support for Continuous Media.
June 11, 2001ICC20011 Department of Informatics and Mathematical Science, Graduate School of Engineering Science, Osaka University, Japan Masaki Miyabayashi.
0 Delayed Congestion Response Protocols Thesis By Sumitha Bhandarkar Under the Guidance of Dr. A. L. N. Reddy.
1 Measuring Congestion Responsiveness of Windows Streaming Media James Nichols Advisors: Prof. Mark Claypool Prof. Bob Kinicki Reader: Prof. David Finkel.
報告人:林祐沁 學生 指導教授:童曉儒 老師 March 2, Wireless Video Surveillance Server Based on CDMA1x and H.264.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1 Proxy Caching for Streaming Media.
NUS.SOC.CS Roger Zimmermann (based on slides by Ooi Wei Tsang) Systems Support for Continuous Media.
NUS.SOC.CS5248 Ooi Wei Tsang Rate Adaptations. NUS.SOC.CS5248 Ooi Wei Tsang You are Here Network Encoder Sender Middlebox Receiver Decoder.
Low Latency Adaptive Streaming over TCP Authors Ashvin Goel Charles Krasic Jonathan Walpole Presented By Sudeep Rege Sachin Edlabadkar.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Proxy Caching for Streaming Media.
The Macroscopic behavior of the TCP Congestion Avoidance Algorithm.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.
1 Highlight 1: AER/NCA. 2 Active Multicast Repair Services Receiver Sender Conventional Routers Repair latency is a complete round trip time Link causing.
NUS.SOC.CS5248 OOI WEI TSANG 1 Previously, on CS5248..
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
NUS.SOC.CS5248 Ooi Wei Tsang Systems Support for Continuous Media.
Accelerating Peer-to-Peer Networks for Video Streaming
The Transport Layer Congestion Control & UDP
Media Compression.
Chapter 3 outline 3.1 transport-layer services
Proxy Caching for Streaming Media
Rate Adaptations.
CS 268: Lecture 6 Scott Shenker and Ion Stoica
Error Recovery.
Rate Adaptations.
MPEG + RTP.
Adaptive Playout.
Video On Demand.
Congestion Control, Internet transport protocols: udp
Huahui Wu, Mark Claypool, Robert Kinicki Computer Science,
ECE 599: Multimedia Networking Thinh Nguyen
Transmitting Scalable Video over a DiffServ network
EE 368C Project Multi-stream Audio Transmission with Path Diversity
RAP: Rate Adaptation Protocol
Chapter 3 outline 3.1 Transport-layer services
Review of Internet Protocols Transport Layer
Designing a Relative Delay Estimator for Multipath Transport
Presentation transcript:

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) You are Here Network Encoder Sender Middlebox Receiver Decoder

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Sender’s Algorithm open UDP socket foreach video frame chop into packets add RTP header send to network

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Sender’s Algorithm open UDP socket foreach video frame chop into packets add RTP header send to network wait for 1/fps seconds

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Sender’s Algorithm open UDP socket foreach video frame chop into packets add RTP header send to network wait for 1/fps seconds  Send frames at equal time distance.

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Sender’s Algorithm open UDP socket foreach video frame chop into packets foreach packet add RTP header send to network wait for size/bps seconds  Send data at constant bandwidth.

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rules Transmission rate should match encoding rate Transmission should not be too bursty

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Two Approaches 1. Just send at a fix rate or “I hope the network can handle it” approach

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Effects on TCP: Simulation From Sisalem, Emanuel and Schulzrinne paper on “Direct Adjustment Algorithm.”

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Effects on TCP

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) DAA Parameters Adaptive RTP flows Additive increase/multiplicative decrease 50 kb and factor RTCP: min 5 sec inter-report time Loss thresholds: 5% and 10% TCP Immediate loss notification Transmission window is halved

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Demo Effects of UDP on TCP without congestion control

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Two Approaches 1. Just send at a fixed rate or “I hope the network can handle it” approach 2. Adapt transmission/encoding rate to network condition

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) How to Adapt? if network condition is bad reduce rate else if network condition is so-so do nothing else if network condition is good increase rate

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) How to.. Know “network condition is bad”? Increase/decrease rate?

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) if network condition is bad else if network condition is so-so do nothing else if network condition is good Adapting Output Rate

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) if network condition is bad else if network condition is so-so do nothing else if network condition is good Adapting Output Rate Multiplicative decrease Additive increase

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Question: What should  and be?

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Observation 1 Should never change your rate more than an equivalent TCP stream.

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Observation 2  and should depend on network conditions and current rate.

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Goal: Fair Share of Bottleneck let r: current rate b: bottleneck bandwidth S: current share

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) S vs 1 S

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Value of (Assuming one receiver)

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Limit of M: packet size  : round trip time T : period between evaluation of

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Limit of M : packet size  : round trip time T : period between evaluation of

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Loss rate vs   loss rate 1 1

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Value of  where is the loss rate k is a constant (Assuming one receiver)

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) What is Needed?

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Estimating b : Packet Pair

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Estimating b : Packet Pair

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Estimating b : Packet Pair

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Evaluation

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) More TCP-Friendly Rate Control

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) TCP-Equation Window size behavior in TCP/IP with constant loss probability T. Ott, J. Kemperman, and M. Mathis June 1997, HPCS 1997

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) TCP-Equation Equation-Based Congestion Control for Unicast Applications Sally Floyd, Mark Handley, Jitendra Padhye, and Joerg Widmer. August SIGCOMM 2000

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Another Transport Protocol Datagram Congestion Control Protocol (DCCP) Implements congestion control but not reliability

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rules Transmission rate should match encoding rate Transmission should not be too bursty

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Control Given a rate, how to encode the video with the given rate?

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Reduce Frame Rate Live Video Stored Video

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Reduce Frame Resolution Live Video Stored Video

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Increase Quantization Live Video Stored Video

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Drop AC components Live Video Stored Video

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Trouble with Stored Video Reducing rate requires partial decoding and re-encoding Solution: Layered Video

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layered Video or “Scalable Video”

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layered Video Layer 1 Layer 2Layer 3

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layering Scheme Temporal (Frame Rate) Layering

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layering Scheme Spatial (Resolution) Layering

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layering Scheme DCT Layering; SNR (Quality) Layering

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layering Scheme Fine Granularity Scalability (FGS): e.g., MPEG

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layered Video SVC: Scalable Video Coding Base-layer plus enhancement layers Each received layer improves the quality Layer n+1 depends on layer n MDC: Multiple Description Coding Layers are independent Each received layer improves the quality

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Layered Video BUT: Layered video codecs are less bandwidth-efficient than single-layer codecs.

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptation To increase rate, send more layers To decrease rate, drop some layers

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) MS Windows Streaming Media

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Intelligent Streaming Multiple-Bit-Rate Encoding Intelligent Bandwidth Control bit rate selection thinning Intelligent Image Processing

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Intelligent Streaming How exactly does it work? Sorry, it’s proprietary

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Is WSM TCP friendly? Measurements of the Congestion Responsiveness of Windows Streaming Media J. Nichols et. al., NOSSDAV 2004 All figures taken from the original NOSSDAV presentation

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 340kbps clip, 725kbps bottleneck

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Transmission is Bursty

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 340kbps clip, 725kbps bottleneck

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 548kbps Clip - 725kbps Bottleneck

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 1128kbps Clip - 725kbps Bottleneck

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 725kbps Bottleneck BufferingPlayout Single Encoded Bit Rate

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) 725kbps Bottleneck Multiple Encoded Bit Rate BufferingPlayout

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Conclusion Two phases: buffering + playout Not always TCP-friendly