CS 414 - Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
Chapter 20: Multimedia Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 20: Multimedia Systems What is Multimedia.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 25 Multimedia.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 15 –QoS Admission, QoS Negotiation, and Establishment of AV Connections Klara Nahrstedt.
User Control of Streaming Media: RTSP
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time, Interactive Multimedia: Internet.
CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- I Hao Jiang Computer Science Department Boston College Nov. 6, 2007.
Asynchronous Transfer Mode (ATM)
1 CSE 401N Multimedia Networking Lecture Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video network provides.
Real-time Transport Protocol Matt Boutell CS457: Computer Networks November 15, 2001.
Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss r RTP r Diff-serv, Int-serv, RSVP.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
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 Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
RTP/RTCP – Real Time Transport Protocol/ Real Time Control Protocol Presented by Manoj Sivakumar.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 4) Klara Nahrstedt Spring 2011.
CS640: Introduction to Computer Networks
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
1 CMSCD1011 Introduction to Computer Audio Lecture 10: Streaming audio for Internet transmission Dr David England School of Computing and Mathematical.
Throughput: Internet scenario
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 28 – Final Comments on DASH and Client-Server Buffer Management Klara Nahrstedt Spring.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 26 – Synchronization Issues Klara Nahrstedt Spring 2012.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
MP 2: Audio/ Video Streaming
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 25 – Media Server (Part 1) Klara Nahrstedt Spring 2011.
1 o characteristics – From an application-level API to the physical layer – CBR, VBR, ABR and UBR – Cell: bytes – Virtual circuits: virtual channel.
1 End-user Protocols, Services and QoS. 2 Layering: logical communication application transport network link physical application transport network link.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
Streaming Media Control n The protocol components of the streaming n RTP/RTCP n RVSP n Real-Time Streaming Protocol (RTSP)
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 28 Multimedia.
Chapter 28. Network Management Chapter 29. Multimedia
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 22 – Multimedia Session Protocols Klara Nahrstedt Spring 2014.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Internet multimedia: simplest approach audio, video not streamed: r no, “pipelining,” long delays until playout! r audio or video stored in file r files.
CSE5803 Advanced Internet Protocols and Applications (14) Introduction Developed in recent years, for low cost phone calls (long distance in particular).
MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: Klara Nahrstedt March 16, 2012.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 1) Klara Nahrstedt Spring 2012.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Ch 6. Multimedia Networking Myungchul Kim
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 30 – Final Comments on DASH and Client-Server Buffer Management Klara Nahrstedt Spring.
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
Introduction to Quality of Service Klara Nahrstedt CS 538.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 17 – QoS Classes and Setup Operations Klara Nahrstedt Spring 2014.
Multimedia Communication Systems Techniques, Standards, and Networks Chapter 6 Multimedia Communication Across Networks.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 13 – Quality of Service Concepts(Part 2) Klara Nahrstedt Spring 2009.
The Transport Layer Congestion Control & UDP
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2012
Chapter 25 Multimedia TCP/IP Protocol Suite
Congestion Control, Internet transport protocols: udp
Multimedia networking: outline
Multimedia networking: outline
Presentation transcript:

CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012

Administrative MP2 posted MP2 Deadline – April 7, Saturday, 5pm. CS Spring 2012

Covered Aspects of Multimedia Image/Video Capture Media Server Storage Transmission Compression Processing Audio/Video Presentation Playback Audio/Video Perception/ Playback Audio Information Representation Transmission Audio Capture A/V Playback Image/Video Information Representation CS Spring 2012

Multimedia Protocols: Layered Code CS Spring 2012 Sampling/Encoding Streaming Application Real-time Transport Protocol (Packetization/ And Segmentation) UDP IP Ethernet Segmentation Decoding/Playout Streaming Application Real-time Transport Protocol (De-Packetization And Re-assembly) UDP IP Ethernet Re-assembly Reassembly SENDER RECEIVER NETWORK S T3 T1 T2 Multicast T1 T2 T3 Multi-Traget S T Unicast

Sender/Receiver Curves for Transmission of Voice over Packet-switched network may cause packet losses CS Spring 2012 p s (t) b s (t)r(t) p r( t) bytes Late loss

Protocol Requirements on Buffer Management (Summary) Protocol Requirement: Segmentation Splitting of service data units (SDU) Identification of each split SDU Protocol Requirement: Reassembly Linking memory to form one buffer Protocol Requirement: Retransmission (in case of TCP) Maintain logical copy of buffer to store SDU for possible retransmission Protocol Requirement: Multicast Keep one buffer for all recipients and use multicast group address Protocol Requirement: Multi-target  Keep one memory segment common to all buffers CS Spring 2012

