SlideShare a Scribd company logo
1 of 4
Download to read offline
Information in Sage’s P.561 INMD Test
Renshou Dai
June 2, 2004
1 Introduction
INMD stands for In-service Non-intrusive Measurement Device. It is a passive voice quality mon-
itoring method based on ITU-T P.561 [1]. Two types of measurements are covered by INMD:
1, speech and noise characterization; 2, echo characterization. Sage’s current implementation of
INMD on the 960 platform focuses only on echo characterization. More specifically, once the pres-
ence of echo is detected, Sage’s INMD in 960 will report in real time the detected echo level and
echo delay. A graphical snapshot of the reference and echo signals is also displayed as further visual
confirmation. If the monitored DS1 are PRI-ISDN lines, then the source and destination phone
numbers associated with the monitored DS0 channel are also presented.
2 Test Configuration
When using INMD, a user should connect Sage’s 960 to the network as shown in Figure 1. Sage’s 960
Edge
switch and
echo
source
(TE)
2W POTS Network
(NT)
DS1 (PRI-ISDN)
Sage 960
1 2 3 4
Ref signal
(slave)
Echo signal
(master)
Figure 1: Connection diagram for running INMD on Sage’s 960.
has 4 DS1 spans, numbered as PCM1, PCM2, PCM3 and PCM4. Internally, PCM1 and PCM2 are
a pair controlled by one embedded processor, whereas PCM3 and PCM4 are another pair controlled
by another embedded processor. Since INMD entails precise relative delay measurement between
two input signals, Sage’s 960 must be configured in the following ways:
1. Two DS1 spans are used for INMD, although only the receiving ports need to be connected.
The two DS1 spans must be either the PCM1 and PCM2 pair, or the PCM3 and PCM4 pair.
Other combinations such as PCM1 and PCM4 or PCM2 and PCM3 etc are not allowed.
1
2. The chosen DS1 pair must be configured to “DUAL MONITOR” mode. When performing
span configuration through 960’s GUI, one only needs to (and must) configure the first span
(PCM1 or PCM3) of each DS1 pair. The partner DS1 span (PCM2 or PCM4) will be
configured automatically for you. A user configuration on the second DS1 span (PCM2 or
PCM4) has no effect. In “DUAL MONITOR” mode, the internal software will always set the
DS1 clock source to “EXTERNAL LOOP CLOCK” regardless what the user selects on the
GUI.
3. The INMD on 960 includes two seemingly separate tests that in practice must be treated as
an atomic pair. The 960 GUI names the tests as “INMD-SLAVE” and “INMD-MASTER”.
The “INMD-SLAVE” must be run on a DS0 channel of the first DS1 span (PCM1 or PCM3)
that is physically connected to the incoming reference signal. The “INMD-MASTER” must
be run on the same DS0 channel of the second DS1 span (PCM2 or PCM4) that is physically
connected to the incoming echo signal. The measurement results are only available at the
“INMD-MASTER” side.
4. If the DS1 lines being monitored are PRI-ISDN lines, then the D-channel must be specified
correctly when performing the span configuration in order for INMD to intercept the source
and destination phone numbers associated with the DS0 channel(s) being monitored. If one
is also interested in decoding all the ISDN call messages, one should also specify the TE and
NT modes correctly. As in “TERMINATE” mode, the 960 DS1 span should be set to match
the incoming NT or TE mode. For example, as shown in Figure 1, if the signal goes into
the receiving port of PCM1 is from the NT equipment, then 960’s PCM1 must be set to TE
mode. Internally, the PCM2 will automatically be set to NT mode to match the signal from
the TE equipment.
3 Operation principles
Simply speaking, INMD detects echo by principle of cross-correlation. More specifically, as im-
plemented in Sage’s 960, both “INMD-SLAVE” and “INMD-MASTER” have an internal signal-
analyzing window of 256 ms long (2048 samples at 8000Hz sampling rate). The presence of echo is
declared when all of the following conditions are met:
1. The echo signal side (“INMD-MASTER” side) analyzing window captured some signal (e(n))
whose power level (Pe) is greater than -60 dBm.
2. The reference signal side (“INMD-SLAVE” side) analyzing window also captured some signal
(r(n)) whose power level (Pr) is greater than Pe.
3. Circular cross-correlation is performed between r(n) and e(n):
cor(n) =
2047
m=0
r(m)e((m + n)%2048), n = 0, 1, 2, . . . , 2047
where % represents modular (remainder) calculation. In actual implementation, the circular
correlation is obtained through two forward FFTs and one inverse FFT. The FFT-based
approach is far more efficient than the direct brute-force computation. An example of the
2
signal r(n), e(n) and their circular-cross-correlation is shown in Figure 2. In Figure 2, the
correlation trace has been normalized as
cornormalized(n) =
cor(n)
r2(n) e2(n)
.
0 50 100 150 200 250
−1
−0.5
0
0.5
1
Reference signal
0 50 100 150 200 250
−1
−0.5
0
0.5
1
Echo signal
0 50 100 150 200 250
0
0.5
1
Time in ms
Cross−correlation trace
Figure 2: An exemplary reference signal, echo signal and their normalized cross-
correlation trace. In this example, the echo path is flat. Echo delay is 50 ms and
echo level is -10 dB.
4. Check to see if r(n) and e(n) are narrow-band tone signals. If yes (they are tone signals),
then ignore the captured signals, and restart capturing new signals again. Mathematically
speaking, the cross-correlation cor(n) will truly resemble the echo impulse response h(n) only
if the reference signal r(n) is “white noise” that has flat spectrum in frequency domain. If r(n)
is a “highly-colored” narrow-band tone signal, then the obtained cor(n) does not resemble
the echo impulse response h(n) because the excitation signal r(n) did not excite all aspects
(all spectrum) of the “system” (echo path). More specifically, the echo delay measurement
will be affected. This is a classical signal processing problem, not a problem specific to Sage’s
implementation. If r(n) and e(n) are determined to be valid voice-like complex signals, then
the INMD algorithm will proceed to the following steps.
5. Locate the peak on |cor(n)|, and record the index ix that corresponds to the peak. Then
re-compute the “linear” cross-correlation at the following 8 points (within 1 ms span):
R(n) =
2047−ix−n
m=0
r(m)e(ix + m + n), n = 0, 1, 2, 3, 4, 5, 6, 7
Then calculate the following ratio:
ratio =
7
n=0 R2(n)
2047−ix
n=0 r2(n) 2047
n=ix e2(n)
If this ratio is greater than 0.36, then the presence of an echo is detected, and ix/8 is the
echo delay in ms. The echo level is computed as:
EchoLeveldB = 10 log 10(
2047
n=ix e2(n)
2047−ix
n=0 r2(n)
)
3
The reasons for performing the linear cross-correlation at 8 points and later summing up their
total “contribution” is to account for the dispersion effect that is always present on a real
echo path.
6. The delay adjusted signals r(n) and e(n + ix) are sent to the display in linear scale. Since
the analyzing window size is set to 256 ms, an echo with delay longer than 256 ms will not
be detected. The presence of echo is detected and reported within 256 ms.
References
[1] “In-service non-intrusive measurement device-Voice service measurements,” ITU-T Recom-
mendation P.561, July, 2002.
4

More Related Content

What's hot

NetSim Technology Library- Propagation models
NetSim Technology Library- Propagation modelsNetSim Technology Library- Propagation models
NetSim Technology Library- Propagation modelsVishal Sharma
 
Pulse Code Modulation
Pulse Code Modulation Pulse Code Modulation
Pulse Code Modulation ZunAib Ali
 
DSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesDSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesAmr E. Mohamed
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effectsPeriyanayagiS
 
ECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing ProjectECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing Project?? ?
 
Differential Modulation and Non-Coherent Detection in Wireless Relay Networks
Differential Modulation and Non-Coherent Detection in Wireless Relay NetworksDifferential Modulation and Non-Coherent Detection in Wireless Relay Networks
Differential Modulation and Non-Coherent Detection in Wireless Relay Networksmravendi
 
Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Sourjya Dutta
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulationUmang Gupta
 
ECE 569 project 2
ECE 569 project 2ECE 569 project 2
ECE 569 project 2?? ?
 
Ch6 digital transmission of analog signal pg 99
Ch6 digital transmission of analog signal pg 99Ch6 digital transmission of analog signal pg 99
Ch6 digital transmission of analog signal pg 99Prateek Omer
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wedVin Voro
 
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...IRJET Journal
 
Digital data transmission
Digital data transmissionDigital data transmission
Digital data transmissionBZU lahore
 
Dwpt Based FFT and Its Application to SNR Estimation in OFDM Systems
Dwpt Based FFT and Its Application to SNR Estimation in OFDM SystemsDwpt Based FFT and Its Application to SNR Estimation in OFDM Systems
Dwpt Based FFT and Its Application to SNR Estimation in OFDM SystemsCSCJournals
 
Sigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital ConvertersSigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital ConvertersSatish Patil
 

What's hot (19)

NetSim Technology Library- Propagation models
NetSim Technology Library- Propagation modelsNetSim Technology Library- Propagation models
NetSim Technology Library- Propagation models
 
Chap 5
Chap 5Chap 5
Chap 5
 
Pulse Code Modulation
Pulse Code Modulation Pulse Code Modulation
Pulse Code Modulation
 
DSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course OutlinesDSP_2018_FOEHU - Lec 0 - Course Outlines
DSP_2018_FOEHU - Lec 0 - Course Outlines
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effects
 
ECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing ProjectECE 569 Digital Signal Processing Project
ECE 569 Digital Signal Processing Project
 
Differential Modulation and Non-Coherent Detection in Wireless Relay Networks
Differential Modulation and Non-Coherent Detection in Wireless Relay NetworksDifferential Modulation and Non-Coherent Detection in Wireless Relay Networks
Differential Modulation and Non-Coherent Detection in Wireless Relay Networks
 
Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...Wavelet transform and its applications in data analysis and signal and image ...
Wavelet transform and its applications in data analysis and signal and image ...
 
EEP306: Delta modulation
EEP306: Delta modulationEEP306: Delta modulation
EEP306: Delta modulation
 
ECE 569 project 2
ECE 569 project 2ECE 569 project 2
ECE 569 project 2
 
Baseband Digital Data Transmission
Baseband Digital Data TransmissionBaseband Digital Data Transmission
Baseband Digital Data Transmission
 
Ch6 digital transmission of analog signal pg 99
Ch6 digital transmission of analog signal pg 99Ch6 digital transmission of analog signal pg 99
Ch6 digital transmission of analog signal pg 99
 
Tele3113 wk9wed
Tele3113 wk9wedTele3113 wk9wed
Tele3113 wk9wed
 
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...
Performance Evaluation of Iterative Receiver using 16-QAM and 16-PSK Modulati...
 
Digital data transmission
Digital data transmissionDigital data transmission
Digital data transmission
 
48
4848
48
 
Ac35162165
Ac35162165Ac35162165
Ac35162165
 
Dwpt Based FFT and Its Application to SNR Estimation in OFDM Systems
Dwpt Based FFT and Its Application to SNR Estimation in OFDM SystemsDwpt Based FFT and Its Application to SNR Estimation in OFDM Systems
Dwpt Based FFT and Its Application to SNR Estimation in OFDM Systems
 
Sigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital ConvertersSigma-Delta Analog to Digital Converters
Sigma-Delta Analog to Digital Converters
 

Viewers also liked

How to Get Back a Ex Girlfriend Against All Odds
How to Get Back a Ex Girlfriend Against All OddsHow to Get Back a Ex Girlfriend Against All Odds
How to Get Back a Ex Girlfriend Against All OddsKokoshungsan Ltd.
 
presentation-wines-en
presentation-wines-enpresentation-wines-en
presentation-wines-enJoel Devalez
 
Homework February 4
Homework February 4Homework February 4
Homework February 4Kelly Neal
 
Freight movement
Freight movementFreight movement
Freight movementMohd Bakhsh
 
Systems Admin - Landlord Payments Process
Systems Admin - Landlord Payments ProcessSystems Admin - Landlord Payments Process
Systems Admin - Landlord Payments ProcessSteve Best
 
Recovery from Mental Illness... Offering Hope Through Your Personal Journey
Recovery from Mental Illness... Offering Hope Through Your Personal JourneyRecovery from Mental Illness... Offering Hope Through Your Personal Journey
Recovery from Mental Illness... Offering Hope Through Your Personal JourneyThe Royal Mental Health Centre
 
дидактичний матер ал мартиненко н.м.
дидактичний матер ал мартиненко н.м.дидактичний матер ал мартиненко н.м.
дидактичний матер ал мартиненко н.м.Helen Golovina
 
6 Different Non-Surgical Breast Enlargement Tips
6 Different Non-Surgical Breast Enlargement Tips6 Different Non-Surgical Breast Enlargement Tips
6 Different Non-Surgical Breast Enlargement Tipsleadingedgehealth
 

Viewers also liked (20)

笑顔の力 (Japanese)
笑顔の力 (Japanese)笑顔の力 (Japanese)
笑顔の力 (Japanese)
 
The usa
The usaThe usa
The usa
 
How to Get Back a Ex Girlfriend Against All Odds
How to Get Back a Ex Girlfriend Against All OddsHow to Get Back a Ex Girlfriend Against All Odds
How to Get Back a Ex Girlfriend Against All Odds
 
PAPERBAG.2
PAPERBAG.2PAPERBAG.2
PAPERBAG.2
 
presentation-wines-en
presentation-wines-enpresentation-wines-en
presentation-wines-en
 
Homework February 4
Homework February 4Homework February 4
Homework February 4
 
Mkk d369
Mkk d369Mkk d369
Mkk d369
 
ecegwp
ecegwpecegwp
ecegwp
 
Abc
AbcAbc
Abc
 
videomon
videomonvideomon
videomon
 
Freight movement
Freight movementFreight movement
Freight movement
 
Hypermedia final pp
Hypermedia final ppHypermedia final pp
Hypermedia final pp
 
Systems Admin - Landlord Payments Process
Systems Admin - Landlord Payments ProcessSystems Admin - Landlord Payments Process
Systems Admin - Landlord Payments Process
 
Top 2 problemas ambientales
Top 2  problemas ambientalesTop 2  problemas ambientales
Top 2 problemas ambientales
 
Trabajo2
Trabajo2Trabajo2
Trabajo2
 
Recovery from Mental Illness... Offering Hope Through Your Personal Journey
Recovery from Mental Illness... Offering Hope Through Your Personal JourneyRecovery from Mental Illness... Offering Hope Through Your Personal Journey
Recovery from Mental Illness... Offering Hope Through Your Personal Journey
 
Wellness Recovery Action Plan®
Wellness Recovery Action Plan®Wellness Recovery Action Plan®
Wellness Recovery Action Plan®
 
дидактичний матер ал мартиненко н.м.
дидактичний матер ал мартиненко н.м.дидактичний матер ал мартиненко н.м.
дидактичний матер ал мартиненко н.м.
 
6 Different Non-Surgical Breast Enlargement Tips
6 Different Non-Surgical Breast Enlargement Tips6 Different Non-Surgical Breast Enlargement Tips
6 Different Non-Surgical Breast Enlargement Tips
 
Shhgar overview
Shhgar overviewShhgar overview
Shhgar overview
 

Similar to inmd

Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713IOSRJVSP
 
DME Interference Mitigation through Blanking
DME Interference Mitigation through BlankingDME Interference Mitigation through Blanking
DME Interference Mitigation through BlankingNikhil Anand
 
Lect2 up390 (100329)
Lect2 up390 (100329)Lect2 up390 (100329)
Lect2 up390 (100329)aicdesign
 
ADC Conveter Performance and Limitations.ppt
ADC Conveter Performance and Limitations.pptADC Conveter Performance and Limitations.ppt
ADC Conveter Performance and Limitations.pptBEVARAVASUDEVAAP1813
 
Frequency hopping signal of dds based on fpga hardware
Frequency hopping signal of dds based on fpga hardwareFrequency hopping signal of dds based on fpga hardware
Frequency hopping signal of dds based on fpga hardwareVinsion Chan
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Rimple Mahey
 
linear equalizer and turbo equalizer
linear equalizer and turbo equalizerlinear equalizer and turbo equalizer
linear equalizer and turbo equalizerDivya_mtech
 
Introduction to communication system lecture5
Introduction to communication system lecture5Introduction to communication system lecture5
Introduction to communication system lecture5Jumaan Ally Mohamed
 
Software Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGASoftware Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGAIRJET Journal
 
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...Iaetsd Iaetsd
 

Similar to inmd (20)

Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Real time signal processing
Real time signal processingReal time signal processing
Real time signal processing
 
Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713Real Time System Identification of Speech Signal Using Tms320c6713
Real Time System Identification of Speech Signal Using Tms320c6713
 
DSP 2.pdf
DSP 2.pdfDSP 2.pdf
DSP 2.pdf
 
DME Interference Mitigation through Blanking
DME Interference Mitigation through BlankingDME Interference Mitigation through Blanking
DME Interference Mitigation through Blanking
 
Lect2 up390 (100329)
Lect2 up390 (100329)Lect2 up390 (100329)
Lect2 up390 (100329)
 
ADC Conveter Performance and Limitations.ppt
ADC Conveter Performance and Limitations.pptADC Conveter Performance and Limitations.ppt
ADC Conveter Performance and Limitations.ppt
 
Frequency hopping signal of dds based on fpga hardware
Frequency hopping signal of dds based on fpga hardwareFrequency hopping signal of dds based on fpga hardware
Frequency hopping signal of dds based on fpga hardware
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01
 
Ofdm.pptx
Ofdm.pptxOfdm.pptx
Ofdm.pptx
 
Dsp ppt
Dsp pptDsp ppt
Dsp ppt
 
linear equalizer and turbo equalizer
linear equalizer and turbo equalizerlinear equalizer and turbo equalizer
linear equalizer and turbo equalizer
 
Introduction to communication system lecture5
Introduction to communication system lecture5Introduction to communication system lecture5
Introduction to communication system lecture5
 
Software Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGASoftware Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGA
 
Coding
CodingCoding
Coding
 
Cdma and 3 g
Cdma and 3 gCdma and 3 g
Cdma and 3 g
 
v90p
v90pv90p
v90p
 
Unit 3 ppt
Unit 3 pptUnit 3 ppt
Unit 3 ppt
 
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...
Iaetsd vlsi architecture of fm0 manchester encoding using sols technique for ...
 
Hr3114661470
Hr3114661470Hr3114661470
Hr3114661470
 

More from Renshou Dai (18)

autodrive
autodriveautodrive
autodrive
 
g168wp
g168wpg168wp
g168wp
 
moip
moipmoip
moip
 
dgr
dgrdgr
dgr
 
pvitwp
pvitwppvitwp
pvitwp
 
seminar4
seminar4seminar4
seminar4
 
smoswp
smoswpsmoswp
smoswp
 
ltewp
ltewpltewp
ltewp
 
ucttirm
ucttirmucttirm
ucttirm
 
UCTTintro
UCTTintroUCTTintro
UCTTintro
 
seminar
seminarseminar
seminar
 
rfio
rfiorfio
rfio
 
pvitwp
pvitwppvitwp
pvitwp
 
phnsrl
phnsrlphnsrl
phnsrl
 
pbchwp
pbchwppbchwp
pbchwp
 
faxtrx
faxtrxfaxtrx
faxtrx
 
evm
evmevm
evm
 
ecsnd3
ecsnd3ecsnd3
ecsnd3
 

inmd

  • 1. Information in Sage’s P.561 INMD Test Renshou Dai June 2, 2004 1 Introduction INMD stands for In-service Non-intrusive Measurement Device. It is a passive voice quality mon- itoring method based on ITU-T P.561 [1]. Two types of measurements are covered by INMD: 1, speech and noise characterization; 2, echo characterization. Sage’s current implementation of INMD on the 960 platform focuses only on echo characterization. More specifically, once the pres- ence of echo is detected, Sage’s INMD in 960 will report in real time the detected echo level and echo delay. A graphical snapshot of the reference and echo signals is also displayed as further visual confirmation. If the monitored DS1 are PRI-ISDN lines, then the source and destination phone numbers associated with the monitored DS0 channel are also presented. 2 Test Configuration When using INMD, a user should connect Sage’s 960 to the network as shown in Figure 1. Sage’s 960 Edge switch and echo source (TE) 2W POTS Network (NT) DS1 (PRI-ISDN) Sage 960 1 2 3 4 Ref signal (slave) Echo signal (master) Figure 1: Connection diagram for running INMD on Sage’s 960. has 4 DS1 spans, numbered as PCM1, PCM2, PCM3 and PCM4. Internally, PCM1 and PCM2 are a pair controlled by one embedded processor, whereas PCM3 and PCM4 are another pair controlled by another embedded processor. Since INMD entails precise relative delay measurement between two input signals, Sage’s 960 must be configured in the following ways: 1. Two DS1 spans are used for INMD, although only the receiving ports need to be connected. The two DS1 spans must be either the PCM1 and PCM2 pair, or the PCM3 and PCM4 pair. Other combinations such as PCM1 and PCM4 or PCM2 and PCM3 etc are not allowed. 1
  • 2. 2. The chosen DS1 pair must be configured to “DUAL MONITOR” mode. When performing span configuration through 960’s GUI, one only needs to (and must) configure the first span (PCM1 or PCM3) of each DS1 pair. The partner DS1 span (PCM2 or PCM4) will be configured automatically for you. A user configuration on the second DS1 span (PCM2 or PCM4) has no effect. In “DUAL MONITOR” mode, the internal software will always set the DS1 clock source to “EXTERNAL LOOP CLOCK” regardless what the user selects on the GUI. 3. The INMD on 960 includes two seemingly separate tests that in practice must be treated as an atomic pair. The 960 GUI names the tests as “INMD-SLAVE” and “INMD-MASTER”. The “INMD-SLAVE” must be run on a DS0 channel of the first DS1 span (PCM1 or PCM3) that is physically connected to the incoming reference signal. The “INMD-MASTER” must be run on the same DS0 channel of the second DS1 span (PCM2 or PCM4) that is physically connected to the incoming echo signal. The measurement results are only available at the “INMD-MASTER” side. 4. If the DS1 lines being monitored are PRI-ISDN lines, then the D-channel must be specified correctly when performing the span configuration in order for INMD to intercept the source and destination phone numbers associated with the DS0 channel(s) being monitored. If one is also interested in decoding all the ISDN call messages, one should also specify the TE and NT modes correctly. As in “TERMINATE” mode, the 960 DS1 span should be set to match the incoming NT or TE mode. For example, as shown in Figure 1, if the signal goes into the receiving port of PCM1 is from the NT equipment, then 960’s PCM1 must be set to TE mode. Internally, the PCM2 will automatically be set to NT mode to match the signal from the TE equipment. 3 Operation principles Simply speaking, INMD detects echo by principle of cross-correlation. More specifically, as im- plemented in Sage’s 960, both “INMD-SLAVE” and “INMD-MASTER” have an internal signal- analyzing window of 256 ms long (2048 samples at 8000Hz sampling rate). The presence of echo is declared when all of the following conditions are met: 1. The echo signal side (“INMD-MASTER” side) analyzing window captured some signal (e(n)) whose power level (Pe) is greater than -60 dBm. 2. The reference signal side (“INMD-SLAVE” side) analyzing window also captured some signal (r(n)) whose power level (Pr) is greater than Pe. 3. Circular cross-correlation is performed between r(n) and e(n): cor(n) = 2047 m=0 r(m)e((m + n)%2048), n = 0, 1, 2, . . . , 2047 where % represents modular (remainder) calculation. In actual implementation, the circular correlation is obtained through two forward FFTs and one inverse FFT. The FFT-based approach is far more efficient than the direct brute-force computation. An example of the 2
  • 3. signal r(n), e(n) and their circular-cross-correlation is shown in Figure 2. In Figure 2, the correlation trace has been normalized as cornormalized(n) = cor(n) r2(n) e2(n) . 0 50 100 150 200 250 −1 −0.5 0 0.5 1 Reference signal 0 50 100 150 200 250 −1 −0.5 0 0.5 1 Echo signal 0 50 100 150 200 250 0 0.5 1 Time in ms Cross−correlation trace Figure 2: An exemplary reference signal, echo signal and their normalized cross- correlation trace. In this example, the echo path is flat. Echo delay is 50 ms and echo level is -10 dB. 4. Check to see if r(n) and e(n) are narrow-band tone signals. If yes (they are tone signals), then ignore the captured signals, and restart capturing new signals again. Mathematically speaking, the cross-correlation cor(n) will truly resemble the echo impulse response h(n) only if the reference signal r(n) is “white noise” that has flat spectrum in frequency domain. If r(n) is a “highly-colored” narrow-band tone signal, then the obtained cor(n) does not resemble the echo impulse response h(n) because the excitation signal r(n) did not excite all aspects (all spectrum) of the “system” (echo path). More specifically, the echo delay measurement will be affected. This is a classical signal processing problem, not a problem specific to Sage’s implementation. If r(n) and e(n) are determined to be valid voice-like complex signals, then the INMD algorithm will proceed to the following steps. 5. Locate the peak on |cor(n)|, and record the index ix that corresponds to the peak. Then re-compute the “linear” cross-correlation at the following 8 points (within 1 ms span): R(n) = 2047−ix−n m=0 r(m)e(ix + m + n), n = 0, 1, 2, 3, 4, 5, 6, 7 Then calculate the following ratio: ratio = 7 n=0 R2(n) 2047−ix n=0 r2(n) 2047 n=ix e2(n) If this ratio is greater than 0.36, then the presence of an echo is detected, and ix/8 is the echo delay in ms. The echo level is computed as: EchoLeveldB = 10 log 10( 2047 n=ix e2(n) 2047−ix n=0 r2(n) ) 3
  • 4. The reasons for performing the linear cross-correlation at 8 points and later summing up their total “contribution” is to account for the dispersion effect that is always present on a real echo path. 6. The delay adjusted signals r(n) and e(n + ix) are sent to the display in linear scale. Since the analyzing window size is set to 256 ms, an echo with delay longer than 256 ms will not be detected. The presence of echo is detected and reported within 256 ms. References [1] “In-service non-intrusive measurement device-Voice service measurements,” ITU-T Recom- mendation P.561, July, 2002. 4