The ns-3 Network Simulator Project

Plot graphs using TraceMetrics

This task deals with using TraceMetrics (trace analyzer for ns-3) to easily plot high quality graphs for ns-3 simulations. Follow the steps given below to complete the task:

  1. Copy tcp-bulk-send.cc from examples/tcp and paste it in scratch directory.
  2. Run tcp-bulk-send.cc with tracing set to true.
  3. Verify whether tcp-bulk-send.tr file is generated successfully.
  4. Download TraceMetrics from the URL given below.
  5. Load tcp-bulk-send.tr in TraceMetrics and go to 'Streams' tab.
  6. Select 'TCP ALL' in the left side menu and then click 'Export TCP graphics' at the bottom.
  7. After a new window opens, click on 'Make a view' to see the graph. You might have to install gnuplot if clicking 'Make a view' gives an error.
  8. If you're able to see the graph successfully, change the 'Output format' on left side to PNG and then auto-generate the graph.
  9. Send the PNG image of the graph for evaluation.

Task tags

  • graphs
  • tracemetrics
  • ascii tracing

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