gsm network and services - personliga hemsidor på kthjohanmon/attic/2g1723/lectures/coding.pdf ·...

21
1 GSM Network and Services 2G1723 Johan Montelius GSM Network and Services Channel coding - from source data to radio bursts

Upload: dinhxuyen

Post on 30-Mar-2018

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

1GSM Network and Services 2G1723 Johan Montelius

GSM Network and Services

Channel coding - from source data to radio bursts

Page 2: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

2GSM Network and Services 2G1723 Johan Montelius

Channel coding

• Wireless transmission of bits in a mobile environment is not very reliable. The bit error rate (BER) is typically 1/10 to 1/1000. This is a more than a factor 1000 worse than the Ethernet that we are used to.

• In order to create a reliable connection we need to be very careful and protect the data as much as possible.

• We can not rely on error detection and retransmission!

Page 3: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

3GSM Network and Services 2G1723 Johan Montelius

Channel Coding

block coder

convolutional coder

interleaving coder

radio burst

Voice/Data/Signaling

Page 4: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

4GSM Network and Services 2G1723 Johan Montelius

Block coder - voice

• The voice coder results in 260 bits divided into 182 class I and 78 class II.

• The class I bits are divided into I-A of 50 bits and I-B of 132 bits. The I-A sequence is protected by a 3 bit CRC value.

• The resulting class I sequence is tailed with four zeros and passed to the convolutional coder.

• The class II bits are passed directly to the interleaving coder.

Page 5: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

5GSM Network and Services 2G1723 Johan Montelius

Block coder - signaling

• Most signaling messages are 184 bits long. These messages are protected by a 40 bit Fire code. The Fire code is used only for error detection.

• Other signaling messages:

– acces req: 8 bits protected by 6 bits CRC

– synch: 25 bits protected by 10 bits CRC

• All signaling messages are tailed with four zeros for the convolutional coder.

Page 6: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

6GSM Network and Services 2G1723 Johan Montelius

Convolutional coder

• A convolutional coder will spread the information in a bit sequence so each information bit is encoded in several code bits. Each code bit holds partial information of a sequence of information bits.

• The rate of a convolutional coder describes how many code bits are produced per information bits.

Page 7: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

7GSM Network and Services 2G1723 Johan Montelius

Convolutional coder

0 1 0 1 1 0 1 0 1 1 0 0 0

information bits

0 1 0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 1 0

coded bits

Page 8: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

8GSM Network and Services 2G1723 Johan Montelius

Convolutional coder

+ +

+

K is the memory of the coder and definesfor how many coded bits an informationbit is spread over.

The rate r of the coder is the ratio of information bits per coding bits (typically 1/2 or 1/3)

Page 9: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

9GSM Network and Services 2G1723 Johan Montelius

Convolutional coder

• Voice full rate (class I bits): K = 4, r = 1/2

• Voice half rate (class I bits): K = 4, r = 1/3

• Signaling: K = 4, r = 1/2

• After the convolutional coder all messages are 456 bits except half rate voice, access request and synchronization.

• 456 bits would fit very nicely into four (114 bits) normal bursts but life is never that simple.

Page 10: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

10GSM Network and Services 2G1723 Johan Montelius

Interleaving

• Errors in a wireless links comes in burst. This is exactly the scenario that convolutional coders and CRC does not like.

• Interleaving is the process of distributing consecutive bits of a block into different sub blocks. If a sequence in one sub block is corrupted then these bits will not be consecutive in the original block.

Page 11: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

11GSM Network and Services 2G1723 Johan Montelius

Block Interleaving

original sequence

interleaved sequence

Page 12: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

12GSM Network and Services 2G1723 Johan Montelius

Diagonal Interleaving

original sequence

interleaved sequence

Page 13: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

13GSM Network and Services 2G1723 Johan Montelius

Interleaving

• Pros:

– Burst of errors are distributed to single bit errors that the convolutional decoder can handle.

– The bit rate is not changed.

• Cons:

– Sending of messages is delayed with the interleaving depth. Important data will have a large depth and therefore a long delay.

Page 14: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

14GSM Network and Services 2G1723 Johan Montelius

Interleaving of voice

• A voice block of 456 bits is diagonally interleaved over 8 sub blocks of 114 bits each.

• Every eight information bit goes into a separate sub block.

• The bits in a sub block are interleaved again in a burst interleaving.

• Each sub-block fits in to a normal burst.

Page 15: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

15GSM Network and Services 2G1723 Johan Montelius

Voice interleaving

intra burst interleaving

burst 2x57 bits

Page 16: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

16GSM Network and Services 2G1723 Johan Montelius

Voice interleaving delay

sample 20 ms

5ms 5ms5ms 5ms 5ms5ms 5ms 5ms5ms 5ms 5ms5ms

radio frames

interleaving depth of 8 causes delay of another 20 ms.

sample 20 ms

Page 17: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

17GSM Network and Services 2G1723 Johan Montelius

Interleaving of signaling messages

• Most signaling messages have an interleaving depth of four and uses block interleaving.

• Access request and synchronization must be sent in one burst and are therefore not interleaved.

• FACCH have an interleaving depth of eight and are interleaved with the traffic channel.

Page 18: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

18GSM Network and Services 2G1723 Johan Montelius

intra burst interleaving

burst 2x57

Signaling interleaving

One message requires four bursts.

Page 19: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

19GSM Network and Services 2G1723 Johan Montelius

SACCH delay

TTTTTTTTTTTTSTTTTTTTTTTT-

S S S S

360 ms

120 ms

Page 20: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

20GSM Network and Services 2G1723 Johan Montelius

FACCH interleaving

TCH FACCH TCH

FT FT FT FT TF TF TF TF

Two stealing flags are used to indicate if the upper or lowerdata segment have been stolen.

B B B B B B B B

burst interleaving

Page 21: GSM Network and Services - Personliga hemsidor på KTHjohanmon/attic/2g1723/lectures/coding.pdf · 3 GSM Network and Services 2G1723 Johan Montelius Channel Coding block coder convolutional

21GSM Network and Services 2G1723 Johan Montelius

Channel Coding

block coder

convolutional coder

interleaving coder

radio burst

Voice/Data/Signaling

456 bits

8 half blocks

260 bits voice or 184 bits signaling

78+189 bits voice or 228 bits signaling