Klara Nahrstedt Spring 2010

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

CCNA – Network Fundamentals
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
RTP: A Transport Protocol for Real-Time Applications Provides end-to-end delivery services for data with real-time characteristics, such as interactive.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Session Protocols Klara Nahrstedt Spring 2011.
Page 15/19/2015 CSE 40373/60373: Multimedia Systems Popular protocols for serving media  Network transmission control  RTP – Realtime Transmission Protocol.
User Control of Streaming Media: RTSP
Multimedia Streaming Protocols1 Multimedia Streaming: Jun Lu Xinran (Ryan) Wu CSE228 Multimedia Systems Challenges and Protocols.
UNCW UNCW SIGGRAPH 2002 Topic #3: Continuous Media in Wired and Wireless Environments Ronald J. Vetter Department of Computer Science University of North.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #2 Header Compression.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 1. RTP/RTCP.
1 Internet Networking Spring 2006 Tutorial 14 Header Compression.
RTP/RTCP – Real Time Transport Protocol/ Real Time Control Protocol Presented by Manoj Sivakumar.
RTP: A Transport Protocol for Real-Time Applications
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
CS 218 F 2003 Nov 3 lecture:  Streaming video/audio  Adaptive encoding (eg, layered encoding)  TCP friendliness References: r J. Padhye, V.Firoiu, D.
RTSP Real Time Streaming Protocol
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 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.
Multimedia Over IP: RTP, RTCP, RTSP “Computer Science” Department of Informatics Athens University of Economics and Business Λουκάς Ελευθέριος.
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.
Foreleser: Carsten Griwodz
IP Multicast A convention to identify a multicast address Each node must translate between an IP multicast address and a list of networks that contain.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 22 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Real Time Protocol (RTP) 김 준
Team Members Atcharawan Jansprasert Padmoja Roy Rana Almakabi Ehsan Eslamlouevan Manya Tarawalie.
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.
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.
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.
An Extensible RTCP Control Framework for Large Multimedia Distributions Paper by: Julian Chesterfield Eve M. Schooler Presented by: Phillip H. Jones.
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
1 Internet Telephony: Architecture and Protocols an IETF Perspective Authors:Henning Schulzrinne, Jonathan Rosenberg. Presenter: Sambhrama Mundkur.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2011.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 19 – Multimedia Session Protocols ( Layer 5) Klara Nahrstedt Spring 2009.
RTP/RTCP/RTSP Ben Biro CISC 856 – Spring '10 University of Delaware Thanks to Professor Amer, Henning Schulzrinne, Colin Perkins, Amit Hetawal.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 17 – Multimedia Transport Subsystem (Part 3) Klara Nahrstedt Spring 2011.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 24 – Multimedia Session Protocols Klara Nahrstedt Spring 2014.
Networked Multimedia Basics. Network Characteristics.
11 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
VoIP ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts.
The Transport Layer Congestion Control & UDP
Chapter 9: Transport Layer
RTP: A Transport Protocol for Real-Time Applications
RTP: A Transport Protocol for Real-Time Applications
Real-Time Transport Protocol
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Klara Nahrstedt Spring 2012
Instructor Materials Chapter 9: Transport Layer
Klara Nahrstedt Spring 2010
Chapter 5 Network and Transport Layers
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2009
RTP: A Transport Protocol for Real-Time Applications
5. End-to-end protocols (part 1)
Klara Nahrstedt Spring 2014
RTP – Real-time Transport Protocol
Chapter 25 Multimedia TCP/IP Protocol Suite
Foreleser: Carsten Griwodz
Multimedia and Networks
Real Time Streaming Protocol
Presentation transcript:

Klara Nahrstedt Spring 2010 CS 414 – Multimedia Systems Design Lecture 19 – Error Correction and Multimedia Session Protocols Klara Nahrstedt Spring 2010 CS 414 - Spring 2010

Administrative HW1 deadline March 5, midnight 11:59pm Individual effort!!! (take it as a midterm preparation) Midterm, March 8 11-11:50am in class All topics/lectures until February 26, i.e., the material covered this week March 1-8 will not be on the midterm You can bring calculator and 1 page of cheat-sheet (otherwise, exam is closed book, closed notes) Class on Friday, March 5 - discussion of midterm topics CS 414 - Spring 2010

Outline Error Detection and Correction Algorithms Multimedia Protocols – Standards RTP/UDP/IP – Transmission Protocol RTCP Control/Negotiation Protocol to RTP RTSP – Control VOD Negotiation Protocol CS 414 - Spring 2010

