how extrct information from the trace file please

34 views
Skip to first unread message

My Email

unread,
Apr 7, 2023, 7:36:21 PM4/7/23
to Network Simulator 2 (NS2)

hello how could I extract information from the trace file please>>> could anyone help me online (paid)

knudfl

unread,
Apr 8, 2023, 3:58:18 AM4/8/23
to Network Simulator 2 (NS2)
Hi.

If you want to know about e.g.
PacketDeliveryRatio, Delay, Throughput, Jitter, Energy, Overhead, Packets dropped, Hop count, Latency
... then please run the trace file.tr with the 240 ns2 scripts

New trace format .... the simulation file has a line     $ns use-newtrace
I.e.

set ns_ [new Simulator]
.
$ns_ use-newtrace                                                

The most simulations are "old trace format" https://nsnam.sourceforge.net/wiki/index.php/NS-2_Trace_Formats
.... and do not have the line          $ns use-newtrace

My suggestion is to have simulations creating a trace file "old-trace.tr" , and another version.tcl creating "new.tr" to use the most possible number of the above listed analyzing awk and perl files.
Reply all
Reply to author
Forward
0 new messages