CS640: Introduction to Computer Networks Aditya Akella Lecture 19 - Multimedia Networking.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

Chapter 6: Multimedia Networking
1 Multimedia Communication Multimedia Systems Summary: r Multimedia Networking Applications: Requirements r Current Networks m Limitations & Evolution.
1 Multimedia Networking EECS 489 Computer Networks Z. Morley Mao Monday March 26, 2007 Acknowledgement: Some.
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.
19 – Multimedia Networking. Multimedia Networking7-2 Multimedia and Quality of Service: What is it? multimedia applications: network audio and video (“continuous.
User Control of Streaming Media: RTSP
Multimedia Streaming Protocols1 Multimedia Streaming: Jun Lu Xinran (Ryan) Wu CSE228 Multimedia Systems Challenges and Protocols.
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.
Voice Over Internet- Issues Dr. Abhay Karandikar Department of Electrical Engineering Indian Institute of Technology, Bombay. Dr. Abhay Karandikar Department.
Computer Networking Multimedia Fall 2011 Multimedia2 Outline Multimedia requirements Audio and Video Data Streaming Interactive Real-Time.
Multimedia Applications
1 CSE 401N Multimedia Networking Lecture Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video network provides.
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.
Media Streaming Protocols Presented by: Janice Ng and Yekaterina Tsipenyuk May 29 th, 2003 CSE 228: Multimedia Systems.
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.
Multimedia Computer Networks 10/02/02 Xavier Appé.
Computer Networking Multimedia.
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.
6: Multimedia Networking6a-1 Chapter 6: Multimedia Applications r Multimedia requirements r Streaming r Phone over IP r Recovering from Jitter and Loss.
Multimedia and QoS#1#1 Multimedia Applications. Multimedia and QoS#2#2 Multimedia Applications r Multimedia requirements r Streaming r Recovering from.
Ch 7. Multimedia Networking Myungchul Kim
7: Multimedia Networking7-1 Chapter 7 Multimedia Networking A note on the use of these ppt slides: We’re making these slides freely available to all (faculty,
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
Streaming Stored Audio and Video (1) and Video (1) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 4: Multimedia.
Quality of Service in the Internet The slides of part 1-3 are adapted from the slides of chapter 7 published at the companion website of the book: Computer.
Chapter 5: Summary r principles behind data link layer services: m error detection, correction m multiple access protocols m link layer addressing, ARP.
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.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
What is Multimedia? Function: noun plural but singular or plural in construction Date: 1950 : a technique (as the combining of sound, video, and text)
Multimedia, Quality of Service: What is it?
E Multimedia Communications Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Chapter 6 outline r 6.1 Multimedia Networking Applications r 6.2 Streaming stored audio and video m RTSP r 6.3 Real-time Multimedia: Internet Phone Case.
1 o characteristics – From an application-level API to the physical layer – CBR, VBR, ABR and UBR – Cell: bytes – Virtual circuits: virtual channel.
Making the Best of the Best-Effort Service (2) Advanced Multimedia University of Palestine University of Palestine Eng. Wisam Zaqoot Eng. Wisam Zaqoot.
1 Multimedia Networking R. Yang. 2 Outline r Admin. and review  Introduction to multimedia networking r An architecture of stored multimedia r Network.
CMPT365 Multimedia Systems 1 Multimedia Networking/Communications Spring 2015 CMPT 365 Multimedia Systems.
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
Multimedia streaming Application Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Querying.
Part 2: Making the Best of Best-Effort
Multimedia Networking Ashwin Bharambe Carnegie Mellon University Networking, Spring 2003 Tuesday, April 22, 2003.
Computer Networking Multimedia. 11/15/20052 Outline Multimedia requirements Streaming Phone over IP Recovering from Jitter and Loss RTP QoS Requirements.
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.
Ch 6. Multimedia Networking Myungchul Kim
BITM1113- Multimedia Systems
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
Multimedia Streaming I. Fatimah Alzahrani. Introduction We can divide audio and video services into three broad categories: streaming stored audio/video,
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 4: Multimedia.
Chapter 13: Multimedia and Networking BITM1113- Multimedia Systems.
19 – Multimedia Networking
Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Multimedia Applications
Chapter 25 Multimedia TCP/IP Protocol Suite
CSE679: Multimedia and Networking
CIS679: MPEG-2 Review of MPEG-1 MPEG-2 Multimedia and networking.
Multimedia Applications
Multimedia Applications
Presentation transcript:

CS640: Introduction to Computer Networks Aditya Akella Lecture 19 - Multimedia Networking

2 The Road Ahead Multimedia requirements –Streaming RTSP –Recovering from Jitter and Loss –RTP RTCP

3 Application Classes Typically sensitive to delay, but can tolerate packet loss (would cause minor glitches that can be concealed) Data contains audio and video content (“continuous media”), three classes of applications: –Streaming stored content –Unidirectional Real-Time –Interactive Real-Time

4 Application Classes (more) Streaming stored content –Clients request audio/video files from servers and pipeline reception over the network and display Interactive: user can control operation (similar to VCR: pause, resume, fast forward, rewind, etc.) –Streaming  start playing before all content arrives –Continuous playout: hard delivery constraints

5 Application Classes (more) Unidirectional Real-Time: –similar to existing TV and radio stations, but delivery on the network –Non-interactive, just listen/view –Delivery constraints still important Interactive Real-Time: –Phone conversation or video conference –More stringent delay requirement than Streaming and Unidirectional because of interactive nature –Video: < 150 msec acceptable –Audio: < 150 msec good, <400 msec acceptable

6 Multimedia Today Network is best-effort. But still… –Streaming applications delay of 5 to 10 seconds is typical and has been acceptable –Real-Time apps work well where there is plentiful bandwidth To mitigate impact of “best-effort” network and protocols, we can: –Use UDP, avoid TCP and its slow-start phase… –Buffer content at client, control playback, prefetch content to remedy delay variation –Adapt compression level to available bandwidth in the network –Send redundant information to make up for losses –Intelligent queueing tricks

7 Solution Approaches in IP Networks Just add more bandwidth enhance caching capabilities etc. (previous slide)! Need major change of the protocols : –Incorporate resource reservation (bandwidth, processing, buffering), and new scheduling policies –Set up service level agreements with applications, monitor and enforce the agreements, charge accordingly Need moderate changes (“Differentiated Services”): –Use two traffic classes for all packets and differentiate service accordingly –Charge based on class of packets –Network capacity is provided to ensure first class packets incur no significant delay at routers

8 Application Example: Streaming Important and growing application –Due to reduction of storage costs, increase in high speed net access from homes and enhancements to caching Audio/Video file is segmented and sent over either TCP or UDP –Web server –Streaming server Public segmentation protocol: Real-Time Protocol (RTP) User Interaction: Real-time Streaming protocol (RTSP)

9 Streaming Helper Application: displays content, which is typically requested via a Web browser; e.g. RealPlayer; typical functions: –Decompression –Jitter removal –Error correction: use redundant packets to be used for reconstruction of original stream –GUI for user control

10 Streaming From Web Servers Audio: in files sent as HTTP objects Video (interleaved audio and images in one file, or two separate files and client synchronizes the display) sent as HTTP object(s) A simple architecture is to have the Browser request the object(s) and after their reception pass them to the player for display - No pipelining

11 Streaming From Web Server Alternative: set up connection between server and player, then download Web browser requests and receives a Meta File (a file describing the object) instead of receiving the file itself; Browser launches the appropriate Player and passes it the Meta File; Player sets up a TCP connection with Web Server and downloads the file using HTTP

12 Using a Streaming Server This gets us around HTTP, allows use of UDP vs. TCP and the application layer protocol can be better tailored to Streaming; many enhancements options are possible … Separate out functionality

13 Options When Using a Streaming Server UDP: Server sends at a rate (Compression and Transmission) appropriate for client; to reduce jitter, Player buffers initially for 2-5 seconds, then starts display Use TCP, and sender sends at maximum possible rate under TCP; retransmit when error is encountered; Player uses a much large buffer to smooth delivery rate of TCP

14 Real Time Streaming Protocol (RTSP) For user to control display: rewind, fast forward, pause, resume, etc… Out-of-band protocol (uses two connections, one for control messages (Port 554) and one for media stream) As before, meta file is communicated to web browser which then launches the Player; –Meta file contains “presentation description file” which has information on the multi-media content

15 Presentation Description Example Xena: Warrior Princess <track type=audio e="PCMU/8000/1" src = "rtsp://audio.example.com/xena/audio.en/lofi"> <track type=audio e="DVI4/16000/2" pt="90 DVI4/8000/1" src="rtsp://audio.example.com/xena/audio.en/hifi"> <track type="video/jpeg" src="rtsp://video.example.com/twister/video">

16 RTSP Operation C: SETUP rtsp://audio.example.com/xena/audio RTSP/1.0 Transport: rtp/udp; compression; port=3056; mode=PLAY S: RTSP/ OK Session 4231 C: PLAY rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=0- (npt = normal play time) C: PAUSE rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=37 C: TEARDOWN rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 S: OK

17 Real-Time (Phone) Over IP’s Best- Effort Internet phone applications generate packets during talk spurts Bit rate is 8 KBytes, and every 20 msec, the sender forms a packet of 160 Bytes + a header The coded voice information is encapsulated into a UDP packet and sent out Packets may be arbitrarily delayed or lost –When to play back a chunk? –What to do with a missing chunk?

18 Removing “Jitter” Decision on when to play out a chunk affected by network “jitter” –Variation in queueing delays of chunks One option: ignore jitter and play chunks as and when they arrive –Can become highly unintelligible, quickly But jitter can be handled using: –sequence numbers –time stamps –delaying playout

19 Fixed Playout Delay Trade-off between lost packets and large delays Can make play-out even better with “adaptive play- out”

20 Recovery From Packet Loss Loss interpreted in a broad sense: packet never arrives or arrives later than its scheduled playout time Since retransmission is inappropriate for Real Time applications, FEC or Interleaving are used to reduce loss impact and improve quality FEC is Forward Error Correction –Simplest FEC scheme adds a redundant chunk made up of exclusive OR of a group of n chunks Can reconstruct if at most one lost chunk –Redundancy is 1/n, bad for small n –Also, play out delay is higher

21 Another FEC Mechanism Send a low resolution audio stream as redundant information Upon loss, playout available redundant chunk –Albeit a lower quality one With one redundant low quality chunk per chunk, scheme can recover from single packet losses

22 Piggybacking Lower Quality Stream

23 Interleaving Divide 20 msec of audio data into smaller units of 5 msec each and interleave Upon loss, have a set of partially filled chunks Has no redundancy, but can cause delay in playout beyond Real Time requirements

24 Real-Time Protocol (RTP) Provides standard packet format for real-time application Application-level; Typically runs over UDP Specifies header fields for identifying payload type, detecting packet loss, accounting for jitter etc. Payload Type: 7 bits, providing 128 possible different types of encoding; eg PCM, MPEG2 video, etc. Sequence Number: 16 bits; used to detect packet loss

25 Real-Time Protocol (RTP) Timestamp: 32 bytes; gives the sampling instant of the first audio/video byte in the packet; used to remove jitter introduced by the network Synchronization Source identifier (SSRC): 32 bits; an id for the source of a stream; assigned randomly by the source

26 RTP Control Protocol (RTCP) Protocol specifies report packets exchanged between sources and destinations of multimedia information Three reports are defined: Receiver reception, Sender, and Source description Reports contain statistics such as the number of packets sent, number of packets lost, inter-arrival jitter Used to modify sender transmission rates and for diagnostics purposes

27 RTCP Bandwidth Scaling If each receiver sends RTCP packets to all other receivers, the traffic load resulting can be large RTCP adjusts the interval between reports based on the number of participating receivers Typically, limit the RTCP bandwidth to 5% of the session bandwidth, divided between the sender reports (25%) and the receivers reports (75%)