Giter Club home page Giter Club logo

jelhamm / data-link-layer-error-detection-codes Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 12 KB

"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: MIT License

C 100.00%
c detection-algorithm detection-network error-correcting-codes algorithms-implemented hamming-code checksum checksum-calculation cyclic-redundancy-check error-handling

data-link-layer-error-detection-codes's Introduction

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.

data-link-layer-error-detection-codes's People

Contributors

jelhamm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.