CS460-Projects/networksim/README.md

7 lines
No EOL
1.1 KiB
Markdown

# 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.