temporarily disabled CCP by default

- USE_CCP flag will be supported by `configure` option in near future
master
EunYoung Jeong 2019-03-17 22:35:47 +09:00
parent eeb71ce1e8
commit 651063272b
2 changed files with 16 additions and 15 deletions

View File

@ -20,10 +20,19 @@ We require the following libraries to run mTCP.
Compling PSIO/DPDK/NETMAP/ONVM driver requires kernel headers.
- For Debian/Ubuntu, try ``apt-get install linux-headers-$(uname -r)``
Using [CCP](https://ccp-project.github.io/) for congestion control (enabled by
We have modified the dpdk package to export net_device stat data
(for Intel-based Ethernet adapters only) to the OS. To achieve this, we have
created a new LKM dpdk-iface-kmow. We also modified
``mk/rte.app.mk`` file to ease the compilation
process of mTCP applications. We recommend using our package for DPDK
installation.
### CCP support
Using [CCP](https://ccp-project.github.io/) for congestion control (disabled by
default), requires building and running a CCP algorithm. If you would like to
disable CCP (ie. use the internal implementation of Reno), simply comment out
the `#define USE_CCP` in `mtcp/src/include/mtcp.h`.
enable CCP (ie. use the internal implementation of Reno), simply set
the `USE_CCP` flag to `TRUE` in `mtcp/src/include/mtcp.h`.
1. Install Rust. Any installation method should be fine. We recommend using
rustup:
@ -55,14 +64,6 @@ the `#define USE_CCP` in `mtcp/src/include/mtcp.h`.
sudo ./target/debug/reno --ipc unix
```
We have modified the dpdk package to export net_device stat data
(for Intel-based Ethernet adapters only) to the OS. To achieve this, we have
created a new LKM dpdk-iface-kmow. We also modified
``mk/rte.app.mk`` file to ease the compilation
process of mTCP applications. We recommend using our package for DPDK
installation.
## Included directories
mtcp: mtcp source code directory

View File

@ -54,15 +54,15 @@
#define RATE_LIMIT_ENABLED FALSE
#define PACING_ENABLED FALSE
#define USE_CCP TRUE
#define USE_CCP FALSE
/* Only use rate limiting if using CCP */
#ifdef USE_CCP
#if USE_CCP
#undef RATE_LIMIT_ENABLED
#define RATE_LIMIT_ENABLED TRUE
// The following two logs are for debugging / experiments only, should be turned
// off for production use
#define DBGCCP // ccp debug messages
#define PROBECCP // print all cwnd changes, similar to tcpprobe output
// #define DBGCCP // ccp debug messages
// #define PROBECCP // print all cwnd changes, similar to tcpprobe output
#endif
#define LOCK_STREAM_QUEUE FALSE