Howto:Having ECHO problems: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
(New page: ==Applies To== This information applies to * all innovaphone products any build <!-- Keywords: Echo Delay Jitter bad vocie quality --> ==More Information== If you have an echo problem...)
 
mNo edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 6: Line 6:
any build
any build


<!-- Keywords: Echo Delay Jitter bad vocie quality  -->
<!-- Keywords: Echo Delay bad vocie quality  -->
 


==More Information==
==More Information==
If you have an echo problem – pleas check this first:


Do you meet the Echo problem always ?
Having echo on the Endpoints
 
==General==


* between IP phones ?
The presence of echo occurs whenever the replicated signal delay exceeds 10msec , and becomes apparent to the speaker as reflected voice when the delay exceeds as little as 16 msec.


* between Isdn and IP phones ?
It is manifested to the far end as an altered replica of the speaker original.


* between analog phones and/or Dect phones to IP phones or Isdn (connected an analog adapter IP21,IP22,IP24)?
On traditional PSTN networks to end to end delay of a voice call is only a few milliseconds.
On IP networks the delay is much higher due to packetization. Even small packets of 20ms increase the delay so that echo becomes apperent and needs to be cancelled.
Processing delay VOIP gateway and the delay of the IP network itself increase further the end to end delay.


IF this problem is with analog or Dect Phone - they have no good jitter buffer - occurs with very old Dect phones in very few cases - the best solution here is - eliminate this phone.


If you have a general echo problem - you have a delay Problem in your Network
===Causes of echo===


To find this out
Echo may be caused in several places within a network:


Pleas watch PBX – Call screen (administration - pbx - calls)
* On analog lines the 2 wire to 4 wire conversion is not perfect and generates echo.
* In the handset microphone and receicer have an acoustic connection.
* Strong echo occurs during handsfree operation.


Extension A  NameA H323EFC:TRANSIT G729AB (42,6,3)  >> Extension B NameB H323EFC:TRANSIT G729AB (47,2,5)  Connected
==Echo Cancellation==
Echo cancellation involves first recognizing the originally transmitted signal that re-appears, with some delay, in the received signal.


The explanation for that screen is here Reference:Administration/PBX/Calls
Once the echo is recognized, it can be removed by 'subtracting' it from the transmitted or received signal.


The values in the brackets are
This technique is  implemented using a digital signal processor (DSP):


Round trip (RT) = Transit time of a data packet from A to B and back again.  
By correlation the received voice signal witht the transmitted voice signal, the echo canceller can create a model of the echo path which is in turn used to estimate the echo.  


Jitter = Latency time (time interval from the end of an event up to the start of the response).  
This estimation is then subtracted from the incoming voice signal allowing normal speech to pass through.  


Loss (PL) = Number of lost packets (packet loss).  
The core of the algorithm is an adaptive filter. The length of that filter affects the processing power needed and defines the max echo length that can be cancelled.


===Jitter===
Echo cancellation is done at the egde of the IP network, in the VOIP gateways and the IP phones. That ensure that the delay introduced by the IP network is not seen by the echocanceller.


If the jitter greater that 20 – the echo compensation does not work – normal is the jitter less that 5ms.
Echo cancellation in innovaphone products is never done over the IP network with its large and variable delay.  


If the jitter is greater tat 5 – please check your network – switch off flow control and buffers – real time protocols don't like this – if you have routers and different bandwidth – switch on RTP priority or configure an TOS value on the Phones and prioritize this traffic.
===Line Echo Cancellation===
The echo delay on a telephony line should be below a few milliseconds. However, todays PSTN networks are not alway pure TDM networks, they use internal IP or ATM technology so that higher delays of e.g 30ms can occur. So for VOIP gateways it is important that they can handle echo after a reasonable long delay.


===General Codec information===
Maximum Echo cancellation - maximum echo length (echo tail)


Use G.729 60ms WAN (default value)
  IP400                    16msec
IP3000                    24msec
IP302,IP305,IP800,IP6000  64msec
IP1200                    32/64msec


– pros: optimal bandwidth – tolerates packet loss
For the IP1200, due to added delay when using repeater chains, 32ms have been found to not be sufficiant to cancel echo under any possible cirumstances.  So the echo canceler has been changed from 32ms to 64ms from build 07-6060069 upwards.  Unfortunately, this reduces the maximum number of concurrent calls to from 12 to 10 for a single base.  This depends on an updated DSP code, so it is not a configuration option.
– contras: “subjective” turns the volume down – please correct via -> button on the phone


Use G.711 20ms for LAN
===Acoustic Echo Cancellation===
On IP phones the echo path is very limited (form the phone to the handset ), so the maximum echo length is not critical. That changes in handsfree mode, then the echo length depends on the size of the room. Since that phone and people in the room may move around, the echo changes during a call.  


- pros: like ISDN – echo isn’t audible - “subjective” turns the volume up
This type of echo can be reduced with a simple echo reducer. A echo reducer implements half duplex comminications ( mute the phones micro if the speaker is active ). This is done on the (old) IP200.
- contras: sensitive if you have packet loss – bandwidth intense


We support the The G.168 Echo Canceller on all our product with am maximum of 24ms jitter.
New phones ( IP200A,IP110,IP230 etc ) use an acoustic echocanceller that adapts continously during a call to room echo of up to 96ms.


You can Disable the Echo canceller but no adjustments to set- its default enabled.


Our echo compression is dynamic - contend sensitive -. no values to set.
===Troubleshooting Echo Cancellation===


It is no solution to make volume adjustments on the Endpoints for solving the Echo problem
It is no solution to make volume adjustments on the Endpoints for solving the Echo problem


