Table Of Contents
Prerequisites for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
Information About NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
NextPort Dual-Filter G.168 Echo Canceller
How to Configure NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
Configuring NextPort Voice Tuning
Downloading NextPort SPE Firmware
Creating and Applying Voicecaps
Setting Voice Tuning Parameters with V Registers
Verifying Voicecap Configurations
Troubleshooting NextPort Voicecaps
Configuring the NextPort Dual-Filter G.168 Echo Canceller
Troubleshooting the NextPort Dual-Filter G.168 Echo Canceller Tail Length
Configuration Examples for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
High ERL in the Network: Example
Low ERL in the Network: Example
Clipped or Squelched Speech and Low ERL in the Network: Example
Echo Canceller Tail Coverage: Example
NextPort Voice Tuning and Background Noise Statistics with NextPort Dual-Filter G.168 Echo Cancellation
This feature allows you to dynamically configure voice services on the NextPort-based platforms: Cisco AS5350, Cisco AS5400, Cisco AS5400HPX, and Cisco AS5850. This feature also provides improved voice quality and statistics reporting and adds dual-filter G.168 echo canceller capability in NextPort SPE firmware (SPEware) version 10.2.2 and later with Cisco IOS Release 12.3(11)T and later.
Feature History for the NextPort Voice Tuning and Background Noise Statistics with NextPort Dual-Filter G.168 Echo Cancellation Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
•
Information About NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
•
How to Configure NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
•
Configuration Examples for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
Prerequisites for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
To use the NextPort Voice Tuning and Background Noise Statistics feature, you must be running NextPort service processing element (SPE) firmware version 8.8.1 or a later version and Cisco IOS Release 12.3(4)T or a later release.
To use the NextPort dual-filter G.168 echo canceller, you must be running SPE firmware version 10.2.2 or a later version and Cisco IOS Release 12.3(11)T or a later release.
Information About NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
To configure the features presented in this document, you should understand the following concepts:
•
NextPort Dual-Filter G.168 Echo Canceller
NextPort Dual-Filter G.168 Echo Canceller
Dual-filter G.168 echo canceller capability has been added to the CSMV6 dial feature card (DFC) for NextPort platforms. The NextPort dual-filter G.168 echo canceller (EC) improves voice quality in VoIP connections by providing relatively less residual echo leakage, better non-linear processing (NLP) timing, less clipping, and better comfort noise generation (CNG) in most environments.
The dual-filter G.168 echo canceller features two concurrently operating adaptive filters (which control echo tail coverage) and two double-talk detection functions. In addition, the comfort noise model uses "Hoth noise" spectrum shaping to better replicate the true noise spectrum.
The NextPort dual-filter G.168 echo canceller uses the same voice-tuning (VCtune) interface for configuring voicecap parameters as the Cisco-proprietary G.164 echo canceller. Adjusting the dual-filter echo canceller is carried out by using a voicecap or by using the Cisco IOS command-line interface (CLI) during configuration. You can also adjust settings while the system is running by using the show port log and show port operational-status commands. However because of the differences in internal operation of these ECs, there are some changes in the set of available parameters for voice tuning.
See the echo-cancel coverage command for updated Cisco IOS command usage with this feature. For information about voicecaps that are used with this feature, see the NextPort Dual-Filter G.168 Echo Canceller Whitepaper. For more information about the G.168 echo canceller, see the "Configuring Echo Cancellation" section of the Voice Port Configuration document in the Cisco IOS Voice Configuration Library.
The NextPort dual-filter G.168 echo canceller adds the following benefits on NextPort platforms:
•
Configurable parameters—Range checking that is performed on the voicecap parameters in the I960 NextPort layer has been updated. (Voicecap parameters in "raw mode" are never range-checked.)
•
Up to 64 ms of echo tail coverage—The NextPort dual-filter G.168 echo canceller supports echo tails from 8-ms to 64-ms in 8-ms increments. The echo-cancel coverage command limits the echo canceller coverage to 64-ms on NextPort platforms. For backwards compatibility, a voicecap used in "raw mode" will still configure older SPEware to settings greater than 64-ms when used with newer releases of Cisco IOS software. For situations when new SPEware is loaded onto an older Cisco IOS release, the NextPort dual-filter G.168 echo canceller automatically sets coverage time to 64 ms.
•
Updated set of reported statistics—Text in the show voice port command output has been changed to describe voicecap parameters and reported statistics. The show port operational-status command output has been updated to report TX/RX mean speech level statistics.
•
Power statistics (RX and TX)—These statistics average only the power that is received during signal periods that are classified as speech.
•
Unchanged configuration steps—Use voicecaps and the echo-cancel coverage command to configure this feature. See the "Voicecap Strings" section.
•
SPE firmware and Cisco IOS software packaging support—The SPEware that contains the dual-filter G.168 echo canceller is field-upgradeable and can be used interchangeably with previous firmware versions with no effect on platform call density. The new SPEware interoperates with any Cisco IOS software release that supports voicecaps.
Note
When older Cisco IOS software releases are used, voicecaps must be used in raw mode for some parameters. Some statistics may not be displayed or recorded properly with older software releases.
NextPort SPE Firmware
NextPort SPE firmware is software that drives the digital signal processor (DSP) portion of the NextPort dial feature cards (DFCs). NextPort firmware is bundled with Cisco IOS software.
NextPort SPE firmware runs on the NextPort DFC60, DFC108, 1 CT3_UPC 216, and UPC324 DFCs on the Cisco AS5350, Cisco AS5400, Cisco AS5400HPX, and Cisco AS5850 platforms. The ports on these modules can support modem, voice, fax, and digital services and can be aggregated at any of the following levels:
•
Slot level of the NextPort module
•
SPE level within the NextPort module
•
Individual port level
Note
To use the NextPort Voice Tuning and Background Noise Statistics feature, you must use the default bundled NextPort SPE firmware code that runs with Cisco IOS software. The Voice Tuning and Background Noise feature uses SPE firmware version 8.8.1 or a later version. The NextPort dual-filter G.168 echo canceller uses NextPort firmware version 10.2.2, which is bundled with Cisco IOS release 12.3(11)T. NextPort firmware version 10.2.2 can be used with Cisco IOS 12.3(7)T, 12.3(10), and later releases. Firmware can be downloaded from the Software Center on Cisco.com.
For more information about NextPort SPE firmware, see the NextPort SPE Release Notes on Cisco.com.
Voicecap Strings
Additional configuration of voice services on NextPort DFCs is achieved by configuring the voice tuning configuration capability (called voicecaps) using voicecap strings. Voicecap strings are created with the the voicecap entry command and are applied with the voicecap configure command.
Voice Tuning
Note
You must have specific knowledge of the behavior of the telephone network in order to use these voicecap capabilities. See the NextPort Voice Tuning White Paper on Cisco.com for a brief description of telephone network behavior.
This feature allows the following parameters, among others, to be configured:
•
PSTN gains—PSTN gains adjust the power levels at the PSTN side of a VoIP connection to make up for loss plan imbalances and to ensure minimum echo return losses (ERLs) in a call. PSTN gain is configured with the CLI rather than with voicecaps.
•
IP gains—IP gains adjust IP-side levels and are applied to the signal before it is propagated through the echo canceller. This point is also known as the reference signal.
•
Dynamic attenuation—Dynamic attenuation mitigates low volume calls when attenuation has been added on the PSTN call leg to compensate for low ERL calls.
•
Comfort noise generation (CNG)—CNG enables and disables echo canceller (EC) comfort noise.
•
Minimum ERL—Minimum ERL switches off near-end talker clipping and poor echo canceller performance.
Background Noise
The NextPort Voice Tuning and Background Noise Statistics feature reports EC background noise level, voice activity detection (VAD) background noise level, ERL level, and Acombined (ACOM) statistics by averaging the combined values that are computed over the duration of the call. These new statistics have been appended to the end of each entry in the voice log, which you can see in the output from show port operational-status and show port log commands.
How to Configure NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
This section contains the following tasks:
•
Configuring NextPort Voice Tuning
•
Configuring the NextPort Dual-Filter G.168 Echo Canceller
Configuring NextPort Voice Tuning
This section contains tasks to configure the NextPort Voice Tuning and Background Noise Statistics feature.
•
Downloading NextPort SPE Firmware (required)
•
Creating and Applying Voicecaps (required)
•
Setting Voice Tuning Parameters with V Registers (optional)
•
Verifying Voicecap Configurations (optional)
•
Troubleshooting NextPort Voicecaps (optional)
Downloading NextPort SPE Firmware
To download NextPort SPE firmware, use the following commands.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
spe {slot | slot/spe}
4.
firmware location [IFS:[/]]filename
5.
end
6.
copy running-config startup-config
DETAILED STEPS
Creating and Applying Voicecaps
The steps in this section allow you to configure a voicecap in global configuration mode on a single voice port. Although voicecaps can be used to configure any of the voice service parameters, voicecaps are primarily used to configure only those parameters that do not have associated Cisco IOS commands.
Restrictions
•
Voicecaps are configured in global configuration mode. A maximum of five voicecap entries can be defined.
•
Applying a voicecap is possible only in voice-port configuration mode. Once applied to a voice port, the voicecap affects all calls associated with that voice port.
•
To achieve the specified functionality, an SPE image capable of voice tuning must be used in conjunction with the Cisco IOS software and module controller software.
•
For backwards compatibility, a voicecap used in "raw mode" will configure older SPEware to allow echo canceller coverage settings greater than 64 ms when used with newer releases of Cisco IOS software. For situations when new SPEware is loaded onto an older Cisco IOS software release, the NextPort dual-filter G.168 echo canceller automatically sets coverage time to 64 ms.
Note
Voicecap parameters in "raw mode" are never range-checked.
For a list of available voicecap parameters and code words that are used with the NextPort dual-filter G.168 echo canceller feature, see the NextPort Dual-Filter G.168 Echo Canceller Whitepaper.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
voicecap entry name string
4.
voice-port slot/port:D
5.
voicecap configure name
6.
exit
DETAILED STEPS
Setting Voice Tuning Parameters with V Registers
The following sections contain information about setting voice tuning parameters with V registers.
Note
All data specified in dB is entered in the form (dB * 10). So, for example, to specify 6.0 dB, 60 must be entered.
•
Setting Comfort Noise Generation
Setting PSTN Gains
Note
Too much attenuation may cause some calls to have low volume speech. For more information, see the dynamic attenuation feature described in the NextPort Voice Tuning White Paper.
To fix poor loss plans and to ensure minimum ERLs, use PSTN gains to adjust the power levels on the PSTN call leg. To adjust these levels, make sure that the sum of the output attenuation, the input attenuation, and the lowest expected functional ERL is greater than the MinERL parameter setting described below. You should balance the power levels of the far-end talker and near-end talker as seen at the echo canceller.
Note
Use the CLI, not voicecap indices, to set PSTN gains.
Setting IP Gains
To adjust IP-side levels that are applied to the signal before it is propagated through the echo canceller, use IP gains. IP gains are controlled with the following V registers. The valid range for both input and output gain is -14 dB to 14 dB.
•
v261—IP output gain.
•
v263—IP input gain.
Note
There have been some instances where the IP-side power has been too high. Using index v263 can mitigate this problem.
Setting Dynamic Attenuation
To mitigate low volume calls when attenuation has been added on the PSTN call leg to compensate for low ERL calls, use dynamic attenuation. Dynamic attenuation is controlled with the following V registers:
•
v289—Dynamic EC Attenuation Feature Enable. Set to 1 to enable. Set to 0 to disable.
•
v290—Dynamic EC Attenuation Minimum ERL Value. Valid range is from 0 dB to 60 dB.
•
v291—Dynamic EC Attenuation Final Rout Gain. Set to the lowest level desired for PSTN output attenuation. This value is usually set to 0. Valid range is from -14 dB to 6 dB.
•
v292—Dynamic EC Attenuation Final Sin Gain. Set to the lowest level desired for PSTN input attenuation. This value is usually set to 0. Valid range is from -14 dB to 6 dB.
Setting Comfort Noise Generation
During periods of far-end single talk, the echo canceller engages the non-linear processor (NLP) to suppress residual echo. However, it will also suppress any noise signal that is coming from the near-end side. This can lead to dead silence, which the listener may confuse with a dropped call. To overcome this condition, comfort noise generation (CNG) is added.
To choose between NLP silence or background noise reproduction, use comfort noise generation. CNG is controlled with the following V register:
•
v294—CNG Enable. Set to 1 to enable. Set to 0 to disable.
Setting Minimum ERL
The echo canceller uses the minimum ERL (MinERL) value to decide whether the incoming signal on the PSTN call leg is an echo or a near-end talker. If this value is too high, the echo canceller will not properly identify echo and will not adapt. If this value is too low, clipping of the near-end talker may occur.
To reduce near-end talker clipping and poor echo canceller performance, use minimum ERL. MinERL is controlled with the following V register:
•
v270—Sets the level that the echo canceller expects the lowest ERL of the PSTN to be. The valid range is from 0 dB to 20 dB. The default is 6.
Verifying Voicecap Configurations
Use the following show commands in privileged EXEC mode to verify your configuration. Relevant fields are shown in bold.
SUMMARY STEPS
1.
show voice port
2.
show port operational-status slot/port
3.
show port voice log
DETAILED STEPS
Step 1
show voice port
Use this command to display configured voicecaps, for example:
Router# show voice portISDN 2/0:D - 2/0:DType of VoicePort is ISDNOperation State is DORMANTAdministrative State is UPNo Interface Down FailureDescription is not set...Station name None, Station number NoneTranslation profile (Incoming):Translation profile (Outgoing):Voicecap:EXAMPLEStep 2
show port operational-status slot/port
Use this command to display background noise level information on current calls. Significant fields are shown in bold in the following example:
Router# show port operational-status 1/0Slot/SPE/Port -- 1/0Service Type :Voice serviceVoice Codec :G.711 u-lawEcho Canceler Length :8 msEcho Cancellation Control :Echo cancellation - enabledEcho update - enabledNon-linear processor - enabledEcho reset coefficients - disabledHigh pass filter enable - disabledDigit detection enable :DTMF signaling - enabledVoice activity detection :DisabledComfort noise generation :Generate comfort noiseDigit relay enable :OOB Digit relay - disabledIB Digit relay - disabledInformation field size :20 msPlayout de-jitter mode :adaptiveEncapsulation protocol :RTPInput Gain :0.0 dBOutput Gain :0.0 dBTx/Rx SSRC :20/0Current playout delay :65 msMin/Max playout delay :65/105 msClock offset :142003 msPredictive concealment :0 msInterpolative concealment :0 msSilence concealment :0 msBuffer overflow discards :1End-point detection errors :0Tx/Rx Voice packets :1337/1341Tx/Rx signaling packets :0/0Tx/Rx comfort noise packets :0/0Tx/Rx duration :26745/26745 msTx/Rx voice duration :0/0 msOut of sequence packets :0Bad protocol headers :0Num. of late packets :0Num. of early packets :1Tx/Rx Power :-87.0/-57.3 dBm Tx/Rx Talker Level :-86.3/-57.0 dBmTX/RX Mean Speech level :-86.3/-57.0 dBmVAD Background noise level :6.2 dBmERL level :127.0 dBACOM level :127.0 dBTx/Rx current activity :silence/silenceTx/Rx byte count :213920/214240ECAN Background noise level :-83.4 dBmLatest SSRC value :391643394Number of SSRC changes :1Number of payload violations :0Step 3
show port voice log
Use this command to display background noise level information on completed calls. Significant fields are shown in bold in the following example:
Router# show port voice logPort 1/00 Events Log*Aug 22 07:59:27.515:Voice Terminate event:Disconnect Reason : normal call clearing (16)Call Timer : 57 secsCurrent playout delay : 65 msMin/Max playout delay : 65/105 msClock offset : 142003 msPredictive concealment : 0 msInterpolative concealment : 0 msSilence concealment : 0 msBuffer overflow discards : 1End-point detection errors : 0Tx/Rx Voice packets : 2813/2816Tx/Rx signaling packets : 0/0Tx/Rx comfort noise packets : 0/0Tx/Rx duration : 56260/56260 msTx/Rx voice duration : 0/0 msOut of sequence packets : 0Bad protocol headers : 0Num. of late packets : 0Num. of early packets : 1Tx/Rx Power : -87.0/-57.3 dBmTx/Rx Mean Speech Level : -86.7/-57.0 dBmTx/Rx Talker Level : -86.3/-57.0 dBmAverage VAD Background noise level : 6.2 dBmAverage ERL level : 127.0 dBAverage ACOM level : 127.0 dBTx/Rx current activity : silence/silenceTx/Rx byte count : 450080/450240Average ECAN Background noise level: -83.4 dBm*Aug 22 07:59:27.515:Voice SSRC change events:Latest ssrc value : 391643394Total ssrc changes : 1
Troubleshooting NextPort Voicecaps
Use the following debug and show commands in privileged EXEC mode to debug the application of a voicecap and to check debugging output:
SUMMARY STEPS
1.
debug nextport vsmgr detail
2.
debug dspapi detail
3.
show debug
DETAILED STEPS
Step 1
debug nextport vsmgr detail
Use this command to turn on debugging for NextPort voice services, for example:
Router# debug nextport vsmgr detailNextPort Voice Service Manager:NP Voice Service Manager Detail debugging is on...Step 2
debug dspapi detail
Use this command to turn on debugging for DSP API message event details, for example:
Router# debug dspapi detailDSP API:DSP API Command debugging is onDSP API Detail debugging is on...Step 3
show debug
Use this command to check voicecap application debugging. The significant field in the output is highlighted in bold in the following example:
Router# show debugNextPort Voice Service Manager:NP Voice Service Manager Detail debugging is onDSP API:DSP API Command debugging is onDSP API Detail debugging is on*Aug 22 08:34:47.399:dspapi [2/1:1 (4)] dsp_init*Aug 22 08:34:47.399:dspapi [2/1:1 (4)] dsp_voice_config_params:10 params*Aug 22 08:34:47.399: [0] ENCAP RTP:t_ssrc=20 r_ssrc=0 t_vpxcc=0 r_vpxcc=0ifp_payload_type=122 sid_support=19 tse_payload=101 seq_num_start=6303 redundancy=0 cc_payload_typRouter# e=125 fax_payload_type=122 alaw_pcm_switchover=8 mulaw_pcm_switchover=0 dtmf_payload_type=121, nte_rcv_payload_type=101dynamic_payload=0, codec=5*Aug 22 08:34:47.399: [1] PO_JITTER:mode=2 initial=60 max=200 min=40 fax_nom=300*Aug 22 08:34:47.399: [2] INBAND_SIG:mode=0x1 enable*Aug 22 08:34:47.399: [3] ECHO_CANCEL:flags=0x17 echo_len=256*Aug 22 08:34:47.399: [4] IDLE_CODE_DET:enable = 0 code=0x0 duration=6000*Aug 22 08:34:47.403: [5] GAIN:input=0 output=0*Aug 22 08:34:47.403: [6] CNG:Router# 1*Aug 22 08:34:47.403: [7] INFO_FIELD_SIZE:160*Aug 22 08:34:47.403: [8] DIGIT_RELAY:2*Aug 22 08:34:47.403: [9] VOICECAP:EXAMPLE*Aug 22 08:34:47.403:dspapi [2/1:1 (4)] dsp_start_service:G711_U (5)*Aug 22 08:34:47.403:Matched voicecap:v0=0 v1=1*Aug 22 08:34:47.403:msg length = 0x001D*Aug 22 08:34:47.403:session ID = 0x006D*Aug 22 08:34:47.403: msg tag = 0x0000*Aug 22 08:34:47.403: msg ID = 0xF201
Configuring the NextPort Dual-Filter G.168 Echo Canceller
The NextPort dual-filter G.168 echo canceller is enabled by default on NextPort platforms in Cisco IOS Release 12.3(11)T and later. You can set the echo canceller tail coverage time at the voice-port interface:
Router(config-voiceport)# echo-cancel coverage ?128 128 milliseconds echo canceller coverage16 16 milliseconds echo canceller coverage24 24 milliseconds echo canceller coverage32 32 milliseconds echo canceller coverage64 64 milliseconds echo canceller coverage8 8 milliseconds echo canceller coverageRouter(config-voiceport)# echo-cancel coverage 64The default coverage time is 32 ms for both 8.x and 10.2.2 SPEware versions.
Note
The maximum possible coverage for SPEware version 8.x is 128 ms. The maximum possible coverage for SPEware version 10.2.2 is 64 ms.
Troubleshooting the NextPort Dual-Filter G.168 Echo Canceller Tail Length
Echo cancel coverage cannot be set to more than 64 ms if you are using SPEware version 10.2.2 or later. A query with the echo-cancel coverage command fails to show 128 ms as an option, and the system will issue an invalid input warning if 128 ms is entered, as shown in the following example:
Router(config-voiceport)# echo-cancel coverage ?16 16 milliseconds echo canceller coverage24 24 milliseconds echo canceller coverage32 32 milliseconds echo canceller coverage64 64 milliseconds echo canceller coverage8 8 milliseconds echo canceller coverageRouter(config-voiceport)# echo-cancel coverage 128^% Invalid input detected at '^' marker.Router(config-voiceport)#Configuration Examples for NextPort Voice Tuning and the NextPort Dual-Filter G.168 Echo Canceller
The following sections contain examples that could be used to optimize a NextPort-based gateway for a given telephone network:
•
High ERL in the Network: Example
•
Low ERL in the Network: Example
•
Clipped or Squelched Speech and Low ERL in the Network: Example
•
Echo Canceller Tail Coverage: Example
High ERL in the Network: Example
Register v270 is used to set the limit for the minimum expected ERLs that the gateway will encounter. If the gateway encounters ERLs that are lower than the v270 setting, the echo canceller performance will be suboptimal.
The default setting for v270 is 6 dB. This setting should work well for usual telephone networks. However, when the gateway is used on a well-managed telephone network with organized loss plans in place, the ERL is often greater than 6 dB. In these cases, v270 can be raised. Making this change reduces any clipping of the near-end signal; however, it will under-perform if a low ERL is encountered.
In this example, the network is designed to have an ERL of 12 dB or greater. In this case, the following voicecap may improve performance. Notice that the value for v270 is entered as decibels multiplied by 10.
Router> enableRouter# configure terminalRouter(config)# voicecap entry qualityERL v270=120Router(config)# endLow ERL in the Network: Example
Unlike the scenario described in the example above, some telephone networks may not always produce sufficient ERLs to meet the default setting of 6 dB. The best way to solve this problem would be to institute better loss plans on the telephone network. However, since this is not always possible, a voicecap can be used to alleviate the problem.
A low ERL means that the echo canceller must do a much deeper cancellation to remove sufficient echo. Also, lowering the minimum ERL can increase the incidence of clipping. The best way to improve this situation is to make up for the telephone network's lack of loss plan by adding some loss in the gateway. If the lowest ERL seen is 4 dB, adding 1 dB of output attenuation and -1 dB of input gain will ensure that the echo canceller never sees more than a 6-dB effective ERL.
Adding this attenuation can be done by entering a voicecap, but using the CLI is the recommended approach in this example. The following commands set the gains that are needed for this example:
Router> enableRouter# configure terminalRouter(config)# voice-port 3/0:DRouter(config-voiceport)# output attenuation 1Router(config-voiceport)# input gain -1Router(config-voiceport)# endClipped or Squelched Speech and Low ERL in the Network: Example
In this example, a network in which signal level imbalance is already causing clipping to occur with a MinERL setting of 6 dB and in which ERLs of less than 6 dB are already occurring, a dual approach must be taken. To stop the clipping, the MinERL setting should be lowered to 12 dB. If 4-dB ERLs are occurring, 4 dB of attenuation must be added to the input and the output to ensure that there is 12 dB of effective ERL at the echo canceller (4 dB of real ERL, plus 4 dB of output attenuation, plus 4 dB of input attenuation equals 12 dB of effective ERL). To create these settings, the following commands are used:
Router> enableRouter# configure terminalRouter(config)# voicecap entry qualityERL v270=120Router(config)# voice-port 3/0:DRouter(config-voiceport)# voicecap configure qualityERLRouter(config-voiceport)# output attenuation 4Router(config-voiceport)# input gain -4Router(config-voiceport)# endDynamic Attenuation: Example
It is possible that worst-case settings are only required when the primary telephone circuits are all used and an alternate carrier with a poor loss plan must be used instead. For these cases, the dynamic attenuation feature removes the attenuation when the ERL is sufficient. In the following example, 4 dB of input and output attenuation is to be removed when it is not necessary to ensure the minimum ERL setting. To do this, the dynamic attenuation feature (using v289) is enabled. The required ERL must be set before attenuation is removed (using v290), and minimum attenuation levels for the input and output (using v291 and v292) must also be set. In this example, attenuation is set to 15 dB and then removed.
Router> enableRouter# configure terminalRouter(config)# voicecap entry dynatten v270=120 v289=1 v290=15 v291=0 v292=0Router(config)# voice-port 3/0:DRouter(config-voiceport)# voicecap configure dynattenRouter(config-voiceport)# output attenuation 4Router(config-voiceport)# input gain -4Router(config-voiceport)# endEcho Canceller Tail Coverage: Example
The following example adjusts echo canceller tail coverage to 64 ms on the Cisco AS5400:
Router(config) voice-port 1/0:0Router(config-voiceport)# echo-cancel coverage 64Additional References
The following sections provide references related to the NextPort Voice Tuning and Background Noise Statistics feature.
Related Documents
Related Topic Document TitleHow to configure QoS for Cisco features
Cisco IOS Quality of Service Solutions Configuration Guide, Release 12.3
Cisco IOS Release 12.3 mainline roadmap
Cisco IOS Release 12.3 Configuration Guides and Command References
Cisco AS5350 NextPort platform
Cisco AS5350 documentation index
Cisco AS5400 NextPort platform
Cisco AS5400 documentation index
Cisco AS5800 NextPort platform
Cisco AS5800 documentation index
Cisco AS5850 NextPort platform
Cisco AS5850 documentation index
How to configure your Cisco router or access server to support voice, video, and fax applications
Cisco IOS Voice Configuration Library, Release 12.3
How to use Cisco IOS commands to support voice, video, and fax applications
Cisco IOS Voice, Video, and Fax Command Reference, Release 12.3
How to use echo analysis for VoIP
How to use the G.168 echo canceller on voice platforms
How to use the NextPort dual-filter G.168 echo canceller
How to configure NextPort SPE firmware
How to use Cisco MGCs
How to configure NextPort SPE firmware
Combined Release Notes for Cisco NextPort SPE Firmware Version 8.x
How to configure MGCP
Configuring Media Gateway Control Protocol and Related Protocols
How to configure QoS for voice applications
How to configure voice ports
Configuring Voice Ports, Release 12.2
Enabling basic management protocols on Cisco access platforms
Information about the G.168 echo canceller
Understanding telephone network behavior
Cisco IOS Release 12.3
How to use the spe command
SPE and Firmware Download Enhancements
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new and modified commands.
New Commands
Modified Commands
echo-cancel coverage
To adjust the size of the echo canceller (EC) and to select the extended EC when the Cisco default EC is present, use the echo-cancel coverage command in voice-port configuration mode. To reset this command to the default value (64 ms), use the no form of this command.
echo-cancel coverage {8 | 16 | 24 | 32 | 48 | 64}
no echo-cancel coverage
Syntax Description
Defaults
64 milliseconds
Command Modes
Voice-port configuration
Command History
Usage Guidelines
Use the echo-cancel coverage command to adjust the coverage size of the EC. This command enables cancellation of voice that is sent out the interface and received on the same interface within the configured amount of time. If the local loop (the distance from the interface to the connected equipment that is producing the echo) is greater than this amount of time, the configured value of this command should be increased.
If you configure a greater value for this command, the EC takes longer to converge. In this case, you might hear a slight echo when the connection is initially set up. If the configured value for this command is too short, you might hear some echo for the duration of the call because the EC is not canceling the longer delay echoes.
There is no echo or echo cancellation on the network side (for example, the non-POTS side) of the connection.
Note
This command is valid only if the echo cancellation feature has been enabled. For more information, see the echo-cancel enable command.
The NextPort dual-filter G.168 echo canceller feature supports echo tails from 8ms to 64 ms in 8-ms increments. Use the echo-cancel coverage command to limit the echo canceller coverage to 64 ms on NextPort platforms. Tail length values greater than 64 ms are not accepted with the NextPort dual-filter G.168 echo canceller feature. For more information about the NextPort dual0filter G.168 echo canceller, see the NextPort Voice Tuning and Background Noise Statistics with NextPort Dual-Filter G.168 Echo Cancellation document on Cisco.com.
Examples
The following example enables the extended echo cancellation feature and adjusts the size of the echo canceller to 16 milliseconds:
voice-port 1/0/0echo-cancel coverage 16Related Commands
Command Descriptionecho-cancel enable (controller)
Enables echo cancellation on a controller.
echo-cancel enable
Enables echo cancellation on a voice port.
show port log
To display the service events generated by the sessions, use the show port log command in privileged EXEC mode.
show port [fax | voice] log [reverse slot/port] [slot | slot/port]
Syntax Description
Command Modes
Privileged EXEC
Command History
Examples
The following example shows value averages for VAD background noise, ERL level, ACOM level, and EC background noise level. Relevant fields in the output are shown in bold.
Router# show port voice log 1/0Port 1/00 Events Log*Aug 22 07:59:27.515:Voice Terminate event:Disconnect Reason : normal call clearing (16)Call Timer : 57 secsCurrent playout delay : 65 msMin/Max playout delay : 65/105 msClock offset : 142003 msPredictive concealment : 0 msInterpolative concealment : 0 msSilence concealment : 0 msBuffer overflow discards : 1End-point detection errors : 0Tx/Rx Voice packets : 2813/2816Tx/Rx signaling packets : 0/0Tx/Rx comfort noise packets : 0/0Tx/Rx duration : 56260/56260 msTx/Rx voice duration : 0/0 msOut of sequence packets : 0Bad protocol headers : 0Num. of late packets : 0Num. of early packets : 1Tx/Rx Power : -87.0/-57.3 dBmTx/Rx Mean : -86.7/-57.0 dBmAverage VAD Background noise level : 6.2 dBmAverage ERL level : 127.0 dBAverage ACOM level : 127.0 dBTx/Rx current activity : silence/silenceTx/Rx byte count : 450080/450240Average ECAN Background noise level: -83.4 dBm*Aug 22 07:59:27.515:Voice SSRC change events:Latest ssrc value : 391643394Total ssrc changes : 1The following example shows output for the Cisco AS5400 with the universal port dial feature card (DFC). The example shows the port voice history event log for slot 4, port 0.
Router# show port voice log 4/003:36:26: incoming caller number: 1100103:36:26: incoming called number: 2100103:36:26: Voice Connect event:Voice Codec : G.711 a-lawEcho Canceler Length : 64 tapsDigit detection enable : DTMF signaling - enabledEcho Cancellation Control : Echo cancellation - enabledEcho update - enabledNon-linear processor - enabledEcho reset coefficients -disabledHigh pass filter enable -disabledComfort noise generation : Generate comfort noiseVoice activity detection : DisabledInformation field size : 20 msDigit relay enable : OOB Digit relay -disabledIB Digit relay -disabledEncapsulation protocol : RTPPlayout de-jitter mode : adaptiveInput Gain : 0 dBOutput Gain : 0 dBTx/Rx SSRC : 0/003:36:27: Voice Terminate event:Disconnect Reason : Non-specific host disconnectCall Timer : 122 secsCurrent playout delay : 30 msMin/Max playout delay : 25/45 msClock offset : 528623613 msPredictive concealment : 0 msInterpolative concealment : 0 msSilence concealment : 0 msBuffer overflow discards : 0End-point detection errors : 0Tx/Rx Voice packets : 6130/6130Tx/Rx signaling packets : 0/0Tx/Rx comfort noise packets : 0/0Tx/Rx duration : 122615/122615Tx/Rx voice duration : 90000/82000:Out of sequence packets : 0Bad protocol headers : 0Num. of late packets : 0Num. of early packets : 0Tx/Rx Power : 932/101 dBmTx/Rx Mean : 364/325 dBm:Background noise level : -1 dBmERL level : 623 dBACOM level : 586 dBTx/Rx current activity : silence/silenceThe following example shows output for the Cisco AS5400 with the universal port DFC. The example shows the port fax history event log for slot 1, port 0.
Router# show port fax log 1/0Port 1/00 Events LogPort 1/01 Events LogPort 1/02 Events Log*Jan 1 18:39:30.499 UTC: Fax-relay Connect event:Max. transmission rate : 4800 bpsInformation field size : 20 msTCF generation : transparentTransmit level : -10 dBmEncapsulation protocol : UDPTLIFP Payload Type :ECM Disable : DisabledTable 1 describes the significant fields shown in the display. Voice output descriptions appear first. Fax output descriptions appear last.
Related Commands
show port operational-status
To display the active session statistics of a specific port or port range, use the show port operational-status command in privileged EXEC mode.
Cisco AS5350 and Cisco AS5400 with the NextPort Dial Feature Card
show port operational-status {slot | slot/port}
Cisco AS5800 with the Universal Port Card
show port operational-status {shelf/slot | shelf/slot/port}
Syntax Description
Command Modes
Privileged EXEC
Command History
Usage Guidelines
The port should have an associated active modem session when the command is executed. The show port operational-status command is equivalent to the show modem operational-status Cisco MICA technologies modem command.
Examples
The following example shows new VAD background noise and ECAN background noise statistics:
Router# show port operational-status 1/0Slot/SPE/Port -- 1/0/0Service Type :Voice serviceVoice Codec :G.711 u-lawEcho Canceler Length :8 msEcho Cancellation Control :Echo cancellation - enabledEcho update - enabledNon-linear processor - enabledEcho reset coefficients - disabledHigh pass filter enable - disabledDigit detection enable :DTMF signaling - enabledVoice activity detection :DisabledComfort noise generation :Generate comfort noiseDigit relay enable :OOB Digit relay - disabledIB Digit relay - disabledInformation field size :20 msPlayout de-jitter mode :adaptiveEncapsulation protocol :RTPInput Gain :0.0 dBOutput Gain :0.0 dBTx/Rx SSRC :20/0Current playout delay :65 msMin/Max playout delay :65/105 msClock offset :142003 msPredictive concealment :0 msInterpolative concealment :0 msSilence concealment :0 msBuffer overflow discards :1End-point detection errors :0Tx/Rx Voice packets :1337/1341Tx/Rx signaling packets :0/0Tx/Rx comfort noise packets :0/0Tx/Rx duration :26745/26745 msTx/Rx voice duration :0/0 msOut of sequence packets :0Bad protocol headers :0Num. of late packets :0Num. of early packets :1Tx/Rx Power :-87.0/-57.3 dBmTx/Rx Mean :-86.3/-57.0 dBmVAD Background noise level :6.2 dBmERL level :127.0 dBACOM level :127.0 dBTx/Rx current activity :silence/silenceTx/Rx byte count :213920/214240ECAN Background noise level :-83.4 dBmLatest SSRC value :391643394Number of SSRC changes :1Number of payload violations :0The following is sample output from the show port operational-status command on the Cisco AS5400 with the NextPort dial feature card (DFC). This example displays operational status for slot 2, SPE 0, port 1.
Router# show port operational-status 2/1slot/spe/Port -- 2/0/1Service Type :Modem serviceDisconnect Reason Info :0x0Type (=0 ): <unknown>Class (=0 ): OtherReason (=0 ): no disconnect has yet occurredModulation Standard :V.34+TX/RX Bit Rate :31200/14400Connect Protocol :LAP-MCompression :V.42bisCall Timer :47 secsLink Signal Quality :7SNR :37 dBTX/RX Symbol Rate :3429/3429TX/RX Carrier Frequency :1959/1959TX/RX Trellis Coding :16/16TX/RX Preemphasis Index :0/1TX/RX Constellation Shaping :On-Active/On-ActiveTX/RX Nonlinear Encoding :On-Active/On-ActiveTX/RX Precoding :On-Active/On-ActiveTX/RX Xmit Level Reduction :3/1 dBmReceive Level :-15 dBmFrequency Offset :0 HzPhase Jitter Frequency :2 HzPhase Jitter Level :2 degreesFar End Echo Level :-90 dBmPhase Roll :0 degreesRound Trip Delay :0 msecs>Total Retrains :0Self Test Error count :0EC Retransmission count :0EC packets transmitted/received OK :11/12EC packets (Received BAD/ABORTED) :0Characters transmitted/received :76/13Characters received BAD :0PPP/SLIP packets transmitted/received :0/0PPP/SLIP packets received (BAD/ABORTED) :0RBS Pattern :0Digital Pad :0Digital Pad Compensation :0The following example displays operational status for a V.110 digital service for the Cisco AS5400 on slot 2, SPE 3, port 23:
Router# show port operational-status 2/23slot/spe/Port -- 2/3/23Service Type : Digital serviceConnect Protocol : V110Data Bits : 8Parity : 0Stop Bits : 1TX/RX Bit Rate : 19200/19200Call Timer : 116 secsEC packets transmitted/received OK : 0/0EC packets (Received BAD/ABORTED) : 0PPP/SLIP packets transmitted, received : 8/8PPP/SLIP packets received (BAD/ABORTED) : 0Sync Loss : 0The following example shows output from the show port operational-status command for the Cisco AS5800 on shelf 1, slot 8:
Router# show port operational-status 1/8Shelf/Slot/SPE/Port -- 1/8/32/194Service Type : Modem serviceDisconnect Reason Info : 0x0Type (=0 ): <unknown>Class (=0 ): OtherReason (=0 ): no disconnect has yet occurredModulation Standard : V.34+TX/RX Bit Rate : 31200/31200Connect Protocol : LAP-MCompression : V.42bisCall Timer : 18 secsLink Signal Quality : 6SNR : 38 dBTX/RX Symbol Rate : 3429/3429TX/RX Carrier Frequency : 1959/1959TX/RX Trellis Coding : 16/16TX/RX Preemphasis Index : 0/1TX/RX Constellation Shaping : Off-None/On-ActiveTX/RX Nonlinear Encoding : Off-None/On-ActiveTX/RX Precoding : Off-None/On-ActiveTX/RX Xmit Level Reduction : 6/5 dBmReceive Level : -15 dBmFrequency Offset : 0 HzPhase Jitter Frequency : 5 HzPhase Jitter Level : 2 degreesFar End Echo Level : -90 dBmPhase Roll : 0 degreesRound Trip Delay : 1 msecsTotal Retrains : 0Self Test Error count : 0EC Retransmission count : 1EC packets transmitted/received OK : 34/14EC packets (Received BAD/ABORTED) : 0Characters transmitted/received : 9393/355Characters received BAD : 0PPP/SLIP packets transmitted/received : 0/0PPP/SLIP packets received (BAD/ABORTED) : 0RBS Pattern : 0Digital Pad : 0Digital Pad Compensation : 0...Table 2 describes the significant fields shown in the displays. The fields appear in alphabetical order.
Related Commands
voicecap configure
To apply a voicecap on NextPort platforms, use the voicecap configure command in voice-port configuration mode. To remove a voicecap, use the no form of this command.
voicecap configure name
no voicecap configure name
Syntax Description
Defaults
No default values or behavior
Command Modes
Voice-port configuration
Command History
Release Modification12.3(4)T
This command was introduced.
12.3(11)T
This command was integrated into Cisco IOS Release 12.3(11)T.
Usage Guidelines
The character value for the name argument must be identical to the value entered when you created the voicecap using the voicecap entry command.
Examples
The following example creates and applies a voicecap with the name qualityERL:
Router> enableRouter# configure terminalRouter(config)# voicecap entry qualityERL v270=120Router(config)# voice-port 3/0:DRouter(config-voiceport)# voicecap configure qualityERLRelated Commands
voicecap entry
To create a voicecap on NextPort platforms, use the voicecap entry command in global configuration mode. To disable a voicecap, use the no form of this command.
voicecap entry name string
no voicecap entry name string
Syntax Description
Defaults
No default values or behavior
Command Modes
Global configuration
Command History
Release Modification12.3(4)T
This command was introduced.
12.3(11)T
This command was integrated into Cisco IOS Release 12.3(11)T.
Usage Guidelines
This command configures NextPort service processing element (SPE) firmware through voicecap strings. This command allows you to assign values to specific registers. Voicecaps are applied to specific voice ports at system startup.
The voicecap values can be entered in a DSP-recognizable format called raw format. They can also be entered in standard format, which allows you to use commonly accessible values, such as decibels. Cisco recommends that you use the standard format when configuring NextPort SPE firmware.
Examples
The following example creates a simple voicecap string named "qualityERL" with V register 270 set to 120:
Router> enableRouter# configure terminalRouter(config)# voicecap entry qualityERL v270=120The following example sets the G.168 echo canceller echo tail length to 128 ms by setting the V5 voicecap register (in this case to the value 1024). This entry is only necessary with NextPort SPE firmware (SPEware) version 8.x and Cisco IOS Release 12.3(11)T or later.
Router> enableRouter# configure terminalRouter(config)# voicecap entry myvoicecap v5=1024Router(config)# voice-port 3/0:DRouter(config-voiceport)# voicecap configure myvoicecapRelated Commands
Glossary
ACOM—Acombined. Total ERL seen across the terminals of the echo canceller. ACOM is the sum of ERL and ERLE, or the total ERL seen by the network.
CLI—command-line interface.
CNG—comfort noise generation.
DFC—dial feature card.
DSP—digital signal processor.
ECM—Error Correction Mode.
ERL—echo return loss.
ERLE—echo return loss enhancement.
Hoth noise—Used to model indoor ambient noise when evaluating communications systems such as telephones. The official definition of Hoth noise is IEEE Standard 269-2001 (revision of IEEE Standard 269-1992), "Draft Standard Methods for Measuring Transmission Performance of Analog and Digital Telephone Sets, Handsets and Headsets."
NLP—non-linear processor.
SPE—service processing element.
RTP—Routing Table Protocol.
VAD—voice activity detection.
Note
See Internetworking Terms and Acronyms for terms not included in this glossary.
CCSP, the Cisco Square Bridge logo, Cisco Unity, Follow Me Browsing, FormShare, and StackWise are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and iQuick Study are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, GigaDrive, GigaStack, HomeLink, Internet Quotient, IOS, IP/TV, iQ Expertise, the iQ logo, iQ Net Readiness Scorecard, LightStream, Linksys, MeetingPlace, MGX, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, ProConnect, RateMUX, Registrar, ScriptShare, SlideCast, SMARTnet, StrataView Plus, SwitchProbe, TeleRouter, The Fastest Way to Increase Your Internet Quotient, TransPath, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0406R)
Copyright © 2003-2004 Cisco Systems, Inc. All rights reserved.
