The ns-3 Network Simulator Project

Compare the congestion window plots for TCP Newreno and TCP Highspeed

examples/tutorial/fifth.cc is a simple example that explains how to plot a TCP congestion window in ns-3. This task is about comparing the congestion window plots for TCP Newreno and TCP Highspeed. Follow the steps given below to complete the task:

  1. Copy fifth.cc from examples/tutorial and paste it in the scratch directory.
  2. Run fifth.cc and plot the congestion window as explained in the link given below.
  3. The default TCP in ns-3 is Newreno, so the congestion window plot obtained from the previous step would be for Newreno.
  4. Modify the fifth.cc program to enable TCP Highspeed. You may use examples/tcp/tcp-variants-comparison.cc as a reference.
  5. Run the modified fifth.cc and plot the congestion window for TCP Highspeed.
  6. Combine both the congestion window plots in a single graph with proper labels on axes and legends.
  7. Send a PNG image of the graph for evaluation where congestion windows of TCP Newreno and TCP Highspeed are compared.
  8. Send a patch with the changes made in fifth.cc for evaluation.

Task tags

  • tcp variants
  • congestion window plots
  • c++
  • gnuplot

Students who completed this task

Parth Pratim, Asanali, sikfeng, bartekche, Victor Hu

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
  • assessment Outreach / Research
close

2018