Skip to content

"This repository focuses on implementing data link layer error detection codes. Providarious error detection techniques used in data communices methods for vations at the data link layer."

License

Notifications You must be signed in to change notification settings

jElhamm/Data-Link-Layer-Error-Detection-Codes

Repository files navigation

Data Link Layer Error Detection Codes

This repository contains implementations of various Error Detection Codes used in the Data Link Layer of computer networks.

Overview

In the Data Link Layer of the OSI model, error detection codes are used to detect errors that may occur during data transmission over a communication channel. These codes are added to the data before transmission and are recalculated by the receiver to verify the integrity of the received data. Common error detection codes include parity bits, checksums, and cyclic redundancy checks (CRC). These codes allow the receiver to determine if any errors have occurred during data transmission and take appropriate actions to request retransmission or correct the errors.

Algorithms Implemented:

  1. Checksums
  2. Hamming Codes
  3. Cyclic Redundancy Checks (CRC)
  4. Low-Density Parity Check (LDPC) Codes

Usage

You can find the implementation of each algorithm in the respective directories within this repository.

Algorithms Summary

  • Checksums: Checksums are a simple error detection technique where the sender calculates a checksum value by summing up the bytes in the data and appends it to the data. The receiver recalculates the checksum and verifies if it matches the received checksum to detect errors. If the checksums don't match, an error is detected.

  • Hamming Codes: Hamming codes are error-correcting codes that add redundant bits to the data to detect and correct errors. In Hamming codes, parity bits are added at specific positions in the data to create a code word. These parity bits help in identifying and correcting single-bit errors in the received data.

  • Cyclic Redundancy Checks (CRC): CRC is a more sophisticated error detection technique that involves polynomial division. The sender generates a CRC based on the data and appends it to the message. The receiver performs the same polynomial division and compares the calculated CRC with the received one. If they differ, an error is detected.

  • Low-Density Parity Check (LDPC) Codes: LDPC codes are linear error-correcting codes that offer excellent error detection and correction capabilities. These codes have a sparse parity-check matrix structure, making them efficient in terms of error correction performance. LDPC codes are widely used in modern communication systems.

References

BOOK: Computer Networks (Andrew s. Tanenbaum)

License

This repository is licensed under the MIT License. See the LICENSE file for more details.