Code Monkey home page Code Monkey logo

cs528-project2's Introduction

Binghamton University, Fall 2023

CS428/528 Project-2: UDP Pinger

SUMMARY

  • There are 2 PARTS :-
    • PART 1
      • udppinger-server1.cc - Simulates a 30% chance of losing the client's packets.
      • udppinger-client1.cpp - The client pings the server every 2 seconds and terminate the program after three minutes. The client waits for 1 second for a reply if it doesn't receive a reply. It transmits the next ping
    • PART 2 - udppinger-server2.cc and udppinger-client2.cpp.feature
      • udppinger-server2.cc - Similar to Part 1, additionally the server has time-out o 30 seconds. It will terminate if it doesn't receive a ping for 30 seconds.
      • udppinger-client2.cpp -Additionally calculates The minimum RTT, maximum RTT, total number of RTTs, packet loss rate (in percentage) and average RTTs.

NOTES, KNOWN BUGS, AND/OR INCOMPLETE PARTS

  • MSG_CONFIRM is not compatible in mac, it is compatible only in linux based machines. It is set 0 in mac / might have to remove to work on linux.
  • No Bugs detected so far

REFERENCES

INSTRUCTIONS

  • Execute the below commands for Part 1 :

    • To run the server
    •   g++ -o server1 udppinger-server1.cc  
        ./server1 <port number eg.52837>
      
    • To run the client
    •   g++ -o client1 udppinger-client1.cpp
        ./client1 <port number eg.52837>
      
  • Execute the below commands for Part 2 :

    • To run the server
    •   g++ -o server2 udppinger-server2.cc
        ./server2 <port number eg.52837>
      
    • to run the client
    •   g++ -o client2 udppinger-client2.cpp
         ./client2 <port number eg.52837>
      

Teammate: Soumya Achu

cs528-project2'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.