Skip to content

Commit

Permalink
Add run section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alumpish committed Sep 28, 2023
1 parent c6b2792 commit 2fa99b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CA4 - Congestion Control Algorithms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
## Contents

- [Code Documentation](#code-documentation)

- [NewReno Class](#newreno-class)
- [Reno Class](#reno-class)
- [BBR Class](#bbr-class)

- [Run](#run)

- [Questions](#questions)
- [Q1](#q1-whats-the-difference-between-congestion-control-and-the-flow-control)
- [Q2](#q2-describe-new-renos-algorithm-shortly)
Expand Down Expand Up @@ -164,6 +165,9 @@ It switches to Drain phase and decrease cwnd\_ by 25%.

#### Private Methods:

## Run
You can specify Algorithms and their parameters in `src/main.cpp` file. Then just run makefile with `make` command and run `bin/main`. It makes plot files in `plots` folder and you can plot them with `./plot.sh` command (needs gnuplot). Plot images will also be in `plots` folder.

## Questions

### Q1. "What's the difference between congestion control and the flow control?"
Expand Down
1 change: 0 additions & 1 deletion CA4 - Congestion Control Algorithms/src/bbr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void BBR::sendData() {
case Mode::PROBE_RTT:
if (rtt_ > min_rtt_ * 1.25) {
mode_ = Mode::DRAIN;
// cwnd_ *= 0.75;
break;
}
cwnd_ += 1;
Expand Down

0 comments on commit 2fa99b5

Please sign in to comment.