I want to create data from tr files generated by NS2 simulator

50 views
Skip to first unread message

Sandeep Singh

unread,
Oct 20, 2024, 9:57:36 AM10/20/24
to Network Simulator 2 (NS2)
I want to create dataset from tr files generated by NS2 simulator
please help to to create dataset

knudfl

unread,
Oct 20, 2024, 1:05:37 PM10/20/24
to Network Simulator 2 (NS2)
If the trace file (e.g. file.tr) contains information of {PacketDeliveryRatio Delay Throughput Jitter Energy Overhead Packets dropped Hop count Latency etc.} ... you can extract this information with an awk or perl file.
Important is that that the awk or perl file used for this is a match for the file.tr .
So there are ~240 files to choose from → Awk+Perl_ns2-scripts-01.21.tar.xz→
-
-

Hameurlaine Hicham

unread,
Oct 20, 2024, 1:06:56 PM10/20/24
to ns-u...@googlegroups.com
Please, i can t get the e2e delay and throughput. I use many awk script. How can i get it please 

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/cbbe259d-3f35-4bad-8223-34633a4be394n%40googlegroups.com.

Diógenes José

unread,
Oct 20, 2024, 2:47:45 PM10/20/24
to 'knudfl' via Network Simulator 2 (NS2)

knudfl

unread,
Oct 21, 2024, 3:19:55 AM10/21/24
to Network Simulator 2 (NS2)
....hichamham...

Please upload your trace file (out.tr ?) to Google Drive, and post a shared link.
-

Sandeep Singh

unread,
Oct 21, 2024, 6:39:52 AM10/21/24
to Network Simulator 2 (NS2)

knudfl

unread,
Oct 21, 2024, 1:17:43 PM10/21/24
to Network Simulator 2 (NS2)
...
Sandeep Singh ....

Sorry,  not shared links.  Access requested.
-

knudfl

unread,
Oct 22, 2024, 8:45:11 AM10/22/24
to Network Simulator 2 (NS2)
.. Sandeep Singh ....

I downloaded AODV1_EnergyB60.tr and used qos.awk as first choice ....
$ awk -f qos.awk AODV1_EnergyB60.tr
       startTime:  1
        stopTime:  46
    receivedPkts:  2641
   avgTput[kbps]:  22.3904
## tput ##
___________________________

And e2e example .......
$ awk -f e-to-e-flesk.awk AODV1_EnergyB60.tr
Average delay 46.0038
___________________________

"To do"  to broaden the opportunities :
Use two simulations,  one with old trace .... and one with new trace.
Old trace, the most used, and plenty of awk scripts.
 ** New trace has a line in the simulation file :      $ns_ use-newtrace
.... suggest two different file names for the trace e.g. AODV1_EnergyB60.tr and newAODV1_EnergyB60.tr
-

knudfl

unread,
Oct 23, 2024, 4:45:07 AM10/23/24
to Network Simulator 2 (NS2)
.. Sandeep Singh ....

-----
Reply all
Reply to author
Forward
0 new messages