Classes of multimedia Applications



Similar documents
Digital Audio and Video Data

Lecture 33. Streaming Media. Streaming Media. Real-Time. Streaming Stored Multimedia. Streaming Stored Multimedia

Streaming Stored Audio & Video

Voice-Over-IP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

internet technologies and standards

Multimedia Networking. Yao Wang Polytechnic University, Brooklyn, NY11201

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross

Mul$media Networking. #3 Mul$media Networking Semester Ganjil PTIIK Universitas Brawijaya. #3 Requirements of Mul$media Networking

Transfer and Control Protocols H.261. Standards of ITU

3.2: Transfer and Control Protocols Multimedia Operating Systems. The H.x Protocols Chapter 4: Multimedia Systems

IP-Telephony Real-Time & Multimedia Protocols

Internet Services & Protocols Multimedia Applications, Voice over IP

Advanced Networking Voice over IP: RTP/RTCP The transport layer

Internet Services & Protocols Multimedia Applications, Voice over IP

Multimedia Networking and Network Security

Voice over IP: RTP/RTCP The transport layer

Audio and Video for the Internet

QOS Requirements and Service Level Agreements. LECTURE 4 Lecturer: Associate Professor A.S. Eremenko

Multimedia Communications Voice over IP

Unit 23. RTP, VoIP. Shyam Parekh

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

EDA095 Audio and Video Streaming

IP (RTP, RTCP, SIP, RSTP)

Bandwidth Adaptation for MPEG-4 Video Streaming over the Internet

Encapsulating Voice in IP Packets

(Refer Slide Time: 01:46)

Basic principles of Voice over IP

An Introduction to VoIP Protocols

point to point and point to multi point calls over IP

Application Note. IPTV Services. Contents. TVQM Video Quality Metrics Understanding IP Video Performance. Series. Overview. Overview...

An Analysis of Error Handling Techniques in Voice over IP

RTP / RTCP. Announcements. Today s Lecture. RTP Info RTP (RFC 3550) I. Final Exam study guide online. Signup for project demos

Lost Packets Recovery during Video Broadcasting Over Data Network

Chapter 7: Multimedia Networking. Chapter 7: Multimedia Networking. Contents: Multimedia, QoS, CDN, P2P. Multimedia. Multimedia Networking Map

Computer Networks. Voice over IP (VoIP) Professor Richard Harris School of Engineering and Advanced Technology (SEAT)

An architecture for the delivery. of DVB services over IP networks Rennes, January 2007 INTRODUCTION DIGITAL VIDEO TRANSPORT

Clearing the Way for VoIP

Final for ECE374 05/06/13 Solution!!

Introduction to VoIP. 陳 懷 恩 博 士 副 教 授 兼 所 長 國 立 宜 蘭 大 學 資 訊 工 程 研 究 所 TEL: # 255

Internet Working 15th lecture (last but one) Chair of Communication Systems Department of Applied Sciences University of Freiburg 2005

Chapter 3 ATM and Multimedia Traffic

Requirements of Voice in an IP Internetwork

Network Traffic #5. Traffic Characterization

Protocols. Packets. What's in an IP packet

7 Streaming Architectures

Network Service Model. What Transport Services Does an App Need?

White paper. Latency in live network video surveillance

Methods for Mitigating IP Network Packet Loss in Real Time Audio Streaming Applications

Combining Voice over IP with Policy-Based Quality of Service

Performance Evaluation of AODV, OLSR Routing Protocol in VOIP Over Ad Hoc

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Strategies. Addressing and Routing

VoIP Bandwidth Calculation

Voice over IP (VoIP) Overview. Introduction. David Feiner ACN Introduction VoIP & QoS H.323 SIP Comparison of H.323 and SIP Examples

Application Note. IPTV Services. Contents. Title Managing IPTV Performance Series IP Video Performance Management. Overview IPTV Services...

Performance Evaluation of VoIP Services using Different CODECs over a UMTS Network

Voice over IP. Presentation Outline. Objectives

Introduction VOIP in an Network VOIP 3

Transport and Network Layer

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

technology standards and protocol for ip telephony solutions

Glossary of Terms and Acronyms for Videoconferencing

Goal We want to know. Introduction. What is VoIP? Carrier Grade VoIP. What is Meant by Carrier-Grade? What is Meant by VoIP? Why VoIP?

Frequently Asked Questions

Active Queue Management for Real-time IP Traffic

Applied Networks & Security

2.1 Introduction. 2.2 Voice over IP (VoIP)

VoIP Bandwidth Considerations - design decisions

The Picture must be Clear. IPTV Quality of Experience

Design and implementation of IPv6 multicast based High-quality Videoconference Tool (HVCT) *

Multimedia Requirements. Multimedia and Networks. Quality of Service

VOICE over IP H.323 Advanced Computer Network SS2005 Presenter : Vu Thi Anh Nguyet

Network Security Systems Fundamentals for ITS Professionals

QoS and the Advantages of Multimedia over IP

Voice Over IP. Priscilla Oppenheimer

Application Note How To Determine Bandwidth Requirements

Outline Computer Networking Lecture 25: Last Mile Technologies Peter Steenkiste. Fall

Understanding Latency in IP Telephony

Network Simulation Traffic, Paths and Impairment

Applications that Benefit from IPv6

Getting Started with. Avaya TM VoIP Monitoring Manager

Quality of Service Management for Teleteaching Applications Using the MPEG-4/DMIF

Comparison of Voice over IP with circuit switching techniques

TDM services over IP networks

Key Components of WAN Optimization Controller Functionality

QoS issues in Voice over IP

VoIP Analysis Fundamentals with Wireshark. Phill Shade (Forensic Engineer Merlion s Keep Consulting)

VoIP QoS. Version 1.0. September 4, AdvancedVoIP.com. Phone:

15-441: Computer Networks Homework 2 Solution

TCP over Multi-hop Wireless Networks * Overview of Transmission Control Protocol / Internet Protocol (TCP/IP) Internet Protocol (IP)

Transcription:

Classes of multimedia Applications Streaming Stored Audio and Video Streaming Live Audio and Video Real-Time Interactive Audio and Video Others

Class: Streaming Stored Audio and Video The multimedia content has been prerecorded and stored on a server User may pause, rewind, forward, etc The time between the initial request and display start can be 1 to 10 seconds Constraint: after display start, the playout must be continuous

Class: Streaming Live Audio and Video Similar to traditional broadcast TV/radio, but delivery on the Internet Non-interactive just view/listen Can not pause or rewind Often combined with multicast The time between the initial request and display start can be up to 10 seconds Constraint: like stored streaming, after display start, the playout must be continuous

Class: Real-Time Interactive Audio and Video Phone conversation/video conferencing Constraint: delay between initial request and display start must be small Video: <150 ms acceptable Audio: <150 ms not perceived, <400 ms acceptable Constraint: after display start, the playout must be continuous

Class: Others Multimedia sharing applications Download-and-then-play applications E.g. Napster, Gnutella, Freenet Distance learning applications Coordinate video, audio and data Typically distributed on CDs

Outlines Classes of multimedia applications Requirements/Constraints Problems with today s s Internet and solutions Common multimedia protocols RTP, RTCP Accessing multimedia data through a web server

Challenge TCP/UDP/IP suite provides best-effort, no guarantees on expectation or variance of packet delay Performance deteriorate if links are congested (transoceanic) Most router implementations use only First-Come-First-Serve (FCFS) packet processing and transmission scheduling

Problems and solutions Limited bandwidth Solution: Compression Packet Jitter Solution: Fixed/adaptive playout delay for Audio (example: phone over IP) Packet loss Solution: FEC, Interleaving

Problem: Limited bandwidth Intro: Digitalization Audio x samples every second (x=frequency) The value of each sample is rounded to a finite number of values (for example 256). This is called quantization Video Each pixel has a color Each color has a value

Problem: Limited bandwidth Need for compression Audio CD quality: 44100 samples per seconds with 16 bits per sample, stereo sound 44100*16*2 = 1.411 Mbps For a 3-minute song: 1.441 * 180 = 254 Mb = 31.75 MB Video For 320*240 images with 24-bit colors 320*240*24 = 230KB/image 15 frames/sec: 15*230KB = 3.456MB 3 minutes of video: 3.456*180 = 622MB

Audio compression Several techniques GSM (13 kbps), G.729(8 kbps), G723.3(6.4 and 5.3kbps) MPEG 1 layer 3 (also known as MP3) Typical compress rates 96kbps, 128kbps, 160kbps Very little sound degradation If file is broken up, each piece is still playable Complex (psychoacoustic masking, redundancy reduction, and bit reservoir buffering) 3-minute song (128kbps) : 2.8MB

Image compression: JPEG Divide digitized image in 8x8 pixel blocks Pixel blocks are transformed into frequency blocks using DCT (Discrete Cosine Transform). This is similar to FFT (Fast Fourier Transform) The quantization phase limits the precision of the frequency coefficient. The encoding phase packs this information in a dense fashion

JPEG Compression

Video compression Popular techniques MPEG 1 for CD-ROM quality video (1.5Mbps) MPEG 2 for high quality DVD video (3-6 Mbps) MPEG 4 for object-oriented video compression

Video Compression: MPEG MPEG uses inter-frame encoding Exploits the similarity between consecutive frames Three frame types I frame: independent encoding of the frame (JPEG) P frame: encodes difference relative to I-frame (predicted) B frame: encodes difference relative to interpolated frame Note that frames will have different sizes Complex encoding, e.g. motion of pixel blocks, scene changes, Decoding is easier then encoding MPEG often uses fixed-rate encoding I B B P B B P B B I B B P B B

MPEG Compression (cont.)

MPEG System Streams Combine MPEG video and audio streams in a single synchronized stream Consists of a hierarchy with meta data at every level describing the data System level contains synchronization information Video level is organized as a stream of group of pictures Group of pictures consists of pictures Pictures are organized in slices

MPEG System Streams (cont.)

MPEG System Streams (cont.)

Problem: Packet Jitter Jitter: Variation in delay Sender No jitter 6 5 4 3 2 1 Receiver Jitter 5 6 4 3 2 1 Example pkt 6 pkt 5

Dealing with packet jitter How does Phone over IP applications limit the effect of jitter? A sequence number is added to each packet A timestamp is added to each packet Playout is delayed

Dealing with packet jitter Fixed playout delay Fixed playout delay

Dealing with packet jitter Adaptive playout delay Objective is to use a value for p-r that tracks the network delay performance as it varies during a transfer. The following formulas are used: Where d i = (1-u)d i-1 + u(r i t i ) ν i = (1-u)ν i-1 + u r i -t i -d i u=0.01 for example t i is the timestamp of the ith packet (the time pkt i is sent) r i is the time packet i is received p i is the time packet i is played d i is an estimate of the average network delay ν i is an estimate of the average deviation of the delay from the estimated average delay

Problem: Packet loss Loss is in a broader 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.

Recovering from packet loss Forward Error Correction Send redundant encoded chunk every n chunks (XOR original n chunks) If 1 packet in this group lost, can reconstruct If >1 packets lost, cannot recover Disadvantages The smaller the group size, the larger the overhead Playout delay increased

Recovering from packet loss Piggybacking Lo-fi stream With one redundant low quality chunk per chunk, scheme can recover from single packet losses

Recovering from packet loss 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

Recovering from packet loss Receiver-based Repair The simplest form: Packet repetition Replaces lost packets with copies of the packets that arrived immediately before the loss A more computationally intensive form: Interpolation Uses Audio before and after the loss to interpolate a suitable packet to cover the loss

Movie Time

Outlines Difference with classic applications Classes of multimedia applications Requirements/Constraints Problems with today s Internet and solutions Common multimedia protocols RTP, RTCP Accessing multimedia data through a web server

Real Time Protocol (RTP) RTP logically extends UDP Sits between UDP and application Implemented as an application library What does it do? Framing Multiplexing Synchronization Feedback (RTCP)

RTP packet format 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

RTP packet format (cont) 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

Timestamp vs. Sequence No Timestamps relates packets to real time Timestamp value sampled from a media specific clock Sequence number relates packets to other packets

Audio silence example Consider audio data type What do you want to send during silence? Not sending anything Why might this cause problems? Other side needs to distinguish between loss and silence Receiver uses Timestamps and sequence No. to figure out what happened

RTP Control Protocol (RTCP) Used in conjunction with RTP. Used to exchange control information between the sender and the receiver. 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 Typically, limit the RTCP bandwidth to 5%. Approximately one sender report for three From receiver Xavier Appé, reports modified by C. Pham for educational purpose only

Outlines Difference with classic applications Classes of multimedia applications Requirements/Constraints Problems with today s Internet and solutions Common multimedia protocols RTP, RTCP Accessing multimedia data through a web server

Streaming Stored Multimedia Example Audio/Video file is segmented and sent over either TCP or UDP, public segmentation protocol: Real-Time Protocol (RTP) User interactive control is provided, e.g. the public protocol Real Time Streaming Protocol (RTSP)

Streaming Stored Multimedia Example 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

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

Streaming from a Web Server (cont) 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 a streaming server Server and downloads the file

Using a Streaming Server

Options when using a streaming server Use UDP, and 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

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) RFC 2326 permits use of either TCP or UDP for the control messages connection, sometimes called the RTSP Channel As before, meta file is communicated to web browser which then launches the Player; Player sets up an RTSP connection for control messages in addition to the connection for the streaming media

Meta File Example <title>twister</title> <session> <group language=en lipsync> <switch> <track type=audio e="pcmu/8000/1" src = "rtsp://audio.example.com/twister/audio.en/lofi"> <track type=audio e="dvi4/16000/2" pt="90 DVI4/8000/1" src="rtsp://audio.example.com/twister/audio.en/hifi"> </switch> <track type="video/jpeg" src="rtsp://video.example.com/twister/video"> </group> </session>

RTSP Operations C: S: C: TEARDOWN PLAY PAUSE RTSP/1.0 SETUP rtsp://audio.example.com/twister/audio.en/lofi 200 1 OK RTSP/1.0 Transport: Session: 4231 rtp/udp; Range: npt=0- npt=37 compression; port=3056; mode=play