CS 414 - Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
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.
5: DataLink Layer5-1 Asynchronous Transfer Mode: ATM r 1990’s/00 standard for high-speed (155Mbps to 622 Mbps and higher) Broadband Integrated Service.
Video over Wireless : Performance Evaluation in the GSM Circuit-Switched Channel Almudena Konrad Amoolya Singh University of California, Berkeley December.
CS335 Principles of Multimedia Systems Multimedia Over IP Networks -- I Hao Jiang Computer Science Department Boston College Nov. 6, 2007.
Asynchronous Transfer Mode (ATM)
Computer Network Architecture and Programming
1 CSE 401N Multimedia Networking Lecture Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video network provides.
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.
UDP© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
EE 4272Spring, 2003 Chapter 11. ATM and Frame Relay Overview of ATM Protocol Architecture ATM Logical Connections ATM Cells ATM Service Categories ATM.
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.
RTP/RTCP(RFC 1889) Real-time transport protocol (RTP) is the de facto standard media transport protocol in the Internet Media transport: audio, vedio,
CS640: Introduction to Computer Networks
CIS679: RTP and RTCP r Review of Last Lecture r Streaming from Web Server r RTP and RTCP.
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.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) 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.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Multimedia, Quality of Service: What is it?
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)
Chapter 28. Network Management Chapter 29. Multimedia
LOG Objectives  Describe some of the VoIP implementation challenges such as Delay/Latency, Jitter, Echo, and Packet Loss  Describe the voice encoding.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
Lecture 8 Virtual Switching (contd.) & Message Switching.
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.
Ch 6. Multimedia Networking Myungchul Kim
MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: Klara Nahrstedt March 16, 2012.
Department of Computer and IT Engineering University of Kurdistan
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
3GPP2 Evolution Workshop Multimedia Codecs and Protocols 3GPP2 TSG-C SWG1.2.
Transport Protocols.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 30 – Final Comments on DASH and Client-Server Buffer Management Klara Nahrstedt Spring.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
Congestion Control: UDP. What is Congestion Control? Refers to the management of packet loss and signal degradation Handled by both Network and Transport.
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.
Tutorial 12 Solutions.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 17 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2011.
UDP: User Datagram Protocol. What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host – treats a computer as an.
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
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2012
Multimedia networking: outline
Process-to-Process Delivery:
Multimedia networking: outline
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011

Administrative MP2 is out Help Session CS Spring 2011

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

End-to-end Processing and Transmission of Digital Media Signals CS Spring 2011 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 its 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 2011 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 2011 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 2011

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 2011

Data Copying CS Spring 2011 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 Copy data

Layered Code in Multimedia Systems CS Spring 2011 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 2011 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 belong SEGMENTATION Example: I frame gets split into two RTP datagrams

Reassembly and Retransmission Requirements on Buffer Management CS Spring 2011 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 2011 S T3 T1 T2 PCI -GroupSDUi Multicast Buffer Management: Keep only One buffer for all recipients Use Multicast Group address (PCI-Group) T1 T2 T3 SDUi PCI-T1 PCI-T2 PCI-T3 Multi-Traget Buffer Management: Keep one memory segment Common to all buffers

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

Buffering Strategies in Client- Server Systems CS Spring 2011 Read encoded frames from VOD Disk Packetization Protocol Stack Processing network De-Packetization Protocol Stack Processing Decoderplayout VOD Server VOD Client

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

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 2011

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 2011

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 2011

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 2011