VoIP Chap1
VoIP Chap1
VoIP Chap1
Digital signals can transmit value over much greater distance with
little degradation or line noise as compared to analog phone
connections.
Digital transmissions eliminates the need for many individual pairs of
wires required by multiple analog connections.
• Traditional digital voice uses a technology known as time-division
multiplexing (TDM) to digitally encode multiple conversations at the
same time over a single, four-wire path. It is transmitted in a specific
time slots.
To solve this issue, two primary styles of signaling were created for digital
circuits:
Components of PSTN
• Analog telephone: Able to connect directly to the PSTN and is the most
common device on the PSTN. Converts audio into electrical signals and
vice versa.
• Local loop: The link between the customer premises such as a home or
business and the telecommunications service provider.
• CO switch: Provides services to the devices on the local loop. Services
includes signaling, digit collection, call routing, setup, and teardown.
• Trunk: Provides a connection between switches. These switches
could be CO or private.
• 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 direct connection to the CO switch.
• Digital telephones: Typically connects to PBX system. Converts audio into
binary 1s and 0s, which allows more efficient communication than
analog.
What is PBX and Key Systems?
The PBX and Key Systems allows 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.
PBX system looks like a large box full of cards, each card has a specific
function:
a. Line cards: Provide the connection between telephone handsets and the
PBX system
b. Trunk cards: Provide connections from the PBX system to the PSTN
or other PBX systems.
c. Control cards: Provide the intelligence behind the PBX system; all
call setup, routing, and management functions are contained in the
control completes.
• Most PBX systems offer 99.999% uptime with lifespan average of 7 to 10
years.
• Key systems are for small business environments typically fewer than 50
users. Supports fewer features and have a “shared line”. For example if
four lines are assigned to each phone of four users, when user one use
line 1, the line will become busy for all other users.
Example is the North American numbering Plan (NANP) as broken into the following:
Country code
Area code
CO or exchange code
Station code or subscriber number
Benefits of VoIP for Businesses
Reduced cost of communications: VoIP allows to forward calls over existing WAN
connections.
Reduced cost of cabling: VoIP deployments cut cabling cost in half by running a
single Ethernet connection both voice and data cables.
Seamless voice networks: Provides centralized control of all voice devices
attached to the network and a consistent dial plan.
Take phone with you: Reduced cost in moving, adding, and changes of IP phones.
IP softphones: Users can plug headset into their laptop or desktop computer or
tablet and allow it to act as their phone.
Unified email, voicemail, fax: All messaging can be sent to a user’s email inbox.
Increased productivity: VoIP extensions can forward to ring multiple devices
before forwarding to voicemail.
Feature-rich communications: Voice, data, and video networks are combined.
Users can initiate phone calls and invoke other applications such as showing of
caller ID.
Open, compatible standards: Different vendors can connect devices together.
The process of converting Voice to Packets
Dr. Harry Nyquist laid the mathematical foundations for the technology used
to this day to convert analog signals (flowing waveforms) into digital format
(1s and 0s).
The process of converting analog to digital consists of three sometimes four
steps. These are sampling, quantization, and encoding. (compression the
fourth which is not always applied.)
a. Sampling: is the measurement of the waveform at regular intervals
b. Quantization: transition between the steps in the digital measurement
c. Encoding: applying a binary value to the quantized measurement
d. Compression:
Nyquist found that he could accurately reconstruct audio streams by taking
samples of the analog signal twice as many times per second as the numerical
value of the highest frequency used in the audio.
Few key facts:
a. The average human ear is able to hear frequencies from about 20 – 20,000 Hz
b. Human speech uses frequencies about 200 – 9000 Hz
c. Traditional telephone channels typically transmit frequencies from 300 – 3400 Hz
d. Standard equipment used to digitize human speech reproduces frequencies from
300 – 4000 Hz.
• Nyquist theorem dictates that you need to take 8000 samples per second times the
8 bits in each sample, for a product of 64,000 bits per second.
• Nyquist proved that an audio signal can accurately reproduce by sampling at twice
the highest frequency. Because he was after audio frequencies from 300-4000 Hz,
it would mean sampling 8000 times (2 * 4000) every second.
• The uncompressed audio (including that from of the G.711 audio codec) generates
64-kbps payload of digitized voice.
Two forms of G.711 codec:
a. u-law: used primarily in United States and Japan
b. a-law: used everywhere
• High compression codecs such as G.729 enables to compress the number
of samples send and thus use less bandwidth (8 kbps). Unfortunately,
comes at a cost.
• Early in voice digitization years, engineers created a measurement system
known as the mean opinion score (MOS) to rate the quality of voice codes
rated in scale of 1-5.
• In Cisco Unified Communications two codecs frequently referenced: G.711 and
G.729. G.711 is the common ground between all VoIP devices.
• More recently, Cisco begun to use G.722 as the default codec on new IP phone
models and in firmware for existing models that can support it. This codec
reproduces a wider range of frequencies, better audio quality than G.711 and uses
the same 64-kbps bandwidth as G.711and is only a more slightly complex codec to
operate. G.279 comes in two different variants:
a. G.729a (annex A): sacrifices some audio quality to achieve a much more
processor-efficient coding process.
b. G.729b (annex B): introduces support for voice activity detection (VAD),
which makes voice transmissions more efficient.
• Two types of Packet Voice DSP Module (PVDM) chip are PVDM2 and PVDM3. The
PVDM3s are the more powerful, more efficient, and has the additional capability of
processing video and audio.
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. RTP adds time stamps and sequence numbers to the header information.
• The Payload Type field in the RTP header is used to designate what type of RTP is in
use. This allows the remote device to put the packets back in order when it receives
them at the remote end (function of the sequence number) and use a buffer to
remove jitter (slight delays) between the packets to give a smooth audio playout
(function of the time stamp)
• RTCP primary job is statistics reporting. It delivers statistics between the two
devices participating in the call which includes packet count, packet delay, packet
loss and jitter (delay variations).
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. RTP adds time stamps and sequence numbers to the header information.
• The Payload Type field in the RTP header is used to designate what type of RTP is in
use. This allows the remote device to put the packets back in order when it receives
them at the remote end (function of the sequence number) and use a buffer to
remove jitter (slight delays) between the packets to give a smooth audio playout
(function of the time stamp)
• RTCP primary job is statistics reporting. It delivers statistics between the two
devices participating in the call which includes packet count, packet delay, packet
loss and jitter (delay variations).