Giter Site home page Giter Site logo

rdt-over-udp's Introduction

A congestion controlled pipelined RDT

Assignment 2 of Fall 2023 CS 656 (Computer Networks) | UWaterloo

Introduction

  • Designed and implemented a congestion controlled pipelined Reliable Data Transfer (RDT) protocol in Python to transfer files reliably over an unreliable network.
  • Built sender and receiver programs to split data into packets, handle retransmissions, implement congestion control with adjustable window size, and reassemble packets Used a network emulator program to simulate packet loss, delay, and reordering across the communication link.
  • Logged timestamped transmission details like packet sequence numbers, window sizes, and acknowledgements for testing and evaluation.
  • Ensured reliable, in-order delivery of files by implementing mechanisms to handle lost, duplicate, and out-of-order packets.
  • Tested and debugged the end-to-end implementation on multiple systems within the university's computer science environment.

Run network_emulator.py

Test with the following scripts:

./run.sh network_emulator <Forward receiving port> <Receiver's network address> <Reciever’s receiving UDP port number> <Backward receiving port> <Sender's network address> <Sender's receiving UDP port number> <Maximum Delay> <drop probability> <verbose>

For example:

./run.sh network_emulator 9991 host2 9994 9993 host3 9992 1 0.2 0

Run sender.py

Please use the following scripts:

./run.sh sender "ne_host" "ne_port" "port" "timeout" "filename"

For example:

./run.sh sender host1 9991 9992 50 <input file>

Run receiver.py

Please use the following scripts:

./run.sh receiver "ne_addr" "ne_port" "recv_port" "dest_filename"

For example:

./run.sh receiver host1 9993 9994 <output file>

rdt-over-udp's People

Contributors

l32zhao avatar

Stargazers

 avatar Jasper Chen 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.