Usage of trace stats script

From ResiliNetsWiki
Jump to: navigation, search

1. Trace_Stats (trace_stats_v2.pl) is a perl script used for coming up with calculations of various network performance parameters such as delay, goodput and packet delivery ratio for any simulation. The trace_stats file should be run after the simulation on the obtained trace files.

2. Trace_stats file should be placed in the same folder as waf in ns3.

3. In order to use trace file, we must first make sure that the Packet IDs are printed onto the trace file. This is done by adding the following line of code to the starting of the Print method in packet.cc found in /src/network/model. os << "ns3PID: " << GetUid() << " ";

4. The topology of the network should be specified in terms of a "node_addresses.csv" file where the different nodes should be listed in terms of the ip addresses used in the simulation. This file should go into the folder containing the trace_stats script.

5. Once the above actions are done, the simulations could be run and the trace files obtained.

6. Once the trace file is obtained, the script is run using ./trace_stats_v2.pl [options] --tr_name <tracefile.tr>.

7. The options field include different arguments such as the simulation type, transport protocol type etc. A full list of arguments could be got by running the trace stats script on its own by ./trace_stats_v2.pl.

8. Care should be taken to make sure that the options field are entered correctly. Some of the parameters have default values given in the list of arguments and thus would have to be specified according to the script.

9. Once the trace stats script is run using the needed arguments and the corresponding trace file, you should see a <corresponding file name>.parameter.dat file in the same folder as the trace_stats which gives the different network performance parameters calculated.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox