The ns-3 Network Simulator Project

Enable support of ASCII traces in first.cc and collect the statistics

examples/tutorial/first.cc is a basic C++ program provided for ns-3 beginners. A line by line explanation of first.cc is provided in the ns-3 tutorial. Understand the working of first.cc from the tutorial, and then proceed with the following steps:

  1. Copy first.cc from examples/tutorial and paste it in scratch directory.
  2. Modify first.cc in scratch directory to enable the support of ASCII traces. You can see examples/tcp/tcp-bulk-send.cc as a reference to do this.
  3. Ensure that the ASCII trace file is generated for first.cc. Attach the trace file for evaluation.
  4. Make a patch with the modifications made in first.cc and send it for evaluation.
  5. Download 'TraceMetrics' tool. It is a trace file analyzer for ns-3.
  6. Load the trace file generated for first.cc in TraceMetrics and send a snapshot of the statistics shown in TraceMetrics.

Task tags

  • ascii tracing
  • tracemetrics
  • c++

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