lecture 1 - traditional voice versus unified voice

73
1 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe Winter 2012 Traditional Voice Versus Unified Voice

Upload: brandon-hamad

Post on 22-Oct-2014

127 views

Category:

Documents


16 download

TRANSCRIPT

Page 1: Lecture 1 - Traditional Voice Versus Unified Voice

1 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Traditional Voice Versus Unified Voice

Page 2: Lecture 1 - Traditional Voice Versus Unified Voice

2 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Topics

Where It All Began: Analog Connections

The Evolution: Digital Connections

Understanding the PSTN

The New Yet Not-So-New Frontier: VoIP

Note: The material in this lecture is covered in the CCNA Voice 640-461 Official Cert Guide. Since this textbook is recommended for this course, but not required, only the information from these slides will be tested in exams, and no other information from this textbook. Some of the information in this chapter is also covered in the required textbook, and these locations will be pointed out during the lecture.

Page 3: Lecture 1 - Traditional Voice Versus Unified Voice

3 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

Replica of Edison’s Phonograph

Page 4: Lecture 1 - Traditional Voice Versus Unified Voice

4 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

The point of that introduction is to show you an example of an analog signal

In today’s world analog signals are captured electronically rather than using tinfoil, but the principle is the same

The volume and pitch of your voice results in different variations of electrical current, voltage, frequency, charge, etc.

Example voice waveform using electronic signals

Page 5: Lecture 1 - Traditional Voice Versus Unified Voice

5 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

Analog phone lines use electrical properties (frequency, amplitude, etc.) to convey the changes in your voice over cabling

Other signals than just voice are conveyed across a phone line:

Dial tone

Dialed digits

Busy signals

Etc.

More on these in later lectures

Page 6: Lecture 1 - Traditional Voice Versus Unified Voice

6 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

Each analog circuit is composed of a pair of wires, one ground (or positive, or “tip”) and one battery (or negative, or “ring”)

These wires power the analog phone and allow it to function

Page 7: Lecture 1 - Traditional Voice Versus Unified Voice

7 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

The jagged line over the analog phone below represents a broken circuit

When the phone is on hook, the phone separates the two wires preventing the electric signal from flowing through the phone.

Page 8: Lecture 1 - Traditional Voice Versus Unified Voice

8 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

When the phone is lifted off hook the wires are connected causing an electrical signal to flow from the phone company central office (CO) into the phone

This is known as loop start signaling

Page 9: Lecture 1 - Traditional Voice Versus Unified Voice

9 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

Loop start signaling is the typical signaling type used in a home environment.

Loop start is susceptible to a problem known as glare

Glare occurs when you pick up the phone to make a call at exactly the same time as a call comes in to the phone before the phone has a change to ring

“Uhhh...Oh! Hello, Bob! I’m sorry, I didn’t know you were on the phone!”

Usually not a problem in home environments because the chances of it happening are slim, and if it does happen the call is usually meant for your house anyway

Page 10: Lecture 1 - Traditional Voice Versus Unified Voice

10 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

In business environments glare can be a significant problem because of the large number of employees and high call volume

For example, a corporation may have a key system (a type of internal phone system) with five analog links to the PSTN

Page 11: Lecture 1 - Traditional Voice Versus Unified Voice

11 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

If a call comes in for extension 5002 at the same time as extension 5000 picks up the phone the key system will connect the two signals causing x5000 to receive the call for x5002

This happens because the loop start signal from x5000 seizes the outgoing PSTN line at the same time as the incoming call is received on the same line.

Page 12: Lecture 1 - Traditional Voice Versus Unified Voice

12 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Where It All Began: Analog Connections

Because of glare, most modern Private Branch Exchange (PBX) systems designed for larger corporate environments use ground start signaling

Ground start signaling was originally used in pay phones systems

When the handset was lifted off of the phone there was no dial tone until he dropped in a coin

The coin brushes up against the ring and tip wires, briefly grounding them

This signaled the phone company to send dial tone on the line

Page 13: Lecture 1 - Traditional Voice Versus Unified Voice

13 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Evolution: Digital Connections

Analog signals pose problems

Analog signals fade over long distances and have to be regenerated by repeaters

Repeaters can’t distinguish between the audio and noise on the line, so each time the voice is amplified by the repeaters, so is the noise

The farther the signal travelled the more it has to be repeated and the more distorted the original signal becomes

Page 14: Lecture 1 - Traditional Voice Versus Unified Voice

