Showing posts with label VOIP. Show all posts
Showing posts with label VOIP. Show all posts

Sunday, September 21, 2014

Echo Cancellation

Echo Cancellation
Echo Cancellation
An echo might be amusing enough when we are hiking in the mountains, but it is certainly a
nuisance during a phone call and might even make communication impossible.

Hearing one's own voice within the handset is a normal effect that calms the speaker. But a
delay between the direct sound and the echo of more than 25 ms might cause interruptions
and disturb severely the rhythm of communication.

Legacy PSTNs have to cope with echoes produced by non-aligned impedances when the
signal leaves the 4-wire system of the switch to enter the local 2-wire trunk to the end user.
Very careful impedance supervision at the reflection points and the use of echo cancellers
helps to solve the problem.

In VoIP systems, echo cancellation is included with the codecs in the DSPs or digital signal
processors. Hence, a software-based solution is used for IP soft-phones and the gateways of
the network. For a certain period of time, it stores an inverse pattern of the sent speech
sample. Then the DSP listens to the sound that is reflected by the distant party and subtracts
the stored signal. This achieves a near-zero amplitude for the sound disturbance. The
majority of echo cancellers cope with 32 ms echoes. That is the maximum storage time for
the speech sample.

Saturday, September 20, 2014

Voice Activity Detection

Voice Activity Detection
Voice Activity Detection
In a phone call, normally one party speaks while the other one listens to the speaker. As a
standard PSTN link provides 64 kbps full duplex channels, half of the capacity is usually
wasted during this kind of communication.

Voice over IP makes these resources available for other purposes if Voice Activity Detection
is activated.

How does this work? VAD detects the loudness of the speaker's voice and decides when to
stop speech frame packetizing. Before doing so, VAD waits for a fixed period of time, mostly
200 ms. In very noisy environments, VAD might have problems distinguishing between
speech and background noise. At the start of the call a defined signal-to-noise ratio, also
called the signal threshold, is used to decide whether to automatically activate or de-activate
the VAD operations.

If the VAD procedure detects the absence of voice and simply switches off speech
information transmission to the distant party, they might think that the call has been
interrupted. In order to avoid this, the systems inserts an artificial noise, called Comfort
Noise, to make the listening party believe that the link is still present.

Friday, September 19, 2014

Codec Bandwidth and Delay

Codec Bandwidth and Delay
Codec Bandwidth and Delay
When we are looking for the most efficient use of bandwidth, the aim should be to pack the
maximum number of speech samples into each single IP packet. However, this approach is
limited by the available network connection speed, which might require smaller data blocks.
This is shown clearly in the following example. On a 28.8 kbps modem-type trunk, an 86 byte
data packet needs 23.8 ms for transmission whereas on a 100 Mbps 100Base-T Ethernet
link only 6.8 μs are needed.

In both scenarios, additional time is needed for packetizing as the IP packet has to wait until
the last speech sample has been encapsulated before network transmission can start. For
example, including 3 additional speech frames in the same IP packet will produce a waiting
time of 30 ms with 10 ms more waiting time for every further speech sample.
Real-time IP applications, such as VoIP, are very delay sensitive. All delays - that is, speech
coding and compression, packetizing and transmission - have to be countered to keep the
overall delay time at a level where speech quality is acceptable.

Thursday, September 18, 2014

Codec and Bandwidth (2/2)

Codec and Bandwidth
Codec and Bandwidth
This seems quite bandwidth-inefficient as each subsequent 10 byte speech payload comes
with a dedicated overhead. To solve the problem, more than one speech frame needs be
transmitted per IP packet.

How can we increase the payload per Ethernet frame?
Let's try to pack 2 frames of speech information at 10 ms coming out of a G.729 codec and
calculate the resulting bandwidth. 66 bytes of overhead are responsible for 2 x 10 ms of
payload hence 86 bytes per frame or 688 bits. As two 10 ms speech frames are carried the
resulting amount of packets per second has to be divided by 2. This gives us 50 packets.
50 packets per second at 688 bits correspond to a bit rate of 34 kbps or 68 kbps for the full
duplex line capacity. Thus, a significant bandwidth reduction of 50% has been achieved.

Codec and Bandwidth

Codec and Bandwidth
Codec and Bandwidth
Bandwidth dimensioning in IP networks should support a calculated standard bit rate for the
expected speech and application data flow. Overload situations can be handled with
additional quality assurance procedures.

