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



Similar documents
Digital Audio and Video Data

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

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

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

Classes of multimedia Applications

Basic principles of Voice over IP

Multimedia Networking and Network Security

internet technologies and standards

Requirements of Voice in an IP Internetwork

Multimedia Networking. Yao Wang Polytechnic University, Brooklyn, NY11201

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

Multimedia Networking. Yao Wang Polytechnic University, Brooklyn, NY11201

Internet Services & Protocols Multimedia Applications, Voice over IP

Clearing the Way for VoIP

Multimedia Communications Voice over IP

Combining Voice over IP with Policy-Based Quality of Service

Internet Services & Protocols Multimedia Applications, Voice over IP

An Introduction to VoIP Protocols

Final for ECE374 05/06/13 Solution!!

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

QoS issues in Voice over IP

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

IAB CONCERNS ABOUT CONGESTION CONTROL. Iffat Hasnian

Chapter 3 ATM and Multimedia Traffic

An Analysis of Error Handling Techniques in Voice over IP

Mobile VoIP: Managing, scheduling and refining voice packets to and from mobile phones

Voice over IP: RTP/RTCP The transport layer

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

Unit 23. RTP, VoIP. Shyam Parekh

Encapsulating Voice in IP Packets

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

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

Evaluating Data Networks for Voice Readiness

15-441: Computer Networks Homework 2 Solution

Computer Networks Homework 1

Adaptive Playout for VoIP based on the Enhanced Low Delay AAC Audio Codec

Multimedia Requirements. Multimedia and Networks. Quality of Service

TDM services over IP networks

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

A New Adaptive FEC Loss Control Algorithm for Voice Over IP Applications

Project Code: SPBX. Project Advisor : Aftab Alam. Project Team: Umair Ashraf (Team Lead) Imran Bashir Khadija Akram

Experiments of Real-Time MPEG Audio over the Internet

Application Note How To Determine Bandwidth Requirements

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

Voice over IP. Overview. What is VoIP and how it works. Reduction of voice quality. Quality of Service for VoIP

Real-time apps and Quality of Service

ANALYSIS OF LONG DISTANCE 3-WAY CONFERENCE CALLING WITH VOIP

Understanding Latency in IP Telephony

Voice over IP (VoIP) for Telephony. Advantages of VoIP Migration for SMBs BLACK BOX blackbox.com

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

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

MULTI-STREAM VOICE OVER IP USING PACKET PATH DIVERSITY

White paper. Latency in live network video surveillance

QoS and the Advantages of Multimedia over IP

A study of Skype over IEEE networks: voice quality and bandwidth usage

Voice over Internet Protocol (VoIP) systems can be built up in numerous forms and these systems include mobile units, conferencing units and

Solutions to the Sample Questions on Introduction

Network administrators must be aware that delay exists, and then design their network to bring end-to-end delay within acceptable limits.

Latency on a Switched Ethernet Network

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

Multiple Choice Questions

Active Queue Management for Real-time IP Traffic

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

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

Lost Packets Recovery during Video Broadcasting Over Data Network

VoIP Bandwidth Considerations - design decisions

Configuration Guide. T.38 Protocol in AOS L1-29.1D September 2011

Curso de Telefonía IP para el MTC. Sesión 2 Requerimientos principales. Mg. Antonio Ocampo Zúñiga

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

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

Measurement of IP Transport Parameters for IP Telephony

COMPARISONS OF FEC AND CODEC ROBUSTNESS ON VOIP QUALITY AND BANDWIDTH EFFICIENCY

SIP Trunking and Voice over IP

Access Control: Firewalls (1)

Transfer and Control Protocols H.261. Standards of ITU

Introduction to VoIP. 陳 懷 恩 博 士 助 理 教 授 兼 計 算 機 中 心 資 訊 網 路 組 組 長 國 立 宜 蘭 大 學 資 工 系 TEL: # 340

TCP and Wireless Networks Classical Approaches Optimizations TCP for 2.5G/3G Systems. Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

DVoIP: DYNAMIC VOICE-OVER-IP TRANSFORMATIONS FOR QUALITY OF SERVICE IN BANDWIDTH CONSTRAINED ENVIRONMENTS

VoIP Bandwidth Calculation

Improving the Performance of TCP Using Window Adjustment Procedure and Bandwidth Estimation

Architecture and Performance of the Internet

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

QoS in VoIP. Rahul Singhai Parijat Garg