14 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Evolution: Digital Connections

The second problem with analog is the number of wires needed to support a large area or business

Each phone requires two wires and the bundles of wire become massive and difficult to maintain

A solution that allows multiple calls to be sent over a single wire is needed.

Digital connections are that solution

Page 15: Lecture 1 - Traditional Voice Versus Unified Voice

15 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Digital signals use numbers to represent levels of voice instead of a combination of electrical signals (waveform)

“Digitizing voice” is the process of changing analog signals (waves) into a series of numbers that can be used to reconstruct the original signal at the other end of the line

Page 16: Lecture 1 - Traditional Voice Versus Unified Voice

16 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Each number sent represents a sound that someone made while speaking

Today’s network technology can send numeric signals (in binary format) for vast distances without any degradation or loss of data

Even with a significant amount of noise on the line, it’s still relatively easy to tell the difference between a 1 and 0 in an electrical signal

This solves the problem of sending the signal long distances, but what about the huge number of cables required to send the voice?

Page 17: Lecture 1 - Traditional Voice Versus Unified Voice

17 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Digital signaling can also solve the issue of requiring a large number of cables

Digital voice uses time-division multiplexing (TDM)

TDM allows voice networks to carry multiple conversations at the same time over a single path (multiplexing)

The digitized voice is transmitted in specific time slots (thus, the “time-division”) that differentiate the separate conversations

Page 18: Lecture 1 - Traditional Voice Versus Unified Voice

18 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Based on the time each voice data was sent the PSTN carrier is able to distinguish and reassemble the voice conversations

Page 19: Lecture 1 - Traditional Voice Versus Unified Voice

19 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Digital connections to the PSTN in Canada, the US, and Japan are T1 circuits

A T1 circuit is built from 24 separate 64-kbps channels known as digital signal 0 (DS0)

Each of these channels can support a single voice call, so theoretically a T1 can support up to 24 calls at a time

Outside of Canada, the US, and Japan corporations use E1 circuits which allows you to use up to 30 DS0s for voice calls

Page 20: Lecture 1 - Traditional Voice Versus Unified Voice

20 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Moving from Analog to Digital

Using digital technology solves the problems mentioned earlier, but introduces a new one: signaling

Analog circuits use specific variations of the frequency of the electrical waveform to pass supervisory signaling

Digital signals don’t have this ability, they only send 1s and 0s

To solve this, two primary styles of signaling were created for digital circuits:

Channel associated signaling (CAS)

Common channel signaling (CCS)

Page 21: Lecture 1 - Traditional Voice Versus Unified Voice

21 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Channel Associated Signaling (CAS)

CAS “steals” bits that would typically have been used to communicate voice information, and uses them for signaling

Because T1 CAS steals bits from the voice channel, it’s often called robbed-bit signaling (RBS).

Since some of the voice information is no longer being sent the voice quality does technically drop a little

The number of bits stolen is small enough that the change in voice quality is not noticeable

Page 22: Lecture 1 - Traditional Voice Versus Unified Voice

22 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Channel Associated Signaling (CAS)

For a T1 the eighth bit on every sixth sample in each DS0 is stolen for signaling

Each column is a DS0

(unique voice call)

Page 23: Lecture 1 - Traditional Voice Versus Unified Voice

23 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Common Channel Signaling (CCS)

CCS dedicates one of the DS0 channels from a T1 or E1 link for transmitting signaling information

Referred to as out-of-band signaling because the signaling traffic is sent separately from the voice traffic

T1 connections using CCS only have 23 usable DS0s for voice (as opposed to all 24 with CAS)

A signaling protocol used on the common channel sends the necessary information for all voice channels

The most popular signaling protocol for CCS is Q.931 which is used for ISDN circuits

Page 24: Lecture 1 - Traditional Voice Versus Unified Voice

24 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Common Channel Signaling (CCS)

CCS is the most popular connection used between voice systems in the world

It offers more flexibility with signaling messages, more bandwidth for the voice bearer channels, and higher security (because of the out-of-band signaling)

Also allows PBX vendors to communicate proprietary messages and features between their systems using ISDN signaling (CAS does not)

When using T1 lines, the 24th time slot is always the signaling channel. With E1 lines the 17th time slot is always the signaling channel

Page 25: Lecture 1 - Traditional Voice Versus Unified Voice

25 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding the PSTN

The Public Switched Telephony Network (PSTN) is to voice networks what the Internet is to data networks

