Add all of the homework 4 files, all of the graphs made, the README, and the tcp-variants-comparison file.

This commit is contained in:
Charles Descamps 2025-03-27 11:32:27 -07:00
parent 0b9e4a3ee4
commit cbcb35a158
9 changed files with 631 additions and 0 deletions

7
networksim/README.md Normal file
View file

@ -0,0 +1,7 @@
# Adapted tcp-variants-comparison file
The `tcp-variants-comparison.cc` file has been adapted to allow for multiple TCP variants to be run in one simulation.
In order to change the variants ran, find line 510-524. This is where the magic of which variants to run is.
The code relies on multiple flows to also be ran, which can be found using the number of cases - 1. If you want to test the file, you'll want to replace the file with this modified version, which must then be rebuilt. You should be able to use `./ns3 build tcp-variants-comparison` (or `./ns3 build examples/tcp-variants-comparison` might work better) although this hasn't been tested, and the best method is to use ccache to cache the build before making the modification.
## How to find the cwnd of multiple TCP variants (how to run)
The command `./ns3 run tcp-variants-comparison --command-template="%s --tracing=1 --prefix_name=CS460Homework4_TCPCmp --num_flows=3 --access_delay=50ms"` can be used to find the comparisons between TCP variants. You'll want the number of flows to equal the amount of cases in the switch statement.