2.1 Introduction. 2.2 Voice over IP (VoIP)

QoS Issues for Multiplayer Gaming

VOICE OVER IP AND NETWORK CONVERGENCE

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Broadband Quality of Service Experience (QoSE)

Chapter 2 Voice over Internet Protocol

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

VoIP Network Dimensioning using Delay and Loss Bounds for Voice and Data Applications

Comparison of Voice over IP with circuit switching techniques

STANDPOINT FOR QUALITY-OF-SERVICE MEASUREMENT

How To Provide Qos Based Routing In The Internet

Optimal Bandwidth Monitoring. Y.Yu, I.Cheng and A.Basu Department of Computing Science U. of Alberta

Question: 3 When using Application Intelligence, Server Time may be defined as.

Glossary of Terms and Acronyms for Videoconferencing

Authors Mário Serafim Nunes IST / INESC-ID Lisbon, Portugal mario.nunes@inesc-id.pt

Mobile Communications Chapter 9: Mobile Transport Layer

Transcription:

Multimedia Communication Multimedia Systems(Module 5 Lesson 2) Summary: H Internet Phone Example Making the Best use of Internet s Best-Effort Service. Sources: H Chapter 6 from Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross Best of Best-Effort: Internet Phone The Scenario (Similar to application category 3): H The speaker generates an audio signal consisting of alternating talk spurts and silent periods. H To conserve bandwidth, the application only generates packets during talk spurts. During a talk spurt the sender generates bytes at a rate of 8 Kbytes per second, and every 20 milliseconds the sender gathers bytes into chunks. Number of bytes in a chunk is (20 msecs) (8 Kbytes/sec) = 160 bytes. A special header is attached to each chunk (!Think RTP!). H The chunk and its header are encapsulated in a UDP segment, and then the UDP datagram is sent into the socket interface. Thus, during a talk spurt, a UDP segment is sent every 20 msec. Scenario Figure Sender 20 ms talkspurt Chunk : 160 bytes time Sender UDP segment transmit header

Internet Phone Scenario Contd. H H If each packet makes it to the receiver and has a small constant end-to-end delay, then packets arrive at the receiver periodically every 20 msec during a talk spurt. Ideally, the receiver can simply play back each chunk as soon as it arrives. Unfortunately, some packets can be lost and most packets will not have the same end-to-end delay, even in a lightly congested Internet. Therefore, the receiver must take more care in determining when to play back a chunk, and determining what to do with a missing chunk. Limitations of Best-Effort Service H Packet Loss The UDP datagram traverses intermediate routers buffers/queues. An datagram may find that the intermediate router has its queue/buffer full: The router drops the datagram Why not use TCP? Retransmissions!! Depending on how the audio is coded (maybe with redundancy) we can tolerate losses of 1%-20%. H End-to-End Delay Transmission processing delay + queuing delay + Propagation delay + end-system processing delay. Acceptable for voice communication: 400 ms. H Delay Jitter Inter-packet delay at sender is 20 ms. Inter-packet arrival times at receiver may be greater than or less than 20 ms. If the receiver plays as it receives the audio quality suffers. A. Removing Jitter at Receiver Can be done by combining the following three mechanisms: H Prefacing each chunk with a sequence number The sender increments the sequence number by one for each packet it generates. H Prefacing each chunk with a timestamp The sender stamps each chunk with the time at which the chunk was generated. H Delaying playout The playout delay must be long enough so that most of the packets are received before their scheduled playout times. Packets that do not arrive before their scheduled playout times are considered lost. The playout delay may be a constant throughout the duration of the conference, or it may vary adaptively during the conference.

Constant Playout Delay Strategy: The receiver attempts to playout each chunk exactly q ms after the chunk is generated (timestamp). H Good choice of q : ( 400 ms ) If there are large variations in end-to-end delay, it is preferable to use a large value of q; On the other hand if the variations in delay are small then a small value of q is prefered (perhaps less than 150ms) H Tradeoff between playout delay and packet loss: p-r playout schedule: H The 4 th packet misses its scheduled playout time p -r playout schedule: H All packets arrive Adaptive Playout Delay Motivation: Minimize the playout delay subject to the constraint that the loss be below a few percent. Strategy: Estimate the network delay and the variance of the network delay and adjust the playout delay accordingly at the beginning of each talkspurt. A Generic Algorithm Let t i = timestamp of the i th packet r i = the time at which packet is received by the receiver p i = the time at which packet is played at the receiver So, end-to-end delay for packet i is r i - t i Let d i denote an estimate of the average network delay upon receipt of the i th packet Derive, d i = (1-u) d i-1 + u (r i -t i ) where, u is a fixed constant (e.g. 0.01) d is a smoothed average of the observed network delays r 1 -t 1,, r i -t i Adaptive Playout Delay A Generic Algorithm(Contd.) Let v i denote an estimate of the average deviation of the observed network delay from the estimated average delay. Derive, v i = (1-u) v i-1 + u r i t i -d i The estimates d i and v i are calculated for every packet received, although they are only used to determine the playout point for the first packet in a talkspurt.