If you have ever made a call from a home telephone, you have connected to the PSTN

Its primary purpose is to establish worldwide telephony connectivity

Page 26: Lecture 1 - Traditional Voice Versus Unified Voice

26 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

When the phone system was originally created individual phones were wired directly together

If you wanted to connect with more than one person you needed multiple phones

This was obviously not scalable

Page 27: Lecture 1 - Traditional Voice Versus Unified Voice

27 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• Analog telephone: Able to connect directly to the PSTN and is the most common device on the PSTN. Converts audio into electrical signals

Page 28: Lecture 1 - Traditional Voice Versus Unified Voice

28 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• Local loop: The link between the customer premises (such as a home or business) and the telecommunications service provider.

Page 29: Lecture 1 - Traditional Voice Versus Unified Voice

29 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• CO switch: Provides services to the devices on the local loop. These services include signaling, digit collection, call routing, setup, and teardown.

Page 30: Lecture 1 - Traditional Voice Versus Unified Voice

30 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Central Office (CO)

Photograph taken by Andrew Filer (afiler.com). Used under creative commons license

Page 31: Lecture 1 - Traditional Voice Versus Unified Voice

31 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Central Office (CO)

Photograph taken by Andrew Filer (afiler.com). Used under creative commons license

Page 32: Lecture 1 - Traditional Voice Versus Unified Voice

32 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• Trunk: Provides a connection between switches. These switches could be CO or private.

Page 33: Lecture 1 - Traditional Voice Versus Unified Voice

33 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• Private switch: Allows a business to operate a “miniature PSTN” inside its company. This provides efficiency and cost savings because each phone in the company does not require a direct connection to the CO switch.

Page 34: Lecture 1 - Traditional Voice Versus Unified Voice

34 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Pieces of the PSTN

The modern PSTN is now a worldwide network built from the following pieces:

• Digital telephone: Typically connects to a PBX system. Converts audio into binary 1s and 0s, which allows more efficient communication than analog.

Page 35: Lecture 1 - Traditional Voice Versus Unified Voice

35 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding PBX and Key Systems

Many businesses have hundreds or even thousands of phones they support in the organization

If the company purchases a direct PSTN connection for each one of these phones, the cost would be astronomical

Instead, most organizations choose to use a PBX or key system internally to manage in-house phones

These systems allow internal users to make phone calls inside the office without using any PSTN resources

Calls to the PSTN forward out the company’s PSTN trunk link

Page 36: Lecture 1 - Traditional Voice Versus Unified Voice

36 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding PBX and Key Systems

Page 37: Lecture 1 - Traditional Voice Versus Unified Voice

37 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding PBX and Key Systems

When you first look at a PBX system, it looks like a large box full of cards (which it essentially is!). Each card has a specific function:

• Line cards: Provide the connection between telephone handsets and the PBX system.

• Trunk cards: Provide connections from the PBX system to the PSTN or other PBX systems.

• Control complex: Provides the intelligence behind the PBX system; all call setup, routing, and management functions are contained in the control complex.

Page 38: Lecture 1 - Traditional Voice Versus Unified Voice

38 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding PBX and Key Systems

PBX systems, while technically a single point of failure, typically offer 99.999% uptime (five 9’s) with a lifespan of 7 to 10 years!

PBX systems are well known to be reliable pieces of equipment and this is often one of the reasons that companies are sometimes hesitant to move to a VoIP solution

http://cityinfrastructure.com/Voice/Voice.html

Page 39: Lecture 1 - Traditional Voice Versus Unified Voice

39 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding PBX and Key Systems

Key systems are similar to PBXs but are geared towards small business environments (typically less than 50 users)

As technology has advanced, the line between key systems and PBXs has begun to blur

Key systems usually have fewer features than a PBX and typically make use of “shared lines”

For example, if an small office using a key system had four telephone lines, each phone would show the same four lines

If someone picks up a call on line one, it appears as “in use” on every phone on the system

Page 40: Lecture 1 - Traditional Voice Versus Unified Voice

40 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Connections to and Between the PSTN

Home users and small offices typically connect using one or more analog connections.

Medium-to-large size businesses often use one or more digital connections (T1 or E1) to connect to the PSTN

Page 41: Lecture 1 - Traditional Voice Versus Unified Voice

41 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Connections to and Between the PSTN

In order for all of the telephony service providers of the world to communicate a common signaling protocol must be used similar to TCP/IP for the Internet

