GithubHelp home page GithubHelp logo

jelhamm / data-link-layer-protocols Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

"This repository is a comprehensive implementation of data link layer protocols in the field of networking. Also showcases a meticulous approach towards implementing various protocols at the data link layer, enabling developers to understand, experiment."

License: MIT License

C 52.73% C++ 47.27%
c cpp datalink datalink-layer go-back-n protocol selective-repeat sliding-window sliding-window-protocol stopandwait

data-link-layer-protocols's Introduction

Data Link Layer Protocols

This repository includes the implementation of various Data Link Layer Protocols in the field of computer networking. The implemented protocols are Go-Back-N, Selective Repeat Protocol, Stop-and-Wait Protocol (Noisy Channel), and Utopian Simplex Protocol.

Protocols Implemented

  • Go-Back-N: Go-Back-N is a sliding window protocol that allows the sender to send multiple frames before needing an acknowledgment but the receiver only accepts frames in the correct order. If an error is detected in a frame, the receiver discards all subsequent frames until the error is fixed.

  • Utopian Simplex: Utopian Simplex Protocol is a theoretical protocol designed for ideal communication channels where there are no errors in transmission. It serves as a benchmark for comparing the performance of other protocols under ideal conditions.

  • Selective Repeat: Selective Repeat is a sliding window protocol similar to Go-Back-N but with the ability for the receiver to selectively reject and request retransmission of specific frames. This improves efficiency compared to Go-Back-N by allowing the receiver to advance its window without waiting for the out-of-sequence frames.

  • Stop-and-Wait (Noisy Channel): Stop-and-Wait is a simple protocol where the sender sends one frame at a time and waits for an acknowledgment from the receiver before sending the next frame. The "Noisy Channel" variant includes error detection and correction mechanisms to handle noisy communication channels.

Key Features of Data Link Layer Protocols:

  1. Error Detection and Correction: Data link layer protocols use techniques like checksums, CRC (Cyclic Redundancy Check), and acknowledgment mechanisms to ensure data integrity.

  2. Flow Control: Control mechanisms regulate the flow of data between sender and receiver, preventing data loss due to speed mismatches or buffer overflows.

  3. Framing: Data is divided into manageable frames with headers and trailers for synchronization, addressing, and error-checking purposes.

  4. Sequence Control: Sequencing mechanisms ensure the correct order of frame delivery, especially in sliding window protocols like Go-Back-N and Selective Repeat.

  5. Efficiency: Protocols like Selective Repeat aim to reduce retransmissions and optimize data throughput by allowing the receiver to selectively handle damaged or lost frames.

References

License

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

data-link-layer-protocols's People

Contributors

jelhamm avatar

Stargazers

 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.