Simulation Code and Scripts for CUBIC Paper
This page contains the simulation code and scripts for our cubic
paper.
STEP 1: Install Network Simulator - ns-2
Our code and scripts were developed on ns-2.26.
Please download and install it.
STEP 2: Install CUBIC and Other High-Speed TCPs
This paper simulates 5 high-speed TCPs: BIC-TCP, CUBIC-TCP, HSTCP,
STCP, and HTCP. Implementation of HTCP is avilable at HTCP site.To run the
other four high-speed TCPs, please replace the following two files with
tcp.cc and tcp.h,
respectively.
- ns-allinone-2.26/ns-2.26/tcp/tcp.cc
- ns-allinone-2.26/ns-2.26/tcp/tcp.h
STEP 3: Install SACK-TS
Since fast long-distance network simulations with regular TCP/SACK1
connections take a very long time, we use TCP/SACK-TS.
Please refer the HOWTO and extract sack-ts-code.tar.gz and install it.
STEP 4: Install Simulation Scripts
We developed script.tar.gz, which includes simulation scripts. We improved the scripts based on
the work of Sally Floyd and Evandro de Souza..
STEP 5: Simulation Parameters
Protocol Name
|
Protocol ID
|
CUBIC
|
13
|
| BI-TCP |
12 |
| HSTCP |
8 |
| STCP |
9 |
HTCP
|
-10
|
Please run "./one_protocol protocol_id" to get the simulation results
for the corresponding protocol, then
to create Figure 5 (TCP Friendliness in Short-RTT Networks), please run
"./plottcp_shortrtt.sh"
to create Figure 6 (TCP Friendliness in Long-RTT Networks), please run
"./plottcp_longrtt.sh"
to create Figures 8 and 9 (Stability), please run "./plot_stability.sh
0.2" and "./plot_stability.sh 2"