Giter Club home page Giter Club logo

rdt's Introduction

Implemented in ubuntu16.04

UDP transfer file: 
                   Simulate UDP file transfer by adding bit errors and packet loss randomly.
                   UDP has the basic checksum function.
                   
                   use gcc -o server server.c -lpthread to compile the server.c 
                   use gcc -o client client.c to compile the client.c
                   run ./server and the run ./client(the order can't be changed)
                   
Implement RDT protocol(Stop and wait ARQ):
                   When packet is received by receiver in order and no bit error is found, send ACK to sender and the sender will 
                   transmit next packet. Otherwise, the sender will retransmit the packet.
                   
                   use gcc -o server server.c -lpthread to compile the server.c 
                   use gcc -o client client.c to compile the client.c
                   run ./server and the run ./client(the order can't be changed)
            
Go-Back_N protocol:
                   The sending process continues to send a number of frames specified by a window size even without 
                   receiving an acknowledgement (ACK) packet from the receiver.The sender will detect that all of the frames 
                   since the first lost frame are outstanding, and will go back to the sequence number of the last ACK 
                   it received from the receiver process and fill its window starting with that frame and continue the
                   process over again.
                   
                   use gcc -o server server.c -lpthread to compile the server.c 
                   use gcc -o client client.c to compile the client.c
                   run ./server and the run ./client(the order can't be changed)

rdt's People

Contributors

rzhou2197 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.