The ns-3 Network Simulator Project
Plot a Line graph for TCP Round Trip Time (RTT) using gnuplot
Run example tcp-variants-comparison.cc which can be found in examples/tcp folder in ns-3. As a result of the execution, many ‘.data’ files will be created. Plot the TcpVariantsComparison-rtt.data file using gnuplot. Follow the below steps for your task:
- Configure ns-3 using command: ./waf configure --enable-examples.
- Build ns-3.
- Run the example tcp-variants-comparison.cc using below command:
./waf --run "tcp-variants-comparison --tracing=true"
- Check if the file TcpVariantsComparison-rtt.data is created in the main ns-3 folder.
- Use gnuplot to plot this file. The resultant graph should follow the below:
Format of the graph: .png
Name of the image: RTT.png Type of Graph: Line Graph X-axis label: Time (in Seconds) Y-axis label: RTT (in Seconds) Title of the graph: Round Trip Time Plot Position of the key: outside and top right corner Line Width: 2
Task tags
Students who completed this task
Parth Pratim, Asanali, Victor Hu, sikfeng, Parth Pandya, winningit, Phyxkal, bartekche