That protocol is called Signaling System 7 (SS7)

SS7 is an out-of-band signaling method used to communicate call setup, routing, billing, and informational signaling through the PSTN to the destination.

This is primarily a telephony service provider technology that you typically do not use from a customer standpoint

Page 42: Lecture 1 - Traditional Voice Versus Unified Voice

42 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

PSTN Numbering Plans

Just like data networks use IP addressing to organize and locate resources, voice networks use a numbering plan to organize and locate telephones all around the world

Organizations managing their own internal telephony systems can develop any internal number scheme that best fits the company needs (similar to private IP addressing)

When connecting to the PSTN however, you must use a valid, E.164 standard address for your telephone system (similar to a public IP address)

Page 43: Lecture 1 - Traditional Voice Versus Unified Voice

43 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

PSTN Numbering Plans

E.164 is an international numbering plan created by the International Telecommunication Union (ITU)

Each number contains the following components:

• Country code

• National destination code

• Subscriber number

Page 44: Lecture 1 - Traditional Voice Versus Unified Voice

44 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

PSTN Numbering Plans

For example, the North American Numbering Plan (NANP) uses E.164 to break numbers down into the following components:

• Country code

• Area code

• Central office or exchange code

• Station code

Page 45: Lecture 1 - Traditional Voice Versus Unified Voice

45 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

PSTN Numbering Plans

For example, the NANP number 1-602-555-1212 breaks down like this:

Page 46: Lecture 1 - Traditional Voice Versus Unified Voice

46 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The New Yet Not-So-New Frontier: VoIP

What is VoIP really?

With digitized voice, we’ve got half the puzzle. The voice has been translated from an analog signal into a series of 1s and 0s

VoIP is taking the 1s and 0s of digitized voice and placing them into a data packet with IP addressing information in the headers.

You can then take that VoIP packet and send it across the data network instead of a traditional telephony network

So what’s so great about sending voice over a data network instead of a telephony network?

Page 47: Lecture 1 - Traditional Voice Versus Unified Voice

47 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

VoIP: Why It Is a Big Deal for Businesses

The business benefits of VoIP include the following:

Reduced cost of communicating: Instead of relying on expensive tie lines or toll charges to communicate between offices, VoIP allows you to forward calls over WAN connections

Reduced cost of cabling: VoIP deployments typically cut cabling costs in half by running a single Ethernet connection instead of both voice and data cables.

Seamless voice networks: The voice traffic is crossing “your network” (relatively speaking) rather than exiting to the PSTN. This provides centralized control of all voice devices attached to the network and a consistent dial-plan.

Page 48: Lecture 1 - Traditional Voice Versus Unified Voice

48 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

VoIP: Why It Is a Big Deal for Businesses

The business benefits of VoIP include the following:

Take your phone with you: With VoIP phone systems, the cost of making changes is virtually eliminated. In addition, little to no reconfiguration of the voice network is needed to add new phones. When combined with a VPN configuration, users can take IP phones home with them and retain their work extension

IP SoftPhones: Users can now plug a headset into their laptop or desktop and allow it to act as their phone. SoftPhones are becoming increasingly more integrated with other applications such as e-mail contact lists, instant messenger, and video telephony

Unified e-mail, voicemail, fax: All messaging can be sent to a user’s e-mail inbox. This allows users to get all messages in one place and easily reply, forward, or archive messages.

Page 49: Lecture 1 - Traditional Voice Versus Unified Voice

49 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

VoIP: Why It Is a Big Deal for Businesses

The business benefits of VoIP include the following:

Increased productivity: VoIP extensions can forward to ring multiple devices before forwarding to voicemail. This eliminates the “phone tag” game.

Feature-rich communications: Because voice, data, and video networks have combined, users can initiate phone calls that communicate with or invoke other applications from the voice or data network to add additional benefits to a VoIP call.

Open, compatible standards: You can now connect devices from different telephony vendors together. This will allow businesses to choose the best equipment for their network, regardless of the manufacturer.

Page 50: Lecture 1 - Traditional Voice Versus Unified Voice

50 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Harry Nyquist created a process to convert analog signals into digital format (called the Nyquist Theorem)

Nyquist found that he could accurately reconstruct audio streams by taking samples that numbered twice the highest audio frequency used in the audio

So if the highest frequency was 2000Hz you would need to take 4000 samples in the same period in order to accurately reconstruct the original audio

Page 51: Lecture 1 - Traditional Voice Versus Unified Voice

