You are on page 1of 1

ITE3001 – DATA COMMUNICATION AND COMPUTER NETWORKS LAB –

FALL SEMESTER -2020-21

ASSESMENT 2

1) Code a C Program to test the following case,


Assuming that your error detection method is following even parity, find the parity bit
for each of the following data units.
a. 1001011
b. 0001100
c. 1000000
d. 1110111

2) A sender needs to send the four data items Ox3456, OxABCC, Ox02BC, and
OxEEEE. Code a C Program to
a. Find the checksum at the sender site.
b. Find the checksum at the receiver site if there is no error.
c. Find the checksum at the receiver site if the second data item is changed to
OxABCE.
d. Find the checksum at the receiver site if the second data item is changed to
OxABCE and the third data item is changed to Ox02BA.

3) Given the dataword 1010011110 and the divisor 10111,


a. Generate the codeword at the sender site (using binary division).
b. Check the codeword at the receiver site (assume no error).

4) Assume that you are following the Hamming code mechanism for data transfer.
Consider the dataword is 1011, find the codeword

You might also like