Code Monkey home page Code Monkey logo

cs-118-project2's Introduction

CS118 Project 2

This is the repo for spring 2022 cs118 project 2.

Arek Der-Sarkissian - [email protected] - 905270247 Ethan Keshishian - [email protected] - 105422235

From a high-level perspective, our server and client both accept an initial SYN connection. Following that, both enter an infinite loop that accepts one packet from each other at a time. On the client side, except in the case of the first non-SYN packet, the client waits to hear an ACK from the server. After that, it constructs up to ten packets to send in a given window to the server. On the server side, the server waits to hear for a packet from the client. Upon receiving a packet, it correctly places it into the received file on the server side. Both client and server are configured to detect packet loss in the event where a packet is expected but not received, and appropriately sends out a request for that packet or ACK in subsequent connections to one another.

One major problem we faced was being able to send and receive packets correctly and transition into the FIN sequence accurately. It turned out that, for the most part, we weren't using the right sequence and ACK numbers where needed, and had to re-do certain parts to reflect the correct logic.

Makefile

This provides a couple make targets for things. By default (all target), it makes the server and client executables.

It provides a clean target, and tarball target to create the submission file as well.

You will need to modify the Makefile USERID to add your userid for the .tar.gz turn-in at the top of the file.

Academic Integrity Note

You are encouraged to host your code in private repositories on GitHub, GitLab, or other places. At the same time, you are PROHIBITED to make your code for the class project public during the class or any time after the class. If you do so, you will be violating academic honestly policy that you have signed, as well as the student code of conduct and be subject to serious sanctions.

cs-118-project2's People

Contributors

ethankeshishian avatar areksds avatar jinghaozhao 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.