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:
- Copy tcp-bulk-send.cc from examples/tcp and paste it in scratch directory.
- Run tcp-bulk-send.cc with tracing set to true.
- Verify whether tcp-bulk-send.tr file is generated successfully.
- Download TraceMetrics from the URL given below.
- Load tcp-bulk-send.tr in TraceMetrics and go to 'Streams' tab.
- Select 'TCP ALL' in the left side menu and then click 'Export TCP graphics' at the bottom.
- 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.
- If you're able to see the graph successfully, change the 'Output format' on left side to PNG and then auto-generate the graph.
- Send the PNG image of the graph for evaluation.
Task tags
Students who completed this task
Parth Pratim, Asanali, sikfeng, bartekche, Victor Hu