Copyright 2003-2010 © by Elliot Eichen. All rights reserved. RTP – Real Time Protocol (and RTCP)

Slides:



Advertisements
Similar presentations
Voice over IP.
Advertisements

Speech Processing for NSR Vs DSR Veeru Ramaswamy PhD CTO, Vianix LLC
N Team 15: Final Presentation Peter Nyberg Azadeh Bararsani Adie Tong N N multicodec minisip.
SG2001_VIP.ppt Page 1 PLANET Technology Corp. Product Guide 2001 VoIP Products Your Voice over Internet By Product Department.
Media: Voice and Video in your SIP Environment Jitendra Shekhawat.
© 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 3 - Encapsulating Voice Packets for Transport.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 2: Cisco VoIP Implementations.
CCNA Voice Official exam Certification
Simulation 1: Calculate the total bandwidth required for a VoIP call
User Control of Streaming Media: RTSP
2.4: Calculating Bandwidth Requirements for VoIP
TEL500-Voice Communications Session initiation protocol improvement using inter- asterisk exchange Devesh Mendiratta & Sameer Deshmukh MS-Telecommunication.
Speech codecs and DCCP with TFRC VoIP mode Magnus Westerlund
© 2006 AudioCodes Ltd. All rights reserved. AudioCodes Confidential Proprietary Signal Processing Technologies in Voice over IP Eli Shoval Audiocodes.
COMMUNICATION TECHNOLOGY by Shashi Bhushan School of Computer and Information Sciences.
Voice over the Internet (the basics) CS 7270 Networked Applications & Services Lecture-2.
PROJECT PRESENTATION “ Analyzing Factors that affect VoIP Call Quality ” Presented By: Vamsi Krishna Karnati 11/24/2014.
Abdellatif O. Abdellatif Sudatel Telecom Group Voice Over IP.
© 2006 Cisco Systems, Inc. All rights reserved. 2.3: Encapsulating Voice Packets for Transport.
VoIP Voice Transmission Over Data Network. What is VoIP?  A method for Taking analog audio signals Turning audio signals into digital data Digital data.
CS158B Project By Shing Chau Jerry Ko Ying Li
© 2006 Cisco Systems, Inc. All rights reserved. 2.2: Digitizing and Packetizing Voice.
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.
Voice over IP (VoIP) Hani Al Ruwaili Abdulkrem Al Zhrani Prepared for Dr. Samir Ghadhban.
A Study on Quality of Service Issues in Internet Telephony  IP Telephony – Applications and Services  Advantages and benefits of Voice over IP  Technical.
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.
Multimedia Networking Sound, Video. Applications Downloadable files Streaming Video Streaming Audio VoIP (Voice over IP) –Internet Phone.
VOIP ENGR 475 – Telecommunications Harding University November 16, 2006 Jonathan White.
1 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Public IP Telephony Introduction to VoIP Cisco Networking Academy Program.
What is VoIP?. PC-to-PC telephone call – no PSTN Tandem switch replacement (with or w/or IP) – Interexchange carriers. Copyright © by Elliot.
© 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks.
3. VoIP Concepts.
Cisco Unified Communications Manager (CUCM)
Copyrights © All rights Reserved. Asterisk and VoIP issues Chetan Vaity March 2007.
Computer Networks: Multimedia Applications Ivan Marsic Rutgers University Chapter 3 – Multimedia & Real-time Applications.
1 VoIP – Voice over Internet Protocol Patrick Hügenell, Andreas Vetter – TIM01AGR – 2003 VoIP Voice over IP.
Performance Evaluation of VoIP in Different Settings Tom Christiansen Ioannis Giotis Shobhit Raj Mathur.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 3 – VoIP: An Overview.
Introduction to Quality of Service. Engineering Internet QoS2  What is QoS?  Why QoS?  Large Bandwidth vs QoS?  Networking Trends Leading to QoS 
Voice over IP Why Challenges/solutions Voice codec and packet delay.
Network Instruments VoIP Analysis. VoIP Basics  What is VoIP?  Packetized voice traffic sent over an IP network  Competes with other traffic on the.
Voice Over Internet Protocol (VoIP). Basic Components of a Telephony Network.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 2: Cisco VoIP Implementations.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 2: Cisco VoIP Implementations.
Voice Design Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
1 o characteristics – From an application-level API to the physical layer – CBR, VBR, ABR and UBR – Cell: bytes – Virtual circuits: virtual channel.
ﺑﺴﻢﺍﷲﺍﻠﺭﺣﻣﻥﺍﻠﺭﺣﻳﻡ. Group Members Nadia Malik01 Malik Fawad03.
Data and Computer Communications Chapter 11 – Asynchronous Transfer Mode.
© 2006 Cisco Systems, Inc. All rights reserved. Optimizing Converged Cisco Networks (ONT) Module 3: Introduction to IP QoS.
ACT Week 11 Version 1 Feb 2005Slide & Voice over packet transport technologies Format of lecture: Follow.
LOG Objectives  Describe some of the VoIP implementation challenges such as Delay/Latency, Jitter, Echo, and Packet Loss  Describe the voice encoding.
Developing Applications with Host Media Processing David Asher.
Ch 6. Multimedia Networking Myungchul Kim
CSE5803 Advanced Internet Protocols and Applications (14) Introduction Developed in recent years, for low cost phone calls (long distance in particular).
Ch 6. Multimedia Networking Myungchul Kim
August 3-4, 2004 San Jose, CA Successfully Offering VoIP- Enabled Applications Services Jan Linden Vice President of Engineering.
3/10/2016 Subject Name: Computer Networks - II Subject Code: 10CS64 Prepared By: Madhuleena Das Department: Computer Science & Engineering Date :
The Internet and Real-Time Applications Identifying Voice Transmission and Switching Issues for Packet Data Networks S. Wood Nov Copyright 2006 Modern.
Multimedia Communication Systems Techniques, Standards, and Networks Chapter 6 Multimedia Communication Across Networks.
Networked Multimedia Basics. Network Characteristics.
Cisco Networking Academy Program
VoIP ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts.
Protocols and the TCP/IP Suite Overview and Discussion
Cisco Unity Connection
Voice over IP Presentation on Voice over IP Telecommunication and Computer Networks Presenter: Subash Chandra Pakhrin (072MSI616) MSC in Infromation and.
VOICE AND VIDEO OVER IP VOIP, RTP, RSVP.
Introduction to Networking
Cisco Networking Academy Program
Cisco Networking Academy Program
VoIP—Voice over Internet Protocol
Presentation transcript:

Copyright © by Elliot Eichen. All rights reserved. RTP – Real Time Protocol (and RTCP)

Copyright © by Elliot Eichen. All rights reserved. RTP Signaling can be mediated by devices in the middle of the network (SIP Proxies, softswitches, gatekeepers, etc.). –For SIP, this is the typical call flow. (draw ex.) –For H323, gatekeeper direct is typical, which means signaling typically happens between endpoints. (draw ex.) RTP (media) often occurs between the endpoints, although there are important instances where this is not the case. –Some enterprise (cisco call manager): firewall issue –Blind re-file (wholesale)

Copyright © by Elliot Eichen. All rights reserved. RTP RTP – carries real time data. RTPC – control port that carries information to monitor quality of service. +1 port

Copyright © by Elliot Eichen. All rights reserved. Voice Codecs – Bandwidth Consumption Pulse Code Modulation CodecBuffer Layer 3 (RTP/UDP/IP) +Layer 2 Encapsulation Analog waveform 64 kbps 6-16 kbps ~10-40 msec 40 bytes/sec Physical Layer (wire)

Copyright © by Elliot Eichen. All rights reserved. How this all works?

Copyright © by Elliot Eichen. All rights reserved. How this all works? (2)

Copyright © by Elliot Eichen. All rights reserved. Bandwidth requirement: G729 Example For G729, voice is 8 kbits/sec. Assume 20ms payload. Packet payload size = 8 kbits/sec X 20ms = 160 bits = 20 bytes/packet. IP Packet = 60 bytes. For Cisco HDLC (cisco-cisco router serial), add 5 bytes header, 3 bytes trailer. Bandwidth = (63 bytes/20ms)*(8 bits/byte) = 25.2 kbps Efficiency = 8 kb/s / 25.2 kb/s ~ 32%. Number of packets/sec = 1sec/.02sec. Loss of 1 packet/sec = 2% packet loss! ΔDelay = buffer (20ms) + codec delay + layer2/3 delay + queuing delay + codec delay IP 20 bytes UDP 8 bytes RTP 12 bytes G729 Payload 20 bytes IP 20 bytes UDP 8 bytes RTP 12 bytes G729 Payload 20 bytes HDLC 5 bytes HDLC 3 bytes

