The ns-3 Network Simulator Project

Plot graphs using TraceMetrics

This task is about learning how to use TraceMetrics to plot graphs. The following steps must be followed to complete this task:

(Note: you should have 'gnuplot' installed to perform this task)

  1. Copy tcp-bulk-send.cc from examples/tcp and paste it in scratch directory.
  2. Enable ASCII traces while running the program (See command line arguments).
  3. Ensure that the ASCII trace file is generated for tcp-bulk-send.cc (tcp-bulk-send.tr must be generated after running the program).
  4. Download 'TraceMetrics' tool. It is a trace file analyzer for ns-3.
  5. Load the trace file generated for tcp-bulk-send.cc in TraceMetrics.
  6. Use the option to plot graphs in TraceMetrics. You can also export the plot in .jpg or other image formats.
  7. Send the graph for evaluation

Task tags

  • graphs
  • tracemetrics
  • c++
  • gnuplot

Students who completed this task

Kr0n0s, SaiMyGuy, hax0kartik, howie

Task type

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

2019