CS 414 - Spring 2014 CS 414 – Multimedia Systems Design Lecture 30 – Final Comments on DASH and Client-Server Buffer Management Klara Nahrstedt Spring.

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
Advertisements

CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 28 Real-Time Traffic over the Internet.
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 27 – DASH (Dynamic Adaptive Streaming over HTTP) Klara Nahrstedt Spring 2012.
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
1ISM - © 2010 Houman Younessi Lecture 5 Convener: Houman Younessi Information Systems Spring 2011.
Introduction to Transport Layer. Transport Layer: Motivation A B R1 R2 r Recall that NL is responsible for forwarding a packet from one HOST to another.
Computer Network Architecture and Programming
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.
Lecturer: Tamanna Haque Nipa
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.
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
1 How Streaming Media Works Bilguun Ginjbaatar IT 665 Nov 14, 2006.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
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.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
MP 2: Audio/ Video Streaming
1 End-user Protocols, Services and QoS. 2 Layering: logical communication application transport network link physical application transport network link.
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
MP design and implementation CS414: Multimedia System Instructor: Klara Nahrstedt April 13, 2012.
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.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
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
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Introduction to Quality of Service Klara Nahrstedt CS 538.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Transport Subsystem (Part 2) + Midterm Review Klara Nahrstedt Spring 2014.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 17 – QoS Classes and Setup Operations Klara Nahrstedt Spring 2014.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Tutorial 12 Solutions.
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
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
Understand the OSI Model Part 2
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Chapter 25 Multimedia TCP/IP Protocol Suite
Multimedia networking: outline
Multimedia and Networks
Process-to-Process Delivery:
Multimedia networking: outline
Process-to-Process Delivery: UDP, TCP
Network Basics and Architectures Neil Tang 09/05/2008
Presentation transcript:

CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 30 – Final Comments on DASH and Client-Server Buffer Management Klara Nahrstedt Spring 2014

Administrative MP2 posted MP2 Deadline – April 12, Saturday, 5pm. CS Spring 2014

DASH AND INTERNET VIDEO CS Spring 2014

Media Presentation Data Model MDP - description of accessible segments and corresponding timing

Media Segments (2) Media segment duration advantagesdisadvantages Short durationCommonality with live high switching granularity on segment level -Large number of files -Large number of URLs -Fixed request size -Switching granularity on segment level Long duration- Small number of files - Small number of URLs -High switching granularity -Flexible request sizes -Improved cache performance -Need for segment index -Difference from live CS Spring 2014

Segment Indexing Provides information in ISO box structure on  Accessible units of data (e.g., frames) in media segment  Byte range in segments (easy access through HTTP GET)  Accurate presentation duration (seamless switching)  Presence of representation access positions Provides compact bitrate-over-time to client  Can be used for intelligent request schedule Generic data structure Hierarchical structuring for efficient access CS Spring 2014

Media Segment with Segment Index CS Spring 2014

MPEG-DASH Summary Is rich and simple at the same time Supports both un-chunked and chunked Supports both separate and combined AV Index formats for efficient byte range operation ISO base media file format w/common encryption Many useful stream and track annotations Currently – best candidate for open standard for adaptive streaming in video-on-demand services CS Spring 2014

MULTIMEDIA BUFFERING ISSUES CS Spring 2014

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 2014

Motivation for Buffering Buffers are temporary holding areas of RAM that contain transferable data. In multimedia systems, transferable data occur when  Transmitting multimedia from sender to receiver over Internet  Transferring multimedia from disk to RAM  Transferring multimedia RAM to I/O Devices CS Spring 2014

Layered Code in Multimedia Systems CS Spring 2014 Sampling/Encoding Streaming Application Real-time Transport Protocol (RTP) (Packetization) UDP IP Ethernet Decoding/Playout Streaming Application Real-time Transport Protocol (De- Packetization) UDP IP Ethernet SENDER RECEIVER

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 2014

End-to-end Processing and Transmission of Digital Media Signals CS Spring 2014 Sampling A/D encoder packetization network De- packetization Dec oderplayout Analog Media signal p s (t)e(t) b s (t) b r( t)r(t) d(t) p r (t) p(t) – amount of captured/playout bits at time t; e(t), d(t) amount of encoded/decoded bits at time t; b(t) - amount of clustered bits at time t

Example: Sender and Receiver Curves for transmission of CBR signal (digital speech with 64 kbps over a circuit-switched network) CS Spring 2014 time p s (t) b s (t) b r (t) p r( t) bytes buffering

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

Outline Protocol Requirements on Buffer Management Buffer Management  Data Copying  Offset Management  Scatter/Gather System Buffering Strategies  Minbuf  Maxbuf CS Spring 2014

Buffer Management Buffers can be viewed as spatial representation of time Buffer plays very important role in smoothing traffic Network protocols buffer their service data units (SDUs) and use data copying when going from one protocol layer to another Moving data using data copying is very expensive CS Spring 2014

Data Copying CS Spring 2014 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

Layered Code in Multimedia Systems CS Spring 2014 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

Protocol Requirements on Buffer Management and Segmentation CS Spring 2014 Protocol Requirements Service Data Unit (SDU) Example: Application Data Unit – Video I frame That comes out of encoder PCISDU1 PCISDU2 Buffer Management: Keep identification (PCI) to which application data unit the segment belongs SEGMENTATION Example: I frame gets split into two RTP datagrams

Reassembly and Retransmission Requirements on Buffer Management CS Spring 2014 PCISDU1PCISDU2SDU1SDU2 REASSEMBLY Buffer Management: support linking of memory to form one buffer RETRANSMISSION Buffer Management : logical copy of buffer must exist to store SDUs for Possible retransmission

Multi-cast and Multi-target requirements on Buffer Management CS Spring 2014 PCI -GroupSDUi Buffer Management: Keep only One buffer for all recipients Use Multicast Group address (PCI-Group) SDUi PCI-T1 PCI-T2 PCI-T3 S T3 T1 T2Multicast T1 T2 T3 Multi-Traget Buffer Management: Keep one memory segment Common to all buffers

Buffer Management Techniques CS Spring 2014 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

Buffer Management Techniques (Scatter-Gather) CS Spring 2014 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 2014 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)

Conclusion Need buffering at VOD client side Some buffering needed also at VOD Server side  Can use FIFO techniques Reservation memory schemes are possible  Implemented in system, called RK (CMU) Will talk about VOD server in next lectures CS Spring 2014