Solution Exercises Chapter Iv
Solution Exercises Chapter Iv
1) Determine the BCS for the following data and CRC generator polynomials
data ( =) +7 + 5 + 4 + 2+ 1 0 o 10110111
CRC ( ) = +5 +4 + 1 0 or 110011
Solution:
First, G(x) is multiplied by the number of bits in the CRC code, which is 5.
5( 7 5
+ + +4 +2 + 1
= 0)
+ +12 + 10
+ 9 7 5
= 1011011100000
The CRC is added to the data to produce the following transmitted data stream.
( ) = 183
= 01001
Residuo = 0
There was no error
2) Determine the VRC and LRC for the following message encoded in ASCII:
THE CAT. Use odd parity for VRC and even parity for LRC.
Solution:
Character T H E sp C A T LRC
Hex 54 48 45 20 43 41 54 2F
ASCII Code 0 0 0 1 0 1 1 0 1
LSB 1 0 0 0 0 1 0 0 1
2 1 0 1 0 0 0 1 1
3 0 1 0 0 0 0 0 1
4 1 0 0 0 0 0 1 0
5 0 0 0 1 0 0 0 1
MSB 6 1 1 1 0 1 1 1 0
VRC 7 0 1 0 0 0 1 0 0
3) For the 12-bit data string 101100010010, calculate the amount of bits of
Necessary Hamming, embed those bits arbitrarily in the string of
data, determine the condition of each Hamming bit, assume an error
arbitrary one-bit transmission, and demonstrate that the Hamming code
detect the error.
Solution
According to the equation2 ≥ + + 1the amount of Hamming bits is:
For n= 4,
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
H 1 0 1 H 1 0 0 H H 0 1 0 H 0 1 0
To determine the logical condition of the Hamming bits, all are expressed
bit positions that contain a one as a five-bit binary number, and are combined
between each other with XOR.
17= 1, 13= 0, 9= 1, 8= 1, 4= 0
The data stream encoded in 17 bits is transformed into:
H H H H H
1101 0100 1 1010 0010
It is supposed that during the transmission an error occurs in the bit at position 14. The
the received data stream is:
11000100110100010
In the receiver, to determine the position of the erroneous bit, the Hamming bits are extracted.
and XOR is compared with the binary code for each bit position that contains a 1.
The bit 14 was received incorrectly. To correct it, only that bit is complemented.
4) How many Hamming bits are needed for a single ASCII character?
Solution:
A total of 3 parity bits will be needed for Hamming coding. At the moment
to decode, the parity bits (P) along with the information bits (I) are arranged in
so that the parity bits must be positioned such that their position is a power of
from 2.
5) If odd parity is used for error detection in ASCII, the number of
zeros for each 8-bit symbol is ________
a) for
b) odd
c) indefinite
d) 42
6) What are the conditions for the polynomial to be used in a CRC generator?
bit stream: 1 1 1 0 0 1 0 1 0 1 1 0 0
Solution:
10) Encode the following data stream in BPRZ-AMI, with B6ZS and B3ZS.
+-0000+-+0-00000+-00+
Solution:
In B6ZS:
+ −0 0 0 0 + − + 0− 0 00 0 0+ − 0 0+
In B3ZS:
+ −0 0 0 0 + − + 0− 0 0 00 0 + − 0 0+
Bibliography