Professional Documents
Culture Documents
Naveen Cheggoju§c
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 1/31
Contents
1 Introduction
2 VoIP challenges
3 VoIP codecs
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 2/31
What is VoIP?
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 3/31
PSTN and VoIP: Short summary
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 4/31
PSTN vs VoIP
PSTN VoIP
Voice networks use circuit It uses packet switching
switching
Dedicated path between calling No dedicated path between
and Called party sender and receiver
Bandwidth is reserved in ad- It acquires and releases band-
vance width, as it is needed
Cost is based on distance and Cost is not dependent on time
time and distance
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 5/31
VoIP architecture I
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 6/31
VoIP architecture II
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 7/31
Contents
1 Introduction
2 VoIP challenges
3 VoIP codecs
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 8/31
VoIP Challenges I
Quality of service
It is one of the most important concerns in voice communications,
determined by many factors, such as packet loss, speech coding options,
delay, echo andjitter.
The connection-oriented circuit-switched network provides each user with
dedicated bandwidth for the duration of each call, which results in extremely
low delay and jitter, and minimum disruption due to “noise”.
As we know, VoIP uses different codecs, and codecs affect the quality of
voice in a significant way.
So it is especially important to measure the quality of a voice call in a
standardized manner.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 9/31
VoIP Challenges II
Price
In a circuit switched network, an incomplete call is lost and does not
generate any revenue.
In the packet switched networks, there are no calls that are lost as such;
however, some of the packets may suffer delays above the acceptable
delay bound and are, similarly, not considered to constitute effective
throughput.
Just as a caller in a circuit switched network does not pay for an
incomplete call, the VoIP caller over a packet switched network in our
construct should not have to pay for packets that suffer an
unacceptable level of delay.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 10/31
VoIP Challenges III
Security
Voice over IP applications are generally designed to function over the
global Internet, although such solutions can be offered over private IP
networks, suchasenterprise networks.
Instances of violations of security over the Internet are common
occurrences that affect individuals, businesses as well as government
operations.
Voice over IP has not yet suffered many security violations, but the
potential for attacks on security is truly large.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 11/31
Contents
1 Introduction
2 VoIP challenges
3 VoIP codecs
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 12/31
VoIP Codecs I
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 13/31
VoIP Codecs II
G.711:
One of the oldest and most popular codec of the VoIP.
Introduced in 1972, works very well at higher bandwidth.
It required 64kbps for one-way communication, which comes out to be
128kbps for two-way communication.
Delivers smooth and precise voice when network meets the bandwidth
specifications.
Uses PCM with in two modes, µ-law and A-law.
It has one of the best score of MOS (Mean opinion score), standing at
4.2.
G.723.1:
It was introduced around1990s.
Best thing to speak about this codec is that it works well in very low
bandwidth requirements.
It requires a bit rate of 5.3kbps or 6.3kbps.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 14/31
VoIP Codecs III
The excitation signal for the high rate coder is Multipulse Maximum
Likelihood Quantization (MP-MLQ) and for the low rate coder is
Algebraic-Code-Excited Linear- Prediction (ACELP).
It has MOS of 3.7 and 3.9 for lower and higher bit rates respectively.
G.726:
G.726 vocoder converts a 64 Kbps A-law or µ-law PCM channel to or
from a 40, 32, 24 or 16kbps channel.
G.726 can encode 13 or 14-bit PCM samples or 8-bit, A-law or µ-law
encoded data into 2, 3, 4, or 5-bit code words.
The algorithm encodes one sample at a time, the coding or decoding
delay is effectively zero, providing for robust, quality audio.
Allows several different bit rates, 40, 32, 24, and 16 kbps. Widely used is
32kbps.
It works well with packet to private branch exchange (PBX)
interconnections
G.729:
One of the better voice quality CODECs.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 15/31
VoIP Codecs IV
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 16/31
VoIP Codecs V
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 17/31
VoIP Codecs VI
Audio codecs
sampling frame
standardized bit rate
Name description rate si ze remarks
by (kb/s)
(kHz) (ms)
(ADPCM)
Intel, IMA ADPCM 32 8 sample
DVI
G.711 ITU-T Pulse code modulation (PCM) 64 8 sample mu-law (US, Japan) and A-law (Europe) companding
Adaptive differential pulse code
G.721 ITU-T 32 8 sample Now described in G.726; obsolete.
modulation (ADPCM)
Subband-codec that divides 16 kHz band into two subbands, each coded
G.722 ITU-T 7 kHz audio-coding within 64 kbit/s 64 16 sample
using ADPCM
Coding at 24 and 32 kbit/s for hands-free
G.722.1 ITU-T 24/32 16 20 See also
operation in systems with low frame loss
Extensions of Recommendation G.721
adaptive differential pulse code
Superceded by G.726; obsolete. This is a completely different codec than
G.723 ITU-T modulation to 24 and 40 kbit/s for digital 24/40 8 sample
circuit multiplication equipment G.723.1.
application
Part of H.324 video conferencing. D SP Group. It encodes speech or other
Dual rate speech coder for multimedia audio signals in frames using linear predictive analysis-by-synthesis coding.
G.723.1 ITU-T communications transmitting at 5.3 and 5.6/6.3 8 30 The excitation signal for the high rate coder is Multipulse Maximum
6.3 kbit/s Likelihood Quantization (MP-MLQ) and for the low rate coder is Algebraic-
Code-Excited Linear-Prediction (ACELP).
40, 32, 24, 16 kbit/s adaptive differential
G.726 ITU-T 16/24/32/40 8 sample ADPCM; replaces G.721 and G.723.
pulse code modulation (ADPCM)
5-, 4-, 3- and 2-bit/sampleembedded
G.727 ITU-T adaptive differential pulse code var. ? sample ADPCM. Related to G.726.
modulation (ADPCM)
Coding of speech at 16 kbit/s using low-
G.728 ITU-T 16 8 CELP. Annex J offers variable-bit rate operation forDCME.
delay code excited linear prediction
Coding of speech at 8 kbit/s using
G.729 ITU-T conjugate-structure algebraic-code-excited 8 8 10 Low delay (15 ms)
linear-prediction (CS-ACELP)
G Regular致ulse Excitation Long茅erm
ETSI 13 8 22.5 Used for GSM cellular telephony.
SM 0 Predictor (RPE-LTP)
6.10
LPC10e
(FIPS US Govt. Linear-predictive codec 2.4 8 22.5 10 coefficients.
1015)
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 18/31
Contents
1 Introduction
2 VoIP challenges
3 VoIP codecs
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 19/31
Quality of speech in VoIP
Different codecs we had seen until now compress and decompress the
speech with highest quality possible.
But this is not the end, for perceiving the high quality voice.
There are some others parameters that can effect the voice quality at
the receiver.
Sometimes it may happen even with the best codecs voice quality
may be poor.
The parameters that governs this loss in voice quality are:
delay,
jitter, and
packet loss.
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 20/31
Delay I
Delay Impact
Below 150ms Acceptable for most userapplications
150 - 400ms Acceptable for international calls
Above 400ms Unacceptable for general network planning pur-
poses, especially in the case of transporting voice
in packet switched networks
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 22/31
Jitter
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 23/31
Packet Loss
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 24/31
Contents
1 Introduction
2 VoIP challenges
3 VoIP codecs
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 25/31
VoIP protocol stack I
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 26/31
VoIP protocol stack II
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 27/31
VoIP protocol stack III
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 28/31
VoIP protocol stack IV
Figure 5: VoIPencapsulation
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 29/31
VoIP protocol stack V
Naveen Cheggoju§c (VNIT) ECL516 Converged Communication Networks February 25, 2020 30/31