The ns-3 Network Simulator Project
Comparison of congestion window plots of TCP Vegas and TCP BIC
‘examples/tutorial/fifth.cc’ is a simple example that explains how to plot a TCP congestion window in ns-3. In this task, the objective is to compare the congestion window plots of two TCP variants - TCP Vegas and TCP BIC.
The steps given below should be followed to complete the task:
- Copy fifth.cc from examples/tutorial and paste it in the scratch directory.
- Modify the ‘examples/tutorial/fifth.cc’ program to enable TCP Vegas. You may use ‘examples/tcp/tcp-variants-comparison.cc’ as a reference.
- Run the modified fifth.cc and plot the congestion window for TCP Vegas.
- Repeat steps ‘B’ and ‘C’ for TCP BIC.
- Combine both the congestion window plots to produce a single graph.
- Use gnuplot to plot the data file. The resultant graph should be as specified:
- Format of the graph: .png
- Name of the image: cwnd.png
- X-axis label: Time (in seconds)
- Y-axis label: cwnd (in Bytes)
- Title of the graph: Congestion Window Plot.
- Position of the key: outside and top right corner.
- Graph of TCP Vegas: Black dashed lines (type 2).
- Graph of TCP BIC: Black dotted lines (type 3).
- Send the image for evaluation.
Task tags
Students who completed this task
Kr0n0s, ra1nst0rm3d, SaiMyGuy, hax0kartik, howie