Buffer Management Techniques for Layered Code in Multimedia Protocol Stack Data Copying Offset Management Scatter-Gather CS Spring 2012

Data Copying CS Spring 2012 Transport Service Entity (UDP) Copy data Network Service Entity (IP) Buffer for UDP Datagram Kernel User space RTP Streaming Service Buffer for RTP Protocol Data Unit Buffer for IP Datagram Buffer Management System at Receiver Copy data

Data Copying and Offset Management CS Spring 2012 PCI1Data PCI1 DataPCI2 App RTP UDP DATA COPYING 1. app 2. PCI1 added by RTP 3. PCI2 added by UDP 1. data2. PCI13. PCI2 OFFSET MANAGMENT Buffer Management: Assign as large buffer as data + all headers of the protocols require Problems:??? Buffer Management: Copy data and PCIs between protocol layers

Scatter-Gather CS Spring 2012 Scatter/Gather Table Structure DATA DataPTR1 PCI1 PTR2 PCI2 PTR3 Application Buffer Space RTP Buffer Space UDP Buffer Kernel Space Problems: ??? Buffer Management: Establish scatter/gather Table structure across all protocol layers to keep Track where payload (data) and control info (PCIs) Are located

Comparison CS Spring 2012 Data CopyingOffsetScatter/Gather Memory BWHighLow CPU BWHighLow Memory Usage per Layer Optimal for individual protocol layer because exact amount of space will be allocated High for application protocol because it must allocate space more than it needs Compromise, segments are sized depending on requirements Are Protocol Requirements without copying satisfied? NANo, segmentation needs copying Mostly yes (one copy and segmentation must be done when data leaves node)

Client-Server Systems: Distributed Application Code CS Spring 2012 Read encoded frames from VOD Disk Packetization Protocol Stack Processing network De-Packetization Protocol Stack Processing Decoderplayout VOD Server VOD Client

Client/Server Video-on-Demand System CS Spring 2011

VOD Retrieval Transmission and Playout Curves CS Spring 2012 time bytes Retrieval curve From disk Sending Curve from VOD server Receiving Curve at VOD Client Playout Curve At VOD Client Playout buffers

Playout Buffers Goal: face effects caused by Network delay, delay jitter, packet loss on continuous media streams  By using QoS-aware network technologies (RSVP, DiffServ, ATM, …) not widely adapted  By using adaptive playout control techniques Face unpredictability of IP networks by compensating for variable network delays and jitters experienced during the transmission of media packets CS Spring 2012

Adaptive Playout Control Mechanisms Delay jitter is smoothed away by  Employing playout buffer at the receiver  Dynamically enqueueing packets into it Playout buffer  Delays received packets for some time to allow smooth media packet playout rate,  Absorbs negative effects introduced by delay jitter  Must be adaptive since delay jitter on Internet may vary significantly with time. CS Spring 2012

Playout Delays CS Spring 2012 Small Playout DelayLarge Playout Delay

Buffer Management Techniques for VOD Client Consider time of buffer setup  Fixed Buffer Technique  Dynamic Buffer Technique Consider size of buffer  MinBuf  MaxBuf CS Spring 2012

Buffer Management Strategies Clients need buffers for VOD (Video-on- Demand) application to smooth out traffic jitters Buffer management strategies balance bits in transit (buffer size and bits in channel) Fixed Strategy (non-adaptive) and dynamic (adaptive) CS Spring 2012

Buffer Management Strategies Fixed buffer strategy  Static buffer allocation during multimedia call setup phase  Static buffer allocation does not change during run-time Dynamic buffer strategy  Elastic buffer allocation, i.e., allocate buffers during multimedia call setup, but change them during run-time CS Spring 2012

Buffering Strategies at VOD Client Minbuf - minimum buffering strategy  Minbuf minimizes buffering requirements at VOD client, but makes more demands on network (throughput and delay guarantees) Maxbuf – maximum buffering strategy  Maxbuf buffers more than one unit of information and eases QoS guarantees demands on network  Buffering only up to a limit (Buf max ) CS Spring 2012

Conclusion Need buffering consideration in layered code of multimedia protocol stack  Data copying  Offset management  Scatter-gather Need buffering consideration in distributed code of multimedia applications, e.g., Video- on-Demand (VOD) service  Buffering at the VOD client side  Some buffering needed also at VOD Server side CS Spring 2012