Copyright © by Elliot Eichen. All rights reserved. Bandwidth requirement: G729 Example #2 Assume 60 ms packets. Packet payload size = 8 kbits/sec X 60ms = 60 bytes/packet. IP Packet = 60 bytes. For ethernet, 14 byte header, 4 byte trailer => bandwidth = (118 bytes/60ms)*(8bits/byte) = 15.7 kb/s Efficiency = 8 kb/s / 15.7 kb/s ~ 50%. Number of packets/sec = 1sec/.06sec. Loss of 1 packet/sec = 6% packet loss! IP 20 bytes UDP 8 bytes RTP 12 bytes G729 Payload 60 bytes IP 20 bytes UDP 8 bytes RTP 12 bytes G729 Payload 60 bytes Ethernet 14 bytes Ethernet 4 bytes

Copyright © by Elliot Eichen. All rights reserved. Codec Table

Copyright © by Elliot Eichen. All rights reserved. What is iLBC? iLBC (internet Low Bitrate Codec) is a FREE sppech codec suitable for robust voice communication over IP. The codec is designed for narrow band speech and results in a payload bit rate of kbps with an encoding frame length of 30 msec and kbps with an encoding length of 20 msec. The iLBC codec enables graceful speech quality degradation in the case of lost frames, which occurs in connection with lost or delayed IP packets. Features Bitrate kbps (399 bits, packetized in 50 bytes) for the frame size of 30 msec and 15.2 kbps (303 bits, packetized in 38 bytes) for the frame size of 20 msec. Basic quality higher then G.729A, high robustness to packet loss. Computational complexity in a range of G.729A. Royalty Free Codec.

Copyright © by Elliot Eichen. All rights reserved. Codecs – PacketCable Spec Codecs defined in this specification MUST be encoded witht he following string names in the rtpmap parameter: Codec RTP Map Parameters For the use in the SDP, the Rtpmap parameter (i.e., PCMU/8000 in the case of μ- law) is used. Unknown Rtpmap parameters SHOULD be ignored if they are received and15.2 kbps kbps 16 kbps 8 kbps 11.8 kbps

Copyright © by Elliot Eichen. All rights reserved. Summary (PAMS listening score only)

Copyright © by Elliot Eichen. All rights reserved. Codecs – “Your mileage may vary” Large perceived quality difference between PSTN quality (MOS=4.1) and cell quality (MOS=3.5) Codecs respond differently to packet loss, delay, noise, multiple transcodings, etc. It’s not just the MOS/PSQM measurement that counts. There are also licensing issues ($$), what the call is being used for (messaging, conferencing, etc.), and DSP HP required. The number of frames/packet can be dynamically adjusted to tradeoff quality for efficiency. Header compression can drastically improve efficiency – at the expense of router processing power. VoIP Community has – for the most part – converged around G711, G729. Some application for G726 (packs better into ATM). EE thinks that GSM interworking is very important!

Copyright © by Elliot Eichen. All rights reserved. Speech Coders: Lots of Code, DSP intensive

Copyright © by Elliot Eichen. All rights reserved. Bandwidth reduction IP – almost by definition - is less bw efficient than PSTN. Bandwidth reduction where the cost for bandwidth is at a premium – typically tail circuits, or some international destinations. VAD (Voice Activity Detection). Rule of thumb is 1/3-1/2 reduction in bw. Cost is voice quality (clipping), poor performance in conferencing. Header Compression –Compressed RTP: Hop-to-hop, requires decompression and compression at each hop. For G279, = 12.8 kb/s –VoMPLS: New, not sure of what it takes beyond MPLS. End-to-end (not hop-to-hop), likely to be much less router CPU intensive.