Error Control Error Detection Ability to detect the presence of errors caused by noise or other impairments during transmission from sender to receiver Traditional mechanisms: check-summing, PDU sequencing Checksum of a message is an arithmetic sum of message code words of a certain word length (e.g., byte) CRC – Cyclic Redundancy Check – function that takes as input a data stream of any length and produces as output a value (commonly a 32-bit integer) – can be used as a checksum to detect accidental alteration of data during transmission or storage Multimedia mechanisms: byte error detection at application PDU, time detection CS 414 - Spring 2010

Design of Error Correction Codes Automatic repeat-request (ARQ) Transmitter sends the data and also an error detection code, which the receiver uses to check for errors, and requests retransmission for erroneous data The receiver sends ACK (acknowledgement of correctly received data) Forward Error Correction (FEC) Transmitted encodes the data with an error-correcting code (ECC) and sends the coded msg. No ACK exists. CS 414 - Spring 2010

Error Control Error Correction Traditional mechanisms: retransmission using acknowledgement schemes, window-based flow control Multimedia mechanisms: Go-back-N Retransmission Selective retransmission Partially reliable streams Forward error correction Priority channel coding Slack Automatic Repeat Request CS 414 - Spring 2010

Go-back-N Retransmission CS 414 - Spring 2010

Jitter Control in Slack Automatic Repeat Request Scheme CS 414 - Spring 2010

Internet Multimedia Protocol Stack Media encaps (H.264, MPEG-4) APPLICATION RTSP RSVP RTCP Layer 5 (Session) SIP RTP Layer 4 (Transport) TCP UDP KERNEL Layer 3 (Network) IP Version 4, IP Version 6 AAL3/4 AAL5 MPLS Layer 2 (Link/MAC) Ethernet/WiFi ATM/Fiber Optics CS 414 - Spring 2010

Service Requirements for Real-time Flows (Voice/Video) Sequencing Intra-media synchronization Inter-media synchronization Payload identification Frame indication CS 414 - Spring 2010

Real-time Transmission Protocol (RTP) RTP provides end-to-end transport functions suitable for real-time audio/video applications over multicast and unicast network services RTP companion protocol – Real-time Transport Control Protocol (RTCP) RTP RTCP Layer 4 User Datagram Protocol Internet Protocol Ethernet 802.13 or Wi-Fi 802.11 PHY (Wired or Wireless) CS 414 - Spring 2010

Relation between RTP and RTCP Decoding Coding RTP RTCP UDP/IP Application Application Coding Decoding RTCP RTP UDP/IP CS 414 - Spring 2010

RTCP: Control and Management Out-of-band control information for RTP flow. Monitors QoS for RTP in the delivery and packaging of multimedia data Used periodically to transmit control packets to participants in a streaming multimedia session. Provides feedback on the quality of service being provided by RTP. Gathers statistics on media connection Bytes sent, packets sent, lost packets, jitter, feedback and round trip delay. Application may use this information to increase the quality of service, perhaps by limiting flow or using a different codec. CS 414 - Spring 2010

RTCP Functions There are several type of RTCP packets: Sender report packet, Receiver report packet, Source Description RTCP Packet, Goodbye RTCP Packet and Application Specific RTCP packets. RTCP itself does not provide any flow encryption or authentication means. SRTCP protocol can be used for that purpose. CS 414 - Spring 2010

RTP Services Payload Type Identification Sequence numbering Determination of media coding Source identification RTP works with Profiles Profile defines a set of payload type codes and their mappings to payload formats Sequence numbering Error detection Time-stamping Time monitoring, synchronization, jitter calculation Delivery monitoring , the services provided by RTP include: Payload-type identification - Indication of what kind of content is being carried Sequence numbering - PDU sequence number Time stamping - allow synchronization and jitter calculations Delivery monitoring The protocols themselves do not provide mechanisms to ensure timely delivery. They also do not give any Quality of Service (QoS) guarantees. These things have to be provided by some other mechanism. Also, out of order delivery is still possible, and flow and congestion control are not supported directly. However, the protocols do deliver the necessary data to the application to make sure it can put the received packets in the correct order. Also, RTCP provides information about reception quality which the application can use to make local adjustments. For example if a congestion is forming, the application could decide to lower the data rate. RTP was also published by the ITU-T as H.225.0, but later removed once the IETF had a stable standards-track RFC published. It exists as an Internet Standard (STD 64) defined in RFC 3550 (which obsoletes RFC 1889). RFC 3551 (STD 65) (which obsoletes RFC 1890) defines a specific profile for Audio and Video Conferences with Minimal Control. RFC 3711 defines the Secure Real-time Transport Protocol (SRTP) profile (actually an extension to RTP Profile for Audio and Video Conferences) which can be used (optionally) to provide confidentiality, message authentication, and replay protection for audio and video streams being delivered. CS 414 - Spring 2010