Let's look at an example: a 10 ms G.729 codec frame is encapsulated in an IP packet and
sent through a standard Ethernet network. A 66 byte overhead is used for 10 byte of speech
payload that corresponds to a ratio of 87 % to 13 % for overhead and payload per ethernet
frame. 66 Byte plus 10 byte result in 76 byte or 608 bits per 10ms - that´s a gross bit rate of
60.8 kbps. For a full duplex link twice this value, i.e., around 120 kbps of bandwidth must be
assigned.

Wednesday, September 17, 2014

Mean Option Score

Mean Option Score
Mean Option Score
In order to evaluate the performance of speech transmission under real conditions, a
measurement process for speech quality had to be defined. This would make it possible to
allocate a rating and thus compare the different codecs. In a first approach, only a coarse
assessment of the speech codecs' quality and efficiency was defined. The human ear and
brain can compensate for poor speech quality to a certain extent - two facts of humen
physiological that can not be reproduced easily using technical means. Thus, only subjective
measurements for speech quality can be used.

ITU procedures provide a test scenario where a mixed audience was exposed to various
speech samples under defined conditions. Speech quality was rated taking different aspects
into account such as the speaker's understandability, a dialogue test, subjective loudness
perception and the effort needed to understand a minimum level of information. Together, the
results give an index that represents the test candidates' opinion of the codec type been
tested. This index is called the Mean Opinion Score or MOS. The MOS can range from 1.0
(very bad) to 5.0 (excellent). Legacy circuit-switched ISDN telephony has an MOS of 4.4.

Tuesday, September 16, 2014

Basic Standards for Audio Coding (3/3)

Basic Standards for Audio Coding
Basic Standards for Audio Coding
The need for bandwidth-saving speech transmission becomes obvious when we realize that
many branch offices, for example, are connected to their main company by a WAN conection
with a data rate of only 128 kbps. Uncompressed speech transmission would consume large
parts of the available bandwidth leaving nothing for parallel-application data-transfer or other
speech connections. A variety of codecs can be applied to ensure a good compromise
between speech quality and efficient bandwidth use.

Packet-oriented data transmission suffers from many of problems: delays, echoes, wrong
packet sequencing and finally, packet loss. State-of-the-art codecs cope with all these
problems and achieve speech quality in packet data networks which is comparable to legacy
circuit-switched networks. The best-known codecs process signal according to ITU G.711,
G.723.1, G.729 and G.729A standards.

Monday, September 15, 2014

Basic Standards for Audio Coding (1/3)

Basic Standards for Audio Coding
Basic Standards for Audio Coding

IP telephony also starts with the analogue human voice signal. This signal is coded and
compressed with an analogue-digital converter. Together with a compression algorithm for
bandwidth-efficient data transport, this forms the encoder part of the digital signal transmitter.
In the next step, dedicated portions of the bit stream are formed into Internet Protocol
packets. This is called "packetizing". These packets are then sent through the IP network to
their final destination. The packets can be routed to the receiver in different ways. This might
lead to a varying delay in packet reception. At the receiving end a Jitter Buffer handles the
packets initially and sends on a constant stream of packets in the original sequence for
further processing.

Delayed or missing packets can severely decrease speech quality, although the Jitter Buffer
is able to compensate to a certain extent. Finally the speech packets are re-converted into an
audible analogue signal.

Basic Standards for Audio Coding (2/3)

Basic Standards for Audio Coding
Basic Standards for Audio Coding
Real-time speech transmission supported by IP resources requires a dedicated coding
system. The International Telecommunication Union (ITU) has developed a set of coding
schemes suitable for the different network bandwidths. These coding schemes - named
codecs (coder-decoder) - are part of the H.323 protocol family and use different converting
and reconverting algorithms to transform signals from one form into the other one. Different
degrees of compression are available to provide different levels of speech quality.
Redundancy information can be added to the original signal to facilitate decoding and
provide a certain amount of protection against transmission errors.

Coding techniques reduce the original signal data rate for efficient transmission without an
audible decrease in speech quality. This is achieved by the use of highly-sophisticated
algorithms - including predictive techniques - and adaptating those techniques to the specific
characteristic of the human voice.

Sunday, September 14, 2014

Digital Speech Transmission

This is because digital repeaters are used to perfectly restore the transmitted signal. This is
one of the key benefits of digital transmission which uses only logical "ones" and "zeroes",
i.e., tension or no tension, to code the original signal. These benefits soon encouraged
network infrastructure providers and operators to switch over to Pulse Code Modulation
systems, or PCMs.

