Alternating Bit Protocol C Program

Posted on  by 

  1. GitHub - Ankeshni/Simulation-of-transport-Layer-protocols-in-c
  2. Cached
  3. Alternating Bit Protocol C Program

Reliable Data Transfer Protocol implementation in C++ using modified ALTERNATING BIT AND GO-BACK-N NETWORK EMULATORFROM VERSION 1.1 of J.F.Kurose as an assignment of Computer Networking Lab in Level-3, Term-2 of BUET.

In this assignment sender and receiver implemented for two versions of RDT3.0 are implemented for only simplex data transfer:

  • Reliable Data Transfer Protocol implementation in C using modified ALTERNATING BIT AND GO-BACK-N NETWORK EMULATOR FROM VERSION 1.1 of J.F.Kurose as an assignment of Computer Networking Lab in Level-3, Term-2 of BUET. In this assignment sender and receiver implemented for two versions of RDT3.0 are implemented for only simplex data transfer.
  • The assignment requirement is to realize a reliable transmission simulation program according to rdt 3.0 protocol. The program was given by the teacher. Of course, the program is incomplete and needs to be modified and perfected by itself. Altbit.c is the code file that needs to be changed, and all other files are correct.
  • Alternating-bit protocol (ABP)
  • Go-Back-N (GBN) with finite sequence numbers [0,7].

Programming Assignment #2: Implementing a Reliable Transport Protocol (Alternating-Bit-Protocol) - prog2abp.c. ABP alternating-bit protocol P;Q programs DP dining philosophers program H high-atomicity program C refined program P process N neighbor relation between processes i;j;k;u;v process identifiers P u;P v neighbor processes R;S predicates a;b;c;d handshake variables H uv sequence of handshake variables between P u and P v s;t program states I DP.

Additional Implementation:

Github.comProtocol

GitHub - Ankeshni/Simulation-of-transport-Layer-protocols-in-c

Alternating Bit Protocol C Program

Cached

  • separate timers used for each packet in sender's window.
  • another modified version of go-back-n is implemented which sends cumulative ack after certain timeout unlike normal gbn.

Detailed specifications can be found at 'offline_specification.pdf' in folder 'Assignment-Specifications'.

Simulation:

  • compile and run rdt_abp.cpp to simulate Alternating-bit protocol.
  • compile and run rdt_gbn.cpp to simulate Go-Back-N protocol.
  • compile and run rdt_gbn_cumulative_ack.cpp to simulate Go-Back-N protocol with modified receiver.

Alternating Bit Protocol C Program

This repo has been worked in CLion project and that's why CMakeLists.txt exists here.

Coments are closed