Line Coding PDF
Line Coding PDF
CAS, R2 IP HLR
PABX Switching
Fabric MAP
ISDN Voice path
CCS7 ISUP
SCP
Page 1
Requirements for the Voice path and the
Switching Fabric
✔ The Switching Fabric must understand the bits, the
timeslots and the frames in the same way as the
transmission systems that carry the bits
› The Fabric and the transmission systems must be synchronized
✔ Voice must be coded efficiently (what is efficient changes over time)
✔ CRC -multi-frame must enable transparent transmission
(= any octet values can be sent over the network freely)
✔ An exchange must supervise voice connections:
› calls shall/should not be offered to faulty connections
› calls must sometimes be cleared from faulty connections
› detected faulty connections must be reported to far end if possible
Sampling
✔ Nyquist theorem
› If an analogue signal with limited spectrum is sampled
regularly with a frequency of at least twice as high as the
highest frequency component, the samples carry all the
information in the original signal. The original signal can
be reconstructed using a low pass filter.
✔ In voice transmission, the spectrum carried is
specified to be 300 - 3400 Hz, resulting in a
minimum sampling rate of 6,8 kHz.
✔ In practice, since the width of the transmission
channel in an analogue system is 4kHz, in a
digital system a sampling rate of 8 kHz (8000
samples/s) is used.
Page 2
Digital voice transmission
microphone
m ikrofoni switch
kytkin Transmission
siirtotiepath Low pass filter
alipäästösuodatin
D /A
coding
A/D -koodaus
-dekoodaus
decoding
receiver
kuuloke
n ytteenpito-
Sampling
kondensaattori
capacitor
Page 3
Sampling of the analogue signal
µs
125µ
Page 4
Quantizing results in approximation of
the samples
✔ Real valued amplitude figures are replaced by discrete
integer values.
✔ Quantizing should result in values that appear in the
signal 18with equal probability.
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
12 15 16 16 17 17 16 16 14 11 6 3 2 2 1 2 2 3 6
Quantizing distortion
✔ Quantizing produces distortion, that is called quantizing
distortion.
✔ Quantizing distortion is made by the replacement of real values
by their integer approximates and at maximum can reach ½
quantizing interval.
✔ In linear quantizing the signal to distortion ratio is
S/D=6n+1,8 dB n=word length
12
11 Quantizing error
10
9
© Rka/ML -k2002 Telecommunications Switching Technology 3 - 10
Page 5
Linear vs. non-linear
Non-linearity
Page 6
PCM-coding and quantizing
1/8Vmax
3 1 100 xxxx
1/16Vmax
2 1 011 xxxx
1/32Vmax
1 1 010 xxxx
1 001 xxxx 1/64Vmax
½ Vmax Vmax
0
1 000 xxxx
0 X (Vin)
1
4
5
6
Page 7
Quantizing inside a Segment
1 101 0000
GdB=20log Vin/Vcomp
Page 8
PCM-hierarchy
✔ PCM-hierarchy is created by overlapping time division
multiplexed signal connections bit by bit. Bits become
shorter.
✔ The basic speed in the hierarchy is the bitrate of a single
voice channel
PCM 30 (E1)
Page 9
PCM 30 frame
Voice or user
information
channels 2 - 31
Page 10
Even numbered PCM 30 -frame
1 ylikehys ==16
1 multi-frame 16kehyst
frames
K0 K1 K2 K3 K4 K5 K6 K7 K8 K9 K10 K11 K12 K13 K14 K15
11kehys
frame==3232aikav
time lislots (even frame)
(parillinen kehys)
T0 T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13 T14 T15 T16 T17 T18 T19 T20 T21 T22 T23 T24 T25 T26 T27 T28 T29 T30 T31
KL puhekanavat
Voice channels1-15
1 - 15 MA puhekanavat
Voice channels 16 - 16-30
30
1 multi-frame
1 ylikehys = =
1616 frames
kehyst
K0 K1 K2 K3 K4 K5 K6 K7 K8 K9 K10 K11 K12 K13 K14 K15
1 frame
1 kehys==32
32time
aikavslots (odd frame)
li (pariton kehys)
T0 T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13 T14 T15 T16 T17 T18 T19 T20 T21 T22 T23 T24 T25 T26 T27 T28 T29 T30 T31
KL puhekanavat
Voice 1-151 - 15
channels MA puhekanavat
Voice 16-3016 - 30
channels
Page 11
CRC-4 calculation ensures, that the frame
alignement function can not lock into a user
signal of (x0011011)
Tsl-0/bit x
Frame nr t0/1 t0/2
0 C1 0 0 1 1 0 1 1
1 0 1 A
2 C2 0 0
3 0 1 A
I- 4 C3 0 0
half 5 1 1 A
CRC-4 6 C4 0 0
7 0 1 A
multi- 8 C1 0 0 C1…C4 - CRC4 -bits
frame 9 1 1 A
E - CRC4-error bits
II- 10 C2 0 0
half 11 1 1 A 001011 - CRC4 -multi-frame
12 C3 0 0
13 E 1 A
alignment
14 C4 0 0 A - far-end alarm ( t0-
15 E 1 A frame alignment lost)
© Rka/ML -k2002 Telecommunications Switching Technology 3 - 23
Page 12
Higher levels in the hierarchy
✔ PCM multiples
› PCM 30 (E1) 2,048Mbit/s
› PCM 120 (E2) 8,448 Mbit/s
› PCM 480 (E3) 34,368 Mbit/s
› PCM 1920 (E4) 139,264 Mbit/s
✔ Multiples are formed by multiplexing frames from four
lower level connections into new higher order frames.
Management overhead info is added into the higher order
frame.
2 Mbit/s
1
8 Mbit/s
1
I 34 Mbit/s
2 1
30 3 II 139 Mbit/s
2 1
4 3 III 565 Mbit/s
2 1
PCM
PCM-perus- 4 3 IV
2
j rjestelm 4 V
basic 3
4
system
well established std Not a well established std
Page 13
Alternate Mark Inversion - AMI
✔ In the AMI-code
› Binary one changes polarity at each occurrence
› Binary zero is no signal on the line
✔ Weakness is in loosing bit sync in case of long series of
zeroes.
1 1 0 0 011 0 0 0 0 01 10 0 0 01 0 01
1
0
-1
✔ In HDB3 code
› Binary one changes polarity as in the AMI-code
› Binary zero
ÿ First zero is replaced by "one" if in the previous group, an inversion
was used
ÿ Second and third zeroes are no signal
ÿ The fourth consecutive zero raises an inversion - I.e. violation of the
code, I.e. a pulse with the same polarity as the previous one or "one" is
transmitted
1 1 0 0 011 0 0 0 0 01 10 0 0 01 0 01
1
0
-1
Inversion
Page 14
HDB3 mapping rules
1 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0
+V
B 0 0 V
HDB3 0 0 0 0 V B V or inverse
-
V
HBD3 - high density bipolar 3
V - violation
B - balance
Page 15