RTP Message MAC header IP header UDP header RTP message 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Ver P X CC M PT Sequence Number Timestamp SSRC CSRC [0..15] ::: Ver – Version 2 P – Padding X – Extension, if set, the fixed head is followed by exactly one header extension CC – CSRC count M – Marker – intended to allow significant events such as frame boundaries to be marked (defined by profile) PT – Payload type SSRS – synchronization source, CSRC – contribution source CS 414 - Spring 2010

RTP Services – Support of Heterogeneity Mixer service Allows for resynchronization of incoming audio packets Reconstructs constant 20 ms spacing generated by sender Mixes reconstructed audio streams into single stream Translates audio encoding to lower bandwidth Forwards lower bandwidth packet streams Translator service Allows for translation between IP and other high speed protocols May change encoding data CS 414 - Spring 2010

Difference between Mixers and Translators CS 414 - Spring 2010

Payload Formats Static Payload formats Dynamic Payload formats Established in RTP Profile Payload type 0 := µ-law audio codec Dynamic Payload formats Applications agree per session on payload format H.263, JPEG, MPEG CS 414 - Spring 2010

Session Management (Layer 5) Important part of multimedia communication Separates control aspects from transport aspects SESSION MANAGER Conference control Participant Management Session Control Protocol (e.g., RTSP) Session Control Media control Configuration control Presentation data communication whiteboard Continuous data communication video Continuous data communication audio CS 414 - Spring 2010

Session Manager Tasks: Membership control Monitoring of shared workspace Coordination of Media control management Exchange of QoS parameters Conference control management – establishment, modification, termination CS 414 - Spring 2010

Session Control Session Described by Session state Name of session, start, valid policies Session management – two steps for state processing Establishment of session Modification of session CS 414 - Spring 2010

Session Control Conference Control Media Control Configuration Control Centralized or distributed approach Media Control Synchronization Configuration Control Negotiation of QoS parameters, admission control and reservation/allocation of resources Membership Control Invitation of users; registration of users, change of membership CS 414 - Spring 2010

Real-Time Streaming Protocol (RTSP) Application Protocol for Control of multimedia streams This is not an application data transmission protocol, just remote control protocol between client and server Audio Video Decoder AudiovideoCoder Session Control RTSP RTSP RTP RTP CLIENT SERVER CS 414 - Spring 2010

RTSP Approved as Internet Draft, February 2, 1998, authors H. Schulzrinne, A. Rao, R. Lanphier Enables controlled, on-demand delivery of real-time data such as audio and video Intends to control multiple data delivery sessions Provides means for choosing delivery channels UDP Multicast UDP, TCP CS 414 - Spring 2010

RTSP Methods Request Direction Description OPTIONS S <-> C Determine capabilities of server (S) or client (C) DESCRIBE C -> S Get description of media stream ANNOUNCE Announce new session description SETUP C -> S Create media session RECORD Start media recording PLAY Start media delivery PAUSE Pause media delivery REDIRECT S -> C Use other server TEARDOWN Destroy media session SET_PARAMETER Set server or client parameter GET_PARAMETER Read server or client parameter CS 414 - Spring 2010

RTSP Extensions Timing Three types of timestamps RTSP needs to hide latency variations PLAY request may contain information about when request is to be executed Three types of timestamps SMPTE (the same as in TV production) Format: hours:minutes:seconds:frames Normal play time Measured relative to beginning of stream and expressed in ours, minutes, seconds and fractions of second Absolute time Wall clock CS 414 - Spring 2010

Conclusion RTP usage – in several application audio and video tools (vat, vic) RTP follows the principle of application level framing and integrated layer processing RTP/UDP/IP is being used by the current streaming session protocols such as RTSP Session protocols are actually negotiation/session establishment protocols that assist multimedia applications Multimedia applications such as QuickTime, Real Player and others use them CS 414 - Spring 2010