If you encounter an echo problem – pleas check this :
Do you meet the Echo problem always ?
* between IP phones ? Simple echo tests using IP phones on one floor or even in one room may lead to the conclusion that there is echo. In this case there a 2 voice pathes, one direct acoustic path without delay and one over the IP network with delay. Echo tests between IP phones need to be done between IP phones without a direct acoustic path.
* between ISDN and IP phones ? Echo perceived on the IP phones results from the echo canceller on the ISDN gateway, echo perceived on the ISDN phone results from the echocanceller of the IP phone.
* between analog phones and/or Dect phones to IP phones or ISDN (connected an analog adapter IP21,IP22,IP24)?
* Echo on a gateway from one interface to the other ( e.g. PRI1 to PRI2 ) can be avoided if the PCM switch is used.


If this problem is with analog or Dect Phone  - occurs with very old Dect phones in very few cases, - the best solution here is - eliminate this phone. ( IP600 with G.711 DSP doesnt provide echo cancellation and relies on a echo-free DECT phone )


If you have a general voice qualitity problem you may have a problem in your IP network, but is another story.


== Related Articles ==
== Related Articles ==

Latest revision as of 16:18, 18 July 2008

Applies To

This information applies to

  • all innovaphone products

any build


More Information

Having echo on the Endpoints

General

The presence of echo occurs whenever the replicated signal delay exceeds 10msec , and becomes apparent to the speaker as reflected voice when the delay exceeds as little as 16 msec.

It is manifested to the far end as an altered replica of the speaker original.

On traditional PSTN networks to end to end delay of a voice call is only a few milliseconds. On IP networks the delay is much higher due to packetization. Even small packets of 20ms increase the delay so that echo becomes apperent and needs to be cancelled. Processing delay VOIP gateway and the delay of the IP network itself increase further the end to end delay.


Causes of echo

Echo may be caused in several places within a network:

  • On analog lines the 2 wire to 4 wire conversion is not perfect and generates echo.
  • In the handset microphone and receicer have an acoustic connection.
  • Strong echo occurs during handsfree operation.

Echo Cancellation

Echo cancellation involves first recognizing the originally transmitted signal that re-appears, with some delay, in the received signal.

Once the echo is recognized, it can be removed by 'subtracting' it from the transmitted or received signal.

This technique is implemented using a digital signal processor (DSP):

By correlation the received voice signal witht the transmitted voice signal, the echo canceller can create a model of the echo path which is in turn used to estimate the echo.

This estimation is then subtracted from the incoming voice signal allowing normal speech to pass through.

The core of the algorithm is an adaptive filter. The length of that filter affects the processing power needed and defines the max echo length that can be cancelled.

Echo cancellation is done at the egde of the IP network, in the VOIP gateways and the IP phones. That ensure that the delay introduced by the IP network is not seen by the echocanceller.

Echo cancellation in innovaphone products is never done over the IP network with its large and variable delay.

Line Echo Cancellation

The echo delay on a telephony line should be below a few milliseconds. However, todays PSTN networks are not alway pure TDM networks, they use internal IP or ATM technology so that higher delays of e.g 30ms can occur. So for VOIP gateways it is important that they can handle echo after a reasonable long delay.

Maximum Echo cancellation - maximum echo length (echo tail)

IP400                     16msec
IP3000                    24msec
IP302,IP305,IP800,IP6000  64msec
IP1200                    32/64msec

For the IP1200, due to added delay when using repeater chains, 32ms have been found to not be sufficiant to cancel echo under any possible cirumstances. So the echo canceler has been changed from 32ms to 64ms from build 07-6060069 upwards. Unfortunately, this reduces the maximum number of concurrent calls to from 12 to 10 for a single base. This depends on an updated DSP code, so it is not a configuration option.

Acoustic Echo Cancellation

On IP phones the echo path is very limited (form the phone to the handset ), so the maximum echo length is not critical. That changes in handsfree mode, then the echo length depends on the size of the room. Since that phone and people in the room may move around, the echo changes during a call.

This type of echo can be reduced with a simple echo reducer. A echo reducer implements half duplex comminications ( mute the phones micro if the speaker is active ). This is done on the (old) IP200.

New phones ( IP200A,IP110,IP230 etc ) use an acoustic echocanceller that adapts continously during a call to room echo of up to 96ms.


Troubleshooting Echo Cancellation

It is no solution to make volume adjustments on the Endpoints for solving the Echo problem

If you encounter an echo problem – pleas check this :

Do you meet the Echo problem always ?

  • between IP phones ? Simple echo tests using IP phones on one floor or even in one room may lead to the conclusion that there is echo. In this case there a 2 voice pathes, one direct acoustic path without delay and one over the IP network with delay. Echo tests between IP phones need to be done between IP phones without a direct acoustic path.
  • between ISDN and IP phones ? Echo perceived on the IP phones results from the echo canceller on the ISDN gateway, echo perceived on the ISDN phone results from the echocanceller of the IP phone.
  • between analog phones and/or Dect phones to IP phones or ISDN (connected an analog adapter IP21,IP22,IP24)?
  • Echo on a gateway from one interface to the other ( e.g. PRI1 to PRI2 ) can be avoided if the PCM switch is used.

If this problem is with analog or Dect Phone - occurs with very old Dect phones in very few cases, - the best solution here is - eliminate this phone. ( IP600 with G.711 DSP doesnt provide echo cancellation and relies on a echo-free DECT phone )

If you have a general voice qualitity problem you may have a problem in your IP network, but is another story.

Related Articles