51 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Audio frequencies vary based on the volume, pitch and so on:

The average human ear is able to hear frequencies from 20 – 20,000 Hz

Human speech uses frequencies from 200 – 9,000 Hz

Telephone channels typically transmit frequencies from 300 – 3,400 Hz

The Nyquist theorem is able to reproduce frequencies from 300 – 4,000 Hz

Page 52: Lecture 1 - Traditional Voice Versus Unified Voice

52 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

If human speech uses frequencies between 200–9,000 Hz and the normal telephone channel only transmits frequencies from 300–3,400 Hz, how can you understand human conversation over the phone?

Studies have found that the telephone channel frequency gives you enough sound quality to identify the caller and sense their mood

The telephone channel frequency range does not send the full spectrum of human voice inflection and lowers the actual quality of the audio

Page 53: Lecture 1 - Traditional Voice Versus Unified Voice

53 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

According to the Nyquist Theorem you should sample at twice the highest frequency, so to sample frequencies up to 4000 Hz you would need to sample 8000 times every second

A sample is a numeric value that consumes a single byte of information and describes the audio signal at the time the sample was taken

During the process of sampling, the sampling device puts an analog waveform against a Y-axis lined with numeric values.

Page 54: Lecture 1 - Traditional Voice Versus Unified Voice

54 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

The process of converting the analog wave into digital, numeric values is known as quantization

Because 1 byte of information can represent only values 0–255, the quantization of the voice scale is limited to values measuring a maximum peak of +127 and a maximum low of –127

Page 55: Lecture 1 - Traditional Voice Versus Unified Voice

55 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Notice in the diagram that the 127 positive and negative values are not evenly spaced

To achieve a more accurate numeric value the frequencies more common to voice are tightly packed with numeric values, whereas the “fringe frequencies” on the high and low end of the spectrum are more spaced apart

Page 56: Lecture 1 - Traditional Voice Versus Unified Voice

56 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

The sampling device breaks the 8 binary bits in each byte into two components: a positive/negative indicator and the numeric representation

The first bit indicates positive or negative, and the remaining seven bits represent the actual numeric value

Because the first bit in the diagram is a 1, you read the number as positive. The remaining seven bits represent the number 52

This is the digital value used for one voice sample.

Page 57: Lecture 1 - Traditional Voice Versus Unified Voice

57 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

8000 of these 1-byte samples are taken every second

8000 samples per second times 8 bits in each sample gives you 64,000 bits per second

It’s no coincidence that uncompressed audio (including the G.711 audio codec) consumes 64 kbps. It’s also no coincidence that each channel of a T1 or E1 can carry 64 kbps of data

Once the sampling device assigns numeric values to all these analog signals, a router can place them into a packet and send them across a network

Page 58: Lecture 1 - Traditional Voice Versus Unified Voice

58 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Codec = Coder/Decoder; Codecs are the formulas used to convert analog to digital and vice versa (the sampling, quantization, etc.)

Important note! There are two forms of the G.711 codec mentioned previously: μ-law (used primary in the United States, Canada, and Japan) and a-law (used everywhere else)

The previous description represented G.711 a-law. G.711 μ-law codes in exactly the opposite way (all of the 1s would be 0s and all of the 0s would be 1s)

When a country using μ-law is communicating with a country using a-law it is the responsibility of the μ-law side to do the conversion to a-law

Page 59: Lecture 1 - Traditional Voice Versus Unified Voice

59 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

The last and optional step in the digitization process is compression

Advanced codecs, such as G.729, allow you to compress the number of samples sent and thus use less bandwidth

This is possible because sampling human voice 8,000 times a second produces many samples that are similar or identical

For example, say the word “cow” out loud to yourself, which takes about a second to say

There are really only three sounds, the “k”, the “ahhhhh”, and the “wuh”

Page 60: Lecture 1 - Traditional Voice Versus Unified Voice

60 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Since most of these sound exactly the same (or pretty close) there’s no need to send thousands of samples that are all the same

Compressed codecs typically send a sound sample once and simply tell the remote device to continue playing that sound for a certain amount of time

This is often described as “building a codebook” of the human voice

Using this process the G.729 codec is able to reduce the bandwidth from 64 kbps down to just 8 kbps for each call!

Page 61: Lecture 1 - Traditional Voice Versus Unified Voice

61 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Unfortunately this reduction of bandwidth comes with a price: quality

