https://github.com/winterwind/udp_sim
Simulations of the Stop-and-Wait & Go-Back-N UDP protocols (results print in terminal from the client files)
https://github.com/winterwind/udp_sim
go-back-n latex networks python stop-and-wait tex udp
Last synced: about 1 month ago
JSON representation
Simulations of the Stop-and-Wait & Go-Back-N UDP protocols (results print in terminal from the client files)
- Host: GitHub
- URL: https://github.com/winterwind/udp_sim
- Owner: Winterwind
- Created: 2024-12-12T21:43:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-12T22:08:02.000Z (over 1 year ago)
- Last Synced: 2025-07-04T01:03:51.583Z (12 months ago)
- Topics: go-back-n, latex, networks, python, stop-and-wait, tex, udp
- Language: TeX
- Homepage:
- Size: 572 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UDP_Sim
Simulations of the Stop-and-Wait & Go-Back-N UDP protocols as a part of my Computer Networks class' first project. Both parts use the [UDP_Constants.py](UDP_Constants.py) file to access shared things, such as the ```simulate_error``` function. You can also change the probability of bit errors and packet losses from this file, and those changes will reflect when you actually run the simulation. This repo also includes [the report](CSC424_Project_Part_1.pdf) I had to submit along with [the LaTeX file](main.tex) that produced it.
## Stop-and-Wait
To run this simulation, first run the [Stop_n'_Wait_Server.py](Stop_n'_Wait_Server.py) file in one terminal window and then run the [Stop_n'_Wait_Client.py](Stop_n'_Wait_Client.py) in another; the results will then print in that window.
## Go-Back-N
To run this simulation, first run the [Go_Back_N_Server.py](Go_Back_N_Server.py) file in one terminal window and then run the [Go_Back_N_Client.py](Go_Back_N_Client.py) in another; the results will then print in that window.