Telecommunications Network Engineering: PCM Coding, Speech Methods, and Power Levels
Structure of the Eight-Bit Binary Word in European PCM (A-law)
The structure of the 8-bit binary word used in European Pulse Code Modulation (PCM) coding, known as the A-law, is defined by specific bit functions:
Bit 1 (Most Significant Bit - MSB): This is the first bit in the sequence and indicates the polarity of the sample.
A value of represents positive polarity.
A value of represents negative polarity.
The sample value of zero can produce two distinct code words depending on whether it is interpreted as having positive or negative polarity.
Bits 2, 3, and 4: These three bits define the specific segment where the sample value is located.
Segments indexed as and together form a linear curve designated for low-level positive or negative samples.
The complete A-law curve consists of linear sections (as illustrated in Figure 3.14).
Bits 5, 6, 7, and 8 (Least Significant Bits - LSBs): these bits reveal the specific quantized value of the sample within its assigned segment.
Each segment is divided linearly into distinct values or quantum levels.
Coding Relationship and Compression:
The relationship between signal values and binary words is nonlinear, combining nonlinear compression with linear coding.
The vertical axis is linear; each binary word corresponds to a quantum level at an equal distance from the others.
Linear quantizing is performed on the compressed signal.
The relationship between the vertical and horizontal axes follows a logarithmic scale according to equation (3.9).
To reduce quantizing noise at low signal levels, half of the quantum levels are dedicated to signal levels smaller than (or ) of the maximum value.
Bit Inversion and Synchronization:
Following the encoding process, every other bit of the resulting code words is inverted prior to multiplexing.
The purpose of this inversion is to "mix" the digital signal, facilitating easier timing for line systems and equipment interfaces.
For instance, a small negative value producing the code word would be inverted to .
Without this inversion, transmitting continuous zeros could lead to synchronization difficulties for the receiver.
PCM Encoder and Decoder Standards
Historical Context: PCM coding schemes for digital voice communications were standardized by the CCITT (now ITU-T) in the early 1970s based on contemporary technology.
Regional Variations:
The European standard (A-law) differs slightly from the American standard (u-law), necessitating conversion equipment for trans-Atlantic or European-to-Japanese communications.
The majority of countries worldwide utilize the European A-law standard.
The PCM Encoder Process
Filtering: Before encoding, the analog signal passes through a lowpass filter (LPF) limiting the frequency band to to . This bandwidth is sufficient for human voice recognition and speaker identification.
Sampling Theorem Compliance: This filtering ensures the sampling theorem is satisfied by removing frequencies higher than half the sampling frequency ().
Encoding Steps:
The signal is sampled at an sampling frequency.
A sample-and-hold (S/H) circuit captures the values.
A -level quantizer and encoder convert samples into 8-bit nonlinearly coded words.
Parallel words are converted to a serial form via a parallel-to-serial converter.
Multiplexing and Data Rates:
Individual serial channels are multiplexed using Time Division Multiplexing (TDM).
According to the European standard, voice channels are combined into a (or ) primary rate signal.
Digital exchanges often build streams with PCM-coded subscriber interfaces for internal transmission.
United States DS1 System:
The data rate is instead of .
Each frame contains speech channels plus a single framing bit.
The math for the data rate is defined as:
The PCM Decoder Process
Demultiplexing: The receiver uses a TDM demultiplexer to separate the stream back into individual channels.
Reconstruction:
The serial signal is converted back to -bit parallel sample values.
A decoder reconstructs the sample pulses.
A lowpass filter (LPF) smooths the pulses to recreate a voice signal resembling the original analog input.
Advanced Speech-Coding Methods
Efficiency Definition: "More efficient" indicates achieving better quality at the same data rate or maintaining equal quality at a lower data rate.
Categories of Coding:
Waveform Coding (e.g., PCM): Transmits information describing the signal waveform in the time domain. It adds minimal delay and provides high quality but requires higher data rates.
Voice Coding (Vocoders): Utilizes human voice characteristics by modeling segments (e.g., ) and sending model identification codes. Vocoders introduce analytical delay and may split voice into frequency components.
Hybrid Coders: Combines waveform and voice coding principles for a compromise between quality and data rate.
Adaptive PCM (APCM):
Transmits signal strength information periodically alongside sample values.
Fewer bits are required for samples, as they define the quantum level within a variable scale.
Keeping the SQR (Signal-to-Quantizing Ratio) high over a wide range of signal levels.
Differential PCM (DPCM):
Only the difference between a current sample and the previous value is encoded.
Since differences are typically small, fewer bits are needed (e.g., bits instead of bits).
Prediction: Can use multiple preceding samples (typically up to three) to predict the next value; the encoder only transmits the difference between the prediction and the actual sample.
Delta Modulation (DM):
A simplified DPCM that transmits a binary if the sample increases and a binary if it decreases.
Continuous Variable Slope Delta (CVSD) Modulation: Uses large quantizing steps for steep slopes and small steps for minimal changes. Used in Bluetooth and military applications.
Adaptive DPCM (ADPCM):
Combines APCM and DPCM, adapting both the predictor and the quantizer.
Quantization Scaling: If the prediction error increases, the step size doubles; if it decreases, the step size is reduced.
Standard Rates: Commercial voice quality is often achieved at (using bits per sample at ), but can go as low as or .
ITU Recommendation G.728: Covers ADPCM and acts as a "common language" between European and North American PCM formats.
ITU Recommendation G.722: Codes audio into for high-quality ISDN speech.
Applications: Submarine systems, PABX leased lines (doubling capacity), and DECT cordless phones.
Limitation: Does not support modems or faxes above .
GSM Speech Coding
Motivation: Cellular networks require efficient coding to maximize radio frequency usage.
Implementation:
A hybrid principle restricting processing delay to .
Original data rate was , reduced to in 1995.
The voice signal is divided into slices.
An analysis filter identifies and subtracts the periodical high-power component, which is sent as parameters.
The remaining low-level error signal is waveform coded using APCM.
A synthesis filter at the receiver reconstructs the speech using the transmitted coefficients.
Quality Measurement and Network Constraints
Mean Opinion Score (MOS): A measurement based on human opinions of quality ranging from 1 (Bad) to 5 (Excellent).
G.711 PCM is typically rated as Excellent.
Vocoders often sound synthetic and represent a lower MOS.
Path Delay Constraints:
Round-trip delay should be less than for high quality.
Deterioration is noticeable once delay exceeds .
Geosynchronous satellites have a one-way delay of approximately .
Echo is noticeable if delay exceeds to .
Echo Cancellers: Required for long delays (satellites or GSM coding) or nonideal return loss in 4W/2W hybrids.
Power Levels and Decibels (dB)
Definition of Decibel (dB): A logarithmic measure of power change.
Gain formula:
Loss is represented as negative gain (e.g., an absolute loss of is ).
Gains in a chain are added (e.g., a gain of is ).
Voltage Gain Formula: If impedances differ:
Absolute Power Level (dBm): Power relative to .
Output power level calculation: .
Engineering Example (Radio Relay):
(since ).
.
converts back to .
The Digital Milliwatt
Purpose: A reference signal for analog levels in the network to ensure compatibility across international digital connections.
Definition: A specific sequence of 8 code words that, when decoded, produces a sine wave at power level.
dBm0: The measured signal power level compared to the reference level generated by the digital milliwatt.
Reference Rules:
Standard overload threshold for PCM coder is .
Average speech level in an analog channel is approximately .
European PCM digital milliwatt requires inverting bits 2, 4, 6, and 8 of the 8-word sequence.
Calibration involves adjusting internal amplifiers/attenuators so that input produces output at the decoder.