Analogue speech signals are sampled at a frequency of 8 kHz, converted into a sequence of
"ones" and "zeroes" and transmitted to the distant party. It is not necessary to process the
entire human voice spectrum between 120 Hz and 10 kHz as this would require a lot of
bandwidth. A limited spectrum between 340 Hz and 3.4 kHz is enough to recognize the
speaker and to present his voice comfortably and understandably.

Speech samples are coded with 8 bits, resulting in a data rate of 64 kbps. The Pulse Code
Modulation that is used in ISDN does not apply a linear sort of quantisation. Small signals,
i.e. quiet speech are converted with more accuracy than large signals representing loud
speech.

The G.711 speech codec family defines two major codec types: a μ-Law Codec used in the
Americas and an A-Law type used in Europe. Both codecs apply a logarithmic sampling
method to convert an analogue signal into digital words of 8 bits, but use different scales for
amplitude quantisation. In both cases 28 = 256 different signal values are retrieved per 125
μs time frame. This is sufficient for good speech quality.

Digital Speech Transmission
Digital Speech Transmission



Analogue Speech Transmission

Analogue telephony uses the handset's microphone to convert speech, i.e., sound waves
into fluctuations of current that are transported through the wires of the PSTN.
The distant party's speaker in the handset reconverts this modulated current into audible
sound. In a normal phone call, most of the time one party talks while the other party is
listening. Nevertheless, signals are transmitted constantly in both directions as each party is
able to interrupt the other at any time. This transmission type is also called a full duplex
transmission. Analogue transmission perfectly meets the requirements of human speech
transmission but it is neither noise resistant nor transmission resource efficient.
In the early days of legacy analogue PSTNs, line amplifiers were used to refresh the signal
on its way from the source to the drain. Unfortunately, system noise was amplified too, which
very often led to very poor voice quality.
Analogue Speech Transmission
Analogue Speech Transmission

Thursday, September 11, 2014

VOIP and ISP

VOIP and ISP

Internet services providers (ISPs) have already achieved a good position in a tough market
fighting for end users. Unfortunately, the ISPs' margins have gone down as the fight for
subscribers has been price-driven and is still continuing . Hence, value added services are
badly need to assure additional revenue. This services could include access to non-data
communication, e.g., voice and fax services. This requires an upgrade of the backbone
infrastructure to be able to support this kind of service and assures a proper connection to
the PSTN using the gateways used.
VOIP and ISP
VOIP and ISP

Wednesday, September 10, 2014

PBX Migration towards VoIP

PBX Migration towards VoIP

Many companies own a quite powerful legacy PBX infrastructure with long-term service
agreements and a defined period for capex depreciation. Therefor, it is uneconomic to put it
out-of-service and replace it by new IP-PBX equipment. In many cases, IP-PBXs are used to
complement an existing PBX, also known as "PBX migration towards VoIP".
A gateway is used to connect the local area network to the existing internal telephone
network. Step by step, different departments are equipped with IP-PBXs as a subset of the
existing switchboard and with IP phones instead of standard terminals. Branch offices and
home offices can be integrated easily using IP-dial-in access to the company' s network.
As IP telephony is accepted by the users, new extensions are activated directly within the IPPBX.
Step by step, the legacy PBX can be replaced totally by the IP-PBX using teh
company's experience with the new technology and with copeing network load problems or
system break-down periods.
PBX Migration towards VoIP
PBX Migration towards VoIP

Tuesday, September 9, 2014

Single-Site and Multi-Site VoIP Location

Single-Site VoIP Location

A company's organizational structure strongly determines the requirements for an IP-PBX. A
single site location only requires a stand-alone solution with one central IP-PBX server and
gateway. The IP-PBX hosts all subscriber data whereas the gateway connects the company
to the legacy PSTN or to other IP networks. An integration of the IP-PBX with an existing
standard PBX creates no problems for the IP-PBX hardware.


Single-Site VoIP Location

Single-Site VoIP Location




Multi-Site VoIP Location

Multi-site solutions have different requirements for a convergent infrastructure. Both, IP-PBX
and gateway have to support multi-site environments. This could lead to dedicated IP-PBX
servers and gateways at each location. All components are interconnected all the time to
constantly align server data and states as a common numbering plan and common phone
directory are used. For cost efficiency reasons, the IP-PBX servers route the call as long as
possible within the IP network and deliver the call to the PSTN as close as possible to its
final destination. Additionally, the IP gateways must support dialling-in from any PSTN
signaling point to any branch office and call delivery to the PSTN gateway according to a
least cost routing plan in order to save costs.

Multi-Site VoIP Location

Multi-Site VoIP Location

Monday, September 8, 2014

