© 2006 cisco systems, inc. all rights reserved. qos lecture 2 - introducing voip networks

28
© 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

Upload: virgil-gibbs

Post on 26-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

QOS

Lecture 2 - Introducing VoIP Networks

Page 2: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Objectives Describe the benefits of a VoIP network.

Describe the components of a VoIP network.

Describe the legacy analog interfaces used in VoIP networks.

Describe the digital interfaces used in VoIP networks.

Explain the 3 phases of call control.

Compare and contrast distributed and centralized call control.

Page 3: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Benefits of a VoIP Network More efficient use of bandwidth and equipment Lower transmission costs Consolidated network expenses Improved employee productivity through features

provided by IP telephony:IP phones are complete business communication devices.

Directory lookups and database applications (XML)Integration of telephony into any business application

Software-based and wireless phones offer mobility.

Access to new communications devices (such as PDAs and cable set-top boxes)

Page 4: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Components of a VoIP Network

Page 5: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Legacy Analog and VoIP Applications Can Coexist

Page 6: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Legacy Analog Interfaces in VoIP Networks

Analog Interface Type Label Description

Foreign Exchange Station FXS Used by the PSTN or PBX side of an FXS–FXO connection

Foreign Exchange Office FXO Used by the end device side of an FXS–FXO connection

Earth and Magneto E&M Trunk, used between switches

Page 7: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Legacy Analog Interfaces in VoIP Networks

1

1

23

4

5

Page 8: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Digital Interfaces

Interface Voice Channels (64 kbps Each) SignalingFraming Overhead

Total Bandwidth

BRI 2 1 channel (16 kbps) 48 kbps 192 kbps

T1 CAS 24 (no clean 64 kbps because of robbed-bit signaling)

in-band (robbed-bits in voice channels)

8 kbps 1544 kbps

T1 CCS 23 1 channel (64 kbps) 8 kbps 1544 kbps

E1 CAS 30 64 kbps 64 kbps 2048 kbps

E1 CCS 30 1 channel (64 kbps) 64 kbps 2048 kbps

Page 9: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Call Setup

Checks call-routing configuration

Determines bandwidth availability

If bandwidth is available, setup message is passed

If bandwidth is not available, busy signal is generated

Page 10: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Call Maintenance

Tracks quality parameters:

Packet loss

Jitter

Delay

Maintains or drops call based on connection quality

Page 11: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Call Teardown

Notifies devices to free resources

Resources are made available to subsequent calls

Page 12: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Distributed Call Control

Page 13: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Centralized Call Control

Page 14: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Basic Voice Encoding: Converting Analog Signals to Digital Signals

Step 1: Sample the analog signal.

Step 2: Quantize sample into a binary expression.

Step 3: Compress the samples to reduce bandwidth.

Page 15: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Basic Voice Encoding:Converting Digital Signals to Analog Signals

Step 1: Decompress the samples.

Step 2: Decode the samples into voltage amplitudes, rebuilding the PAM signal.

Step 3: Reconstruct the analog signal from the PAM signals.

Page 16: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Determining Sampling Rate with the Nyquist Theorem

The sampling rate affects the quality of the digitized signal.

Applying the Nyquist theorem determines the minimum sampling rate of analog signals.

Nyquist theorem requires that the sampling rate has to be at least twice the maximum frequency.

Page 17: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Example: Setting the Correct Voice Sampling Rate

Human speech uses 200–9000 Hz.

Human ear can sense 20–20,000 Hz.

Traditional telephony systems were designed for 300–3400 Hz.

Sampling rate for digitizing voice was set to 8000 samples per second, allowing frequencies up to 4000 Hz.

Page 18: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Quantization Quantization is the representation of amplitudes by a

certain value (step).

A scale with 256 steps is used for quantization.

Samples are rounded up or down to the closer step.

Rounding introduces inexactness (quantization noise).

Page 19: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Quantization Techniques Linear quantization:

Lower SNR on small signals (worse voice quality)

Higher SNR on large signals (better voice quality)

Logarithmic quantization provides uniform SNR for all signals:

Provides higher granularity for lower signals

Corresponds to the logarithmic behavior of the human ear

Page 20: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Digital Voice Encoding Each sample is encoded using eight bits:

One polarity bit

Three segment bits

Four step bits

Required bandwidth for one call is 64 kbps (8000 samples per second, 8 bits each).

Circuit-based telephony networks use TDM to combine multiple 64-kbps channels (DS-0) to a single physical line.

Page 21: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Companding Companding — compressing and expanding

There are two methods of companding:Mu-law, used in Canada, U.S., and Japan

A-law, used in other countries

Both methods use a quasi-logarithmic scale:Logarithmic segment sizes

Linear step sizes (within a segment)

Both methods have eight positive and eight negative segments, with 16 steps per segment.

An international connection needs to use A-law; mu-to-A conversion is the responsibility of the mu-law country.

Page 22: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Coding Pulse Code Modulation (PCM)

Digital representation of analog signal

Signal is sampled regularly at uniform levels

Basic PCM samples voice 8000 times per second

Basis for the entire telephone system digital hierarchy

Adaptive Differential Pulse Code ModulationReplaces PCM

Transmits only the difference between one sample and the next

Page 23: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Common Voice Codec Characteristics

ITU-T Standard

Codec Bit Rate (kbps)

G.711 PCM 64

G.726 ADPCM 16, 24, 32

G.728 LDCELP (Low Delay CELP) 16

G.729 CS-ACELP 8

G.729ACS-ACELP, but with less computation

8

Page 24: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Mean Opinion Score

Page 25: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

A Closer Look at a DSP

A DSP is a specialized processor used for telephony applications:

Voice termination:Works as a compander converting analog voice to digital format and back again

Provides echo cancellation, VAD, CNG, jitter removal, and other benefits

Conferencing: Mixes incoming streams from multiple parties

Transcoding: Translates between voice streams that use different, incompatible codecs

DSP Module

Voice Network Module

Page 26: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

DSP Used for Conferencing DSPs can be used in

single- or mixed-mode conferences:

Mixed mode supports different codecs.

Single mode demands that the same codec to be used by all participants.

Mixed mode has fewer conferences per DSP.

Page 27: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Example: DSP Used for Transcoding

Page 28: © 2006 Cisco Systems, Inc. All rights reserved. QOS Lecture 2 - Introducing VoIP Networks

© 2006 Cisco Systems, Inc. All rights reserved.

Summary Voice-enabled routers convert analog voice signals to

digital format for encapsulation in IP packets and transport over IP networks. These packets are converted back to analog at the other end.

Quantization is the process of selecting binary values to represent voltage levels of voice samples. Quantization errors arise when too few samples are taken.

There are two methods of companding: Mu-law, used in Canada, U.S., and Japan, and A-law, used in other countries.

The Mean Opinion Score (MOS) provides a numerical indication of the perceived quality of received media after compression and/or transmission.