Quality was originally measured using a system known as a Mean Opinion Score (MOS) to rate the quality of various codecs.

A listener listens to a caller say “Nowadays, a chicken leg is a rare dish” and rates the clarity of the sentence on a scale of 1-5, where 1 is the worst and 5 is the best

Page 62: Lecture 1 - Traditional Voice Versus Unified Voice

62 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

Page 63: Lecture 1 - Traditional Voice Versus Unified Voice

63 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

The Process of Converting Voice to Packets

You can use quite a few different audio codecs on your network, each geared for different purposes and environments

Some codecs sacrifice audio quality to achieve very streamlined transmissions. Other codecs are designed to meet the need for quality

Cisco IP phones have the ability to code using either G.711 or G.729 by default.

G.711 is a baseline codec that pretty much every vendor should support on all of their devices so that phones from competing vendors can still communicate

Page 64: Lecture 1 - Traditional Voice Versus Unified Voice

64 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Role of Digital Signal Processors

Cisco routers are designed to route data packets from one location to another

They are not equipped with the kind of resources needed to convert loads of voice into digitized, packetized transmissions

This is where Digital Signal Processors (DSPs) come into play. DSPs offload the processing responsibility for voice-related tasks from the processor of the router (similar to how a video card with a GPU offloads graphics processing from your CPU)

Page 65: Lecture 1 - Traditional Voice Versus Unified Voice

65 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Role of Digital Signal Processors

A DSP chip performs all the sampling, encoding, and compression functions on audio coming into the router

If you put voice interface cards into your router without installing DSPs the cards would be useless. None of the audio would be converted to digital packetized data

DSPs look a lot like memory chips you would put in your computer

Page 66: Lecture 1 - Traditional Voice Versus Unified Voice

66 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Role of Digital Signal Processors

Make sure you add the number of DSPs to your router to support the number of simultaneous voice call, conference, and transcoding (converting from one codec to another) sessions you plan to support

These chips come bundled into Packet Voice DSP Modules (PVDM)

Page 67: Lecture 1 - Traditional Voice Versus Unified Voice

67 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Role of Digital Signal Processors

The PVDMs come in the following sizes:

PVDM2-8: Provides 0.5 DSP chip

PVDM2-16: Provides 1 DSP chip

PVDM2-32: Provides 2 DSP chips

PVDM2-48: Provides 3 DSP chips

PVDM2-64: Provides 4 DSP chips

Page 68: Lecture 1 - Traditional Voice Versus Unified Voice

68 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Role of Digital Signal Processors

Some codecs consume more DSP resources than others

Generally speaking, the DSP resources are able to handle roughly double the number of medium-complexity calls than high-complexity

Page 69: Lecture 1 - Traditional Voice Versus Unified Voice

69 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding RTP and RTCP

Real-time Transport Protocol (RTP) and Real-time Transport Control Protocol (RTCP) are the protocols of voice

RTP operates at the transport layer of the OSI model on top of UDP, and RTP packets carry the actual audio stream

Both RTP and UDP (which are both transport layer protocols) are necessary and each serve different functions

UDP provides port numbers to allow multiple simultaneous sessions and header checksums to make sure the header does not become corrupted

Page 70: Lecture 1 - Traditional Voice Versus Unified Voice

70 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding RTP and RTCP

RTP adds time stamps and sequence numbers to allow the remote device to put the packets back in order and to use a buffer to remote jitter (variances in delay)

RTP can also be used for video purposes, hence the “Payload Type” field in the RTP header

Page 71: Lecture 1 - Traditional Voice Versus Unified Voice

71 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding RTP and RTCP

Once two devices attempt to establish an audio session, RTP engages and chooses a random, even UDP port number from 16,384 to 32,767 for each RTP stream

RTP streams are one way so two RTP streams must be established, one for each direction

At the time the devices establish the call, RTCP also engages

Page 72: Lecture 1 - Traditional Voice Versus Unified Voice

72 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012

Understanding RTP and RTCP

RTCP’s primary job is statistics reporting

These statistics include

Packet count

Packet delay

Packet loss

Jitter (delay variations)

Although this information is useful, it is not nearly as critical as the actual RTP audio streams

Keep this in mind when you configure QoS settings

RTCP creates a separate UDP session using an odd-numbered port (one number higher than the RTP port)

Page 73: Lecture 1 - Traditional Voice Versus Unified Voice

73 Voice Over IP: Traditional Voice Versus Unified Voice Josh Lowe – Winter 2012