Adaptive Playout Delay Receiver Playout Algorithm: H If packet i is the first packet of a talkspurt, its playout time is: p i = t i + d i + Kv i Where K is a +ve constant (e.g., K=4). The Kv i term is to set the playout time far enough into the future so that only a small fraction of packets in the talkspurt will be lost due to late arrivals. H The playout point for any subsequent packet in a talkspurt is given by: p j = t j + q i where, q i = p i -t i, is the length of time from when the first packet of the talkspurt to which paket j belongs is generated until it is played out. H How do you find out if a packet i is the first packet of a talkspurt? H Compare the timestamps of the i-1 th and i th packet: if t i -t i-1 > 20 ms then the packet is the first in a talkspurt H What if one of the packets within a talkspurt is lost? then the timestamp difference between the two packets adjacent to the lost packet may differ by > 20 ms H Use the sequence number to detect whether the difference of more than 20 ms is due to a new talkspurt or a lost packet. B. Recovering from Packet Loss A packet is lost if either it never arrives at the receiver or it arrives after its scheduled playout time. Three Approaches: H Forward Error Correction (FEC) Idea: Add redundant information to the original packet stream. Used in FreePhone and RAT (a MBONE audio conf. tool) H Interleaving Idea: Interleave (reorder the sequence) the media so that originally adjacent units are separated by a certain distance in the transmitted stream. H Receiver-Based Repair Idea: Receiver attempts to produce a replacement for a lost packet that is similar to the original. FEC Mechanism 1: H Sends one redundant encoded chunk after every n chunks. H The redundant chunk is obtained by exclusive OR-ing the n original chunks If any one packet of the group of n + 1 packets is lost, the receiver can fully reconstruct the lost packet. If two or more packets in a group are lost, the receiver cannot reconstruct the lost packets. By keeping n + 1, the group size, small, a large fraction of the lost packets can be recovered when loss is not excessive. Smaller the group size, greater the relative increase of the transmission rate of the audio stream. In particular, the transmission rate increases by a factor of 1/n; for example, if n = 3, then the transmission rate increases by 33%. H This simple scheme increases the playout delay, as the receiver must wait to receive the entire group of packets before it can begin playout.

FEC Mechanism 2: H Send a lower-resolution audio stream as the redundant information. For example, the sender might create a nominal audio stream and a corresponding low-resolution low-bit rate audio stream. (The nominal stream could be a PCM encoding at 64 Kbps and the lower-quality stream could be a GSM encoding at 13 Kbps.) H The low-bit-rate stream is referred to as the redundant stream. H The sender constructs the nth packet by taking the nth chunk from the nominal stream and appending to it the (n -1)stchunk from the redundant stream. FEC Mechanism 2 (Contd.): H If there is nonconsecutive packet loss, the receiver can conceal the loss by playing out the low-bit-rate encoded chunk that arrives with the subsequent packet. H The receiver only has to receive two packets before playback, so that the increased playout delay is small. H If the low-bit-rate encoding is much less than the nominal encoding, then the marginal increase in the transmission rate will be small. Interleaving H Interleaving can mitigate the effect of packet losses. If, for example, units are 5 msec in length and chunks are 20 msec (that is, 4 units per chunk), then the first chunk could contain units 1, 5, 9, 13; the second chunk could contain units 2, 6, 10, 14; and so on.

Interleaving (Contd.) H The loss of a single packet (see figure) from an interleaved stream results in multiple small gaps in the reconstructed stream, as opposed to the single large gap that would occur in a non-interleaved stream. H The obvious disadvantage of interleaving is that it increases latency. This limits its use for interactive applications such as Internet phone, although it can perform well for streaming stored audio. H A major advantage of interleaving is that it does not increase the bandwidth requirements of a stream.