VoIP Network Elements

VoIP Network Elements 

In order to create a Voice over IP infrastructure, three basic components are needed. The
end user needs an IP phone, also known as terminal.
This can either be an IP phone or an IP client installed on user's PC. The centre element is
an IP public branch exchange server (IP-PBX server) together with a gatekeeper. They are
responsible for connection request management and switching.
Finally, a gateway is needed as a third component to establish a packet-oriented connection
between the IP network elements and the Public Switched Telecommunication Network,
PSTN. Additionally, a Multi-point Control Unit, MCU, can be implemented to support voice
and video conferences with more than two terminals.

VoIP Network Elements
VoIP Network Elements 

Worries about IP-Telephony (VoIP)

Worries about IP-Telephony (VoIP)

Alongside all the advantages of IP telephony there are also some unanswered questions. For
example, IP telephony still has to prove its reliability and fail-safe qualities – a strong point of
classic PBXs. Doubts focus on PC technology and the stability of the software making up
network elements like elements and terminals within VoIP. But VoIP has the option of using
PC independent phones alongside PC based phones. Critical components, like gateways to
the public phone network or IP-PBX servers, can be made more fail-safe using clustering.
Speech quality in IP networks depends mainly on three factors:

1. Speech coding and compression, also called codec. Codecs compress the scanned
digital speech signal using special algorithms and so decrease the amount of data to
be transmitted.
2. Packet delay, also called jitter. There is always delay when compressing the speech
signal. Delay also occurs along the transmission route whenever speech packets are
cached in network elements like gateways, routers or IP terminals. Every time this is
done, latency time is increased.
3. Packet loss of speech transmissions, which mostly results in the late delivery of
speech packets.
Worries about IP-Telephony (VoIP)
Worries about IP-Telephony (VoIP)

Sunday, September 7, 2014

Advantages of IP-Telephony (VoIP)


Advantages of IP-Telephony (VoIP)

There are many advantages to IP telephony but the most significant is the cost-saving
potential, which has two main components.
Decreased infrastructure costs: As speech and data now share their infrastructure, the
maintenance of a parallel telephone network, which requires a costly switching technology
and its own wire distribution system, is much cheaper.
Savings on fees: The cheap connection routes, which until now only handled internal data
traffic, can now be used for the internal speech traffic as well. Least Cost Routing (LCR) is
used with external calls. This means that the currently cheapest provider is chosen and that
external calls are routed for as long as possible over the internal network before switching to
the external provider. For example, imagine a call from a company’s central office in Berlin to
an external participant in Nuremberg. The call is routed internally to the company’s own
branch in Nuremberg and there switches to the external network.


Advantages of IP-Telephony (VoIP)

Higher flexibility: When a company relocates, costly charges for the redirection of speech
and data traffic, or for user administration can be saved. IP telephony is far simpler than
having two separate speech and data networks. All user information is kept in a single data
structure and can be used for computer purposes as well as for telephony.
Another advantage is the linking of separate applications like email, telephony, voice mail
and fax within one single communication platform.
The inclusion of the internet increases performance over legacy PBXs. E-commerce offers
with special speech functions are possible. These can be activated by the customer by
clicking special call-me buttons on the website.
Also, a company using VoIP is no longer bound to equipment made by a particular
manufacturer, as VoIP uses international standards.

Friday, September 5, 2014

VOIP : The Voice over IP Concept

The Voice over IP Concept



The IP-PBX is a new type of PBX. Here speech is not routed over a separate infrastructure.
Instead, it’s an integrated component of a common infrastructure for speech and data
communication in a multimedia network.

The packet-oriented and connectionless communications protocol IP (Internet protocol) is
fundamental for linking these infrastructures. With the rapid development of the internet, IP
has become very important in the world of communications. Speech is compressed, wrapped
in IP packets and simultaneously transported on the same network along with other data.
If speech is transmitted, the bandwidth of the data-network is used only partially. As audio
and video data are transferred by IP, this is often referred to as IP telephony or Voice over IP
(VoIP).



IP-PBX itself is a software kit running usually on a server in the LAN. This kit controls all
dialling and connection processes inside and outside of the local multimedia network. The
most important advantage of an IP-PBX is the fact that no special switching hardware is
needed. So, unlike a classical PBX, there is no switching network. The IP-PBX provides the
switching functionality of a PBX simply by assigning IP addresses and substation numbers to
the IP telephony devices. These are linked to the LAN and coordinate the connection
requests. So IP telephony can take advantage of the advanced and established routing and
network technology of IP networks.