CNAssignment DLL
CNAssignment DLL
Assignment 1
2. The following data fragment occurs in the middle of a data stream for which the
byte-stuffing algorithm described in the text is used: A B ESC C ESC FLAG
FLAG D. What is the output after stuffing?
4. 16-bit messages are transmitted using a Hamming code. How many check bits are
needed to insure that the receiver can detect and correct single bit errors? Show
the bit pattern transmitted for the message 1101001100110101. Assume that even
parity is used in the Hamming code.
7. A block of bits with n rows and k columns uses horizontal and vertical parity bits
for error detection. Suppose that exactly 4 bits are inverted due to transmission
errors. Derive an expression for the probability that the error will be undetected.
9. A bit stream 10011101 is transmitted using the standard CRC method described in
the text. The generator polynomial is x3 + 1. Show the actual bit string transmitted.
Suppose the third bit from the left is inverted during transmission. Show that this
error is detected at the receiver’s end.
10. A receiver receives the bit pattern 01101011. If the system is using even parity
VRC, is the pattern in error?
11. Find the LRC for the following block of data.
10011001 01101111
12. Given a 10-bit sequence 1010011110 and a divisor of 1011, find the CRC. Check
your answer.
13. Given a remainder of 111, a data unit of 10110011, and a divisor 1001, is there an
error in the data unit?
14. Find the checksum for the following bit sequence. Assume a 16-bit segment size.
1001001110010011
1001100001001101
15. For each data unit of the following sizes, find the minimum number of
redundancy bits needed to correct one single-bit error:
A. 12
B. 16
C. 24
D. 64
16. Construct the hamming code for the bit sequence 10011101.
17. Calculate the VRC and LRC for the following bit pattern using even parity:
0011101 1100111 1111111 0000000
18. The following block uses even-parity LRC. Which bits are in error?
10010101 01001111 11010000 11011011
19. A system uses LRC on a block of 8 bytes. How many redundant bits are sent per
block? What is the ratio of useful bits to the total bits?
20. A receiver receives the code 11001100111. When it uses the Hamming-encoding
algorithm, the result is 0101. Which bit is in error? What is the correct code?
21. In single bit error correction, a code of three bits can be in one of four stages: no
error, first bit in error, second bit in error, and third bit in error. How many of
these three bits should be redundant to correct this code? How many bits can be
the actual data?
22. The code 11110101101 was received. Using the Hamming-encoding algorithm,
what is the original code sent?