Data Communication Lab Reports-02
Data Communication Lab Reports-02
LAB REPORT NO # 02
Course Title: Data Communication Lab
Course Code: CSE 308 Section: 221_E1
Student Details
Name ID
1. Motiur Rahman 192915002
[For Teachers use only: Don’t Write Anything inside this box]
2. OBJECTIVES/AIM
3. INTRODUCTION
• This C program demonstrates the Hamming code correction approach for 7-bit codewords, addressing
single-bit errors in data transmission. The hamming correct function computes syndrome bits from the
received codeword, identifies errors, and corrects them. Through user input, the main function prompts
for the received codeword, then utilizes hamming correct to rectify any detected errors. This
implementation showcases the practical application of Hamming codes in maintaining data integrity,
particularly in communication systems susceptible to transmission errors.
4. PROCEDURE
Output:
8. SUMMARY:
The hands-on implementation of Hamming code in C through a lab exercise greatly
enhanced my understanding of error detection and correction. Delving into the calculation
of syndrome bits and error positions provided insight into the algorithm's workings. This
practical experience instilled confidence in applying Hamming code effectively. Overall, it
deepened my comprehension of this error-correction technique, fulfilling my objective of
understanding it comprehensively.