Skip to content

Simulation of Stop and Wait ARQ protocol in JavaScript along with simulated drops and corruption of frames.

Notifications You must be signed in to change notification settings

Org-Placeholder/ARQ-protocol-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Repeat ReQuest Simulator

This simulates a stop and wait ARQ protocol with modifiable simulation constraints.

Setup instructions

  • Install nodeJS
  • Run npm install in the directory. This will install all the required modules.

Usage instructions

  • For Reciever : Run node reciever.js [port] eg - node reciever.js 3000
  • For Sender : Run node sender.js [ip] [port] [message] eg - node sender.js 127.0.0.1 3000 Hello_World

More information

  • All logs are prepended by [LAYER_NAME] which shows which layer is logging the information.
  • Frame drops is simulated by just not sending the frame at all. The probability for this can be changed by modifying the LOSS_PROBABLITY in const.js.
  • Frame damage is simulated by just making the type DAMAGED. The probability for this can be changed by modifying the CORRUPTION_PROBABILITY in const.js.

References

  • Computer Networks by Andrew S. Tanenbaum, David J. Wetherall

About

Simulation of Stop and Wait ARQ protocol in JavaScript along with simulated drops and corruption of frames.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published