Copyright © by Elliot Eichen. All rights reserved. Header Compression Example Conventional frame G729 = 25.2 kbps Compressed frame G729 = 12.8 kbps CRTP 4 bytes G729 Payload 20 bytes IP 20 bytes UDP 8 bytes RTP 12 bytes G729 Payload 20 bytes HDLC 5 bytes HDLC 3 bytes HDLC 5 bytes HDLC 3 bytes

Copyright © by Elliot Eichen. All rights reserved..wav Microsoft/IBM Spec PCM with bandwidth = SxBxC –S = Sample Rate (samples/sec) –B = Bits/Sample –C = Channels For example, audio might be 44 kHz sampling rate at 16 bits/sample and 2 channels = 1.4 Mb/s. Another example might be voice mail in an attachment (try it – right click on a.wav file) – 8kHz sampling and 16 bits/sample = 124 kb/s. Conversion between audio formats! Interesting (how do you go from compressed format to un-compressed formats).

Copyright © by Elliot Eichen. All rights reserved. Tradeoffs – a: Efficiency vs Latency & Packet Loss b: Codec bandwidth vs CPU cycles Short Packets = low latency, tolerates packet loss better, inefficient. Large Packets = long latency (got to wait for buffer to fill up before shipping out packet), does not tolerate packet loss as well (loss of many bytes hurts!), more efficient. Narrowband high quality codecs => more processing (cpu cycles) than either poor quality or less compression. Why not something BETTER than G711?

Copyright © by Elliot Eichen. All rights reserved. Voice Codecs – Bandwidth Consumption Pulse Code Modulation Codec (compression) Buffer Layer 3 (RTP/UDP/IP) +Layer 2 Encapsulation Analog waveform 64 kbps 6-16 kbps ~10-40 msec 40 bytes/sec Physical Layer (wire) Getting from pt A to pt B Layer 2/3 Jitter Buffer ~1-2 packets Codec PCM

Copyright © by Elliot Eichen. All rights reserved. Transcoding – From codec to codec

Copyright © by Elliot Eichen. All rights reserved. Marginal delay - Example Δ Delay = buffer + codec + layer2/3 + queuing + network congestion + jitter + codec. If buffer = 20ms, codec = 12ms, layer2/3 = 2ms, queuing = 1ms, jitter = 20ms, => Delay ~ 70 ms. Rule of thumb => Total Delay < 150ms for Toll Quality. If NY  LA is 35 ms, it’s OK. If NY Sydney = 100 ms, it’s marginal. Total Delay = point-point delay (c/n + ?) + Δ Delay. Transcoding = twice the Δ Delay => it’s a killer!

Copyright © by Elliot Eichen. All rights reserved. Distances (NY to...) & One Way Delay Discrepancy Between Calculated and Actual Delays –Great Circle vs. as the railroads/cables run. –Multiple Hops –Congestion great circle route 2

Copyright © by Elliot Eichen. All rights reserved. Jitter- not such a big deal in modern networks? Why is Jitter Important? –If jitter > receive buffer size, jitter = packet loss. Tradeoff between Receive Buffer Size and Latency. –Bigger Receive Buffer => Better immunity to packet jitter.. But.. longer latency! It all depends.. but it is typical to have a +/- 1 pakcet jitter buffer.

Copyright © by Elliot Eichen. All rights reserved. Summary (PAMS listening score only) What about wideband codecs (G722, speex, AAC, etc.)? Should also include wireless codecs including GSM and the CDMA equivalent.

Copyright © by Elliot Eichen. All rights reserved. Why VoIP so cool? The codecs make the voice sounds lousy. It’s less efficient than circuit switched voice. It has all these QoS issues (latency/packet loss). It’s driven down the price that can be charged for a call so that there are no $$ to be made.