Lecture 4
Lecture 4
1
Sender side:
The matrix is formed and transmitted one row at a time.
An example:
Assume a Frame of 7 x 8: 7 rows and 8 columns
And assume an even parity bit.
1 0 1 1 0 1 0 0
0 1 1 0 1 1 1 1
1 0 1 0 0 1 0 1
1 0 1 0 1 0 0 1
0 1 0 1 0 1 1 0
0 1 1 0 1 1 0 0
1 1 1 0 1 1 0 1
2
When does it detect errors? …
1 0 1 1 0 1 0 0
0 1 1 0 1 1 1 1
1 0 0 0 0 1 0 1
1 0 1 0 1 0 0 1
0 1 0 1 0 1 1 0
0 1 1 0 1 1 0 0
1 1 1 0 1 1 0 1
1 0 1 1 0 1 0 0
0 1 1 0 1 1 1 1
1 0 0 0 1 1 0 1
1 0 1 0 1 0 0 1
0 1 0 1 0 1 1 0
0 1 1 0 1 1 0 0
1 1 1 0 1 1 0 1
1 0 1 1 0 1 0 0
0 1 1 0 1 1 1 1
1 0 0 0 1 1 0 1
1 0 1 0 1 0 0 1
0 1 1 1 0 1 1 0
0 1 1 0 1 1 0 0
1 1 1 0 1 1 0 1
3
When it does not detect errors? …
1 0 1 1 0 1 0 0
0 1 1 0 1 1 1 1
1 0 0 0 1 1 0 1
1 0 1 0 1 0 0 1
0 1 1 1 1 1 1 0
0 1 1 0 1 1 0 0
1 1 1 0 1 1 0 1
4
2.2.3 Cyclic Redundancy Check (CRC)
Sender side:
Given a k bits frame, the sender generates an n bits sequence,
known as Frame Check Sequence (FCS), so that the resulting
frame, consisting of (k + n) bits, is exactly divisible by some
predetermined bit pattern.
Receiver side:
The receiver divides the incoming frame by the same
predetermined bit pattern, and if there is no remainder, it assumes
that there was no error.
Let us define:
5
Let us divide 2nM by P:
2nM = Q + R
P P
T = 2nM + R
P P
T=Q+R+R
P P P
T = Q + R+R = Q
P P
6
The procedure:
The pattern P is chosen to be one bit longer than the desired FCS,
and the exact bit pattern chosen depends on the type of errors
expected.
Example:
7
This product is divided by P:
1010001101000000 ß 26M
1101011
01110101
1101011
001111001
1101011
001001000
1101011
01000110
1101011
01011010
1101011
01100010
1101011
00010010
010010 ß R
8
But some errors cannot be detected … which ones?