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.
Ahmed Mansy, Mostafa Ammar (Georgia Tech) Bill Ver Steeg (Cisco)
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.
Multirate Congestion Control Using TCP Vegas Throughput Equations Anirban Mahanti Department of Computer Science University of Calgary Calgary, Alberta.
Network Congestion Gabriel Nell UC Berkeley. Outline Background: what is congestion? Congestion control – End-to-end – Router-based Economic insights.
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.
1 WiSE Video: using in-band wireless loss notification to improve rate- controlled video streaming A. Markopoulou, E. Setton, M. Kalman, J. Apostolopoulos.
Streaming Media. Unicast Redundant traffic Multicast One to many.
A Real-Time Video Multicast Architecture for Assured Forwarding Services Ashraf Matrawy, Ioannis Lambadaris IEEE TRANSACTIONS ON MULTIMEDIA, AUGUST 2005.
TCP Friendliness CMPT771 Spring 2008 Michael Jia.
Achieving Inter-Session Fairness for Layered Video Multicast Wei Kyang Lau and Chieh Ying Pan, Department of computer science and engineering, National.
Streaming Video Gabriel Nell UC Berkeley. Outline Scalable MPEG-4 video – Layered coding method – Integrated transport-decoder buffer model RAP streaming.
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.
Nus.soc.cs5248 Ooi Wei Tsang Recent Papers from conferences.
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
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.
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
Joint BEATS/WIP Seminar, June 6, 2003 Copyrights Saverio Mascolo Rate-based Control for Streaming Videos over the Internet Saverio Mascolo Saverio Mascolo.
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.
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.
Authors: HUAHUI WU, MARK CLAYPOOL, and ROBERT KINICKI Presented By Siddharth Singla Jangsung Lee Adjusting Forward Error Correction with Temporal Scaling.
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.
NUS.SOC.CS5248 OOI WEI TSANG 1 Previously, on CS5248..
NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Rate Adaptations.
The Transport Layer Congestion Control & UDP
Media Compression.
Proxy Caching for Streaming Media
Rate Adaptations.
CS 268: Lecture 6 Scott Shenker and Ion Stoica
Error Recovery.
MPEG + RTP.
Adaptive Playout.
Video Multicast over the Internet (IEEE Network, March/April 1999)
Video On Demand.
Congestion Control, Internet transport protocols: udp
TCP Westwood(+) Protocol Implementation in ns-3
Internet Congestion Control Research Group
Huahui Wu, Mark Claypool, Robert Kinicki Computer Science,
ECE 599: Multimedia Networking Thinh Nguyen
PUSH Flag A notification from the sender to the receiver to pass all the data the receiver has to the receiving application. Some implementations of TCP.
Transmitting Scalable Video over a DiffServ network
RAP: Rate Adaptation Protocol
Chapter 3 outline 3.1 Transport-layer services
Modeling and Evaluating Variable Bit rate Video Steaming for ax
Presentation transcript:

Rate Adaptations

You are Here Encoder Decoder Middlebox Sender Receiver Network NUS.SOC.CS5248-2010 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.CS5248-2010 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.CS5248-2010 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 NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Two Approaches Just send at a fix rate or “I hope the network can handle it” approach” NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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

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

Two Approaches Just send at a fixed rate or “I hope the network can handle it” approach” Adapt transmission/encoding rate to network condition NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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

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

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

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

Observation 2  and  should depend on network conditions and current rate. current rate high, NUS.SOC.CS5248-2010 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 current rate high, NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

S vs   S 1 NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Value of  (Assuming one receiver) NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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

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

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

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

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

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

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

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

More TCP-Friendly Rate Control

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.CS5248-2010 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 2000. SIGCOMM 2000 NUS.SOC.CS5248-2010 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.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Given a rate, how to encode the video with the given rate? Rate Control Given a rate, how to encode the video with the given rate?

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

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

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

Drop AC components Live Video Stored Video NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Layered Video or “Scalable Video”

Layered Video Layer 1 Layer 2 Layer 3 One of the better proposed solution is called RLM or receiver driven layered multicast. The idea is to divide a stream into multiple layers. The base layer encodes the video stream at a low bitrate, and each additional layer on top enhances its quality. The layers are sent onto different multicast channels, and receivers can choose the number of layers to receive based on their available bandwidth. NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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

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

Layering Scheme DCT Layering; SNR (Quality) Layering 30 30 8 2 30 8 2 -6 -1 -6 -1 1 1 NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Layering Scheme Fine Granularity Scalability (FGS): e.g., MPEG-4 1 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 0 NUS.SOC.CS5248-2010 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

MS Windows Streaming Media

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

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

All figures taken from the original NOSSDAV presentation 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.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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

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

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

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

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

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

Single Encoded Bit Rate 725kbps Bottleneck Buffering Playout Single Encoded Bit Rate NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

Multiple Encoded Bit Rate 725kbps Bottleneck Multiple Encoded Bit Rate Buffering Playout NUS.SOC.CS5248-2010 Roger Zimmermann (based in part on slides by Ooi Wei Tsang)

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