Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong Zhang committed Jan 5, 2017
2 parents 699f745 + bc6359e commit 9f37b50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/load-balance/conga-simulation-large.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ int main (int argc, char *argv[])

bool enableLargeSynRetries = false;

bool enableLargeDataRetries = false;

bool enableFastReConnection = false;

CommandLine cmd;
Expand Down Expand Up @@ -398,6 +400,7 @@ int main (int argc, char *argv[])

cmd.AddValue ("enableLargeSynRetries", "Whether the SYN packet would retry thousands of times", enableLargeSynRetries);
cmd.AddValue ("enableFastReConnection", "Whether the SYN gap will be very small when reconnecting", enableFastReConnection);
cmd.AddValue ("enableLargeDataRetries", "Whether the data retransmission will be more than 6 times", enableLargeDataRetries);

cmd.Parse (argc, argv);

Expand Down Expand Up @@ -575,6 +578,11 @@ int main (int argc, char *argv[])
Config::SetDefault ("ns3::TcpSocket::ConnCount", UintegerValue (10000));
}

if (enableLargeDataRetries)
{
Config::SetDefault ("ns3::TcpSocket::DataRetries", UintegerValue (10000));
}

NodeContainer spines;
spines.Create (SPINE_COUNT);
NodeContainer leaves;
Expand Down

0 comments on commit 9f37b50

Please sign in to comment.