Giter Club home page Giter Club logo

go-n-back-arq-'s Introduction

server.c and client.c - implementation of go-back-n ARQ in C
by Prateek Kumar Singh  <[email protected]>

Server.c implements a reliable data transfer over TCP in C
client.c implements a reliable data transfer client over TCP in C

Both of these programs use the go-back-n ARQ, that is lost data is
automatically resent. These programs are hardcoded to transfer
8192 bytes of data in any chunksize from 1 to 512 bytes per packet

to compile:

gcc -o server server.c
gcc -o client client.c

to run:
first run the server. Usage is:
"./server <PORT> <CHUNKSIZE> [<LOSS RATE>]"
for example: "./server 1655 500 .50" will start a server on port 1655,
with chunk size of 500 bytes and 50% loss rate. Loss Rate is an optional
argument and does not have to be used

Once the server is running, run the client. Usage is:
"./client <SERVER IP> <SERVER PORT> <CHUNK SIZE> <WINDOW SIZE>"
so for example: "./client 10.10.10.5 1234 500 3" will instruct the client to
connect to the server at 10.10.10.5 on port 1234 and send 3 chunks at a time
of 500 bytes.

go-n-back-arq-'s People

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.