Encoding and Interleaving of Information Signal in GSM
Encoding and Interleaving of Information Signal in GSM
Encoding and Interleaving of Information Signal in GSM
of Information Signal
in
GSM
Introduction
By
Rama Manohar
Objective
To give an insight in to the various
steps and operations involved in the
information transfer in GSM
networks .
Topics for discussion
• Speech Encoding
• Data Encoding
• Interleaving for Voice,Control and Data
signals
Speech Encoding
• We shall start with a raw voice signal fed
into the microphone, travel through the
various stages involving vocoding, channel
coding etc till it reaches the final burst
format on the Air Interface.
Speech Encoding ckt
Raw
Voice Voice Channel
interleaving
signal Encoding coding
RF Modulation
Speech Encoding ckt
• The voice is sampled at the rate of 50
samples per second.
• This results in 20 msec blocks of speech
• Each of this 20 msec block is passed on to
the 13Kbps vocoder.
• There are 260 information bits from the
output of the vocoder for every 20 msec
input i.e.; 13Kbps *20msec = 260 bits.
Voice Encoding ckt
Vocoder I/p
13Kbps Vocoder Vocoder O/p
20 msec speech
260 bits
blocks
Channel coding
• Channel Coding is done to protect the
logical channels from transmission errors
introduced by the radio path.
• The coding schemes depend on the type of
the logical channels, hence the coding can
differ from speech, control and data .
Channel Coding for speech
260 bits
Class class 1b class 2
1a
50 3 132 4 tail
Bits parity bits
Convolutional coder
½ coder, k=5
0110..
R1 R2 R3 R4 R5
Input bits
EX-OR C1
+
R=register output
Convolutional coder cont’d
• The output of the CC* is now 378 bits.
(50+3+132+4)*2=378
The total number of bits now is 378+78=456 bits.
*Note : The bit rate from the vocoder was 13Kbps
for the 20 msec speech block, but after CC the bit
rate increases to 22.8Kbps.
456 bits *20msecs=22.8Kbps
* CC = Convolutional Coder.
Control Channel Coding
184 bits
Control data
184 40 4 tail
Fire coded parity bits
½ Convolutional Coder
456 bits output
Control Channel Coding
• The control information is received in blocks of 184
bits.
• These bits are first protected with a cyclic code
called as Fire code, which is useful in correction and
detection of burst errors.
• 40 Parity bits are added, along with 4 tail bits.
• These 228 bits are given to the CC whose output is
again 456 bits at a bitrate of 22.8Kbps.
• The control channels include the RACH, PCH,
AGCH etc.
Data Channel Coding
240 bits 4 tail
Data bits
½ Convolutional Coder
Output= 488 bits
After Puncturing
Output=456 bits
Data Channel Coding
• The data bits are received in blocks of 240 bits.
These are directly convolution coded after adding
4 tail bits.
• The output of the CC is now 488 bits, which
actually increases the bitrate to 24.4 Kbps.
• To keep the bitrate constant on the air interface we
need to puncture the output of the CC. Hence, we
have a final bitrate of 22.8 Kbps again .
Channel Coding cont’d
• The above explanation was given keeping
in view a full rate Traffic, Control, or Data
channel.
• For Half rate or Lesser rates the same
principle of channel coding holds good,
with slight differences in the encoding
process.
Interleaving
• Having encoded the logical channel information,
the next step is to build its bit stream into bursts
that can be transmitted within the TDMA frame
structure. This is the stage where the interleaving
process is carried out.
• Interleaving spreads the content of one
information block across several TDMA timeslots
or bursts.
Interleaving cont’d
• The following interleaving depths are used :
• Speech – 8 blocks
• Control – 4 blocks
• Data – 22 blocks
• The interleaving process for a speech block is shown
wherein which a 456 bit speech block is divided into
8 blocks of 57 bits each and each of these odd and
even 57 bit blocks are interleaved diagonally on to
alternate bursts on the TDMA frame.
Speech Interleaving
456 bit speech data
Speech block 8* 57 bits each = 456 bits
N-1 Of Speech block N
57 57 57 57
T+F odd T+F odd Even T+F Even
Of N-1 Of N Of N-1 Of N
TDMA
Burst blocks
First 6 First 6
bits bits
Last 6 Last 6
bits bits
After Deinterleaving
The corrupted bursts are spread over a length equal to the
interleaving depth so that the effect of the errors is
minimized.
Air Interface Bitrate
• The information which is now coded and
interleaved at 22.8 Kbps now has to be transmitted
over the Air interface to the BTS.
• The information burst is not sent directly , but is
sent in ciphered form within a burst envelope.
This ciphering is done using ciphering keys and
algorithms known both by the mobile and the
BSS.
Air Interface Bitrate cont’d
• The Kc is the ciphering key and A5
algorithm are applied to the
information(speech or data) which increases
the bitrate to a final rate of 33.8 Kbps
from/to each mobile.
• If we assume all 8 timeslots of the cell to be
occupied then the bitrate of the Air interface
comes to 33.8 * 8= 270.4 Kbps/channel.
Air Interface Bitrate cont’d
Kc Information
Block 22.8 Kbps
A5 Algorithm
Mobile
Tx’s at
Cell coverage area 33.8 Kbps
Decoding and Deinterleaving at
the Receiver
• At the receiver the reverse process of
Deinterleaving and decoding have to take place
respectively, so as to recover the information from
the signal.
• After Deinterleaving the signal will be decoded
which is the reverse process of the Convolutional
coding, using Viterbi decoders.
• The decoder can recover lost or corrupted data up
to 4 successive bits, because the memory depth of
the CC is 4(for k=5).