[ns] Trace file format in ns2.28.

HARDING Christopher C.A.Harding at staffs.ac.uk
Mon Sep 5 05:50:51 PDT 2005


Hello,
Use the line $ns use-newtrace which will give you the new wireless trace
format. Then use http://k-lug.org/~griswold/NS2/ns2-trace-formats.html
to give you what the values mean.

I've used Java to get values out of the trace files. Or you can use AWK
or PEARL or whatever you wish.

Chris Harding

-----Original Message-----
From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On
Behalf Of Gabriel Wang
Sent: 05 September 2005 12:27
To: ns-users at ISI.EDU
Subject: [ns] Trace file format in ns2.28.



Hi all,

Would someone kindly advise the trace file format in ns 2.28? I am
newbie to 
ns-2 and I tried a sample tcl, which gives me the following trace file 
output:

s 0.000001000 _0_ AGT --- 30504276 diffusion 0 [0 0 0 0] ------- [0:254 
0:255 32 0] 
s 0.000001000 _1_ AGT --- 503803425 diffusion 0 [0 0 0 0] ------- [1:254

1:255 32 0] 
s 0.000001000 _2_ AGT --- 1374534831 diffusion 0 [0 0 0 0] -------
[2:254 
2:255 32 0] 
...

I am wondering how to use awk to calculate the stats.

Thank you for your time in advance!

Best Regards,
Gabriel

The information in this email is confidential and is intended solely for
the addressee. Access to this email by anyone else is unauthorised. 

If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, except for the purpose of delivery to the addressee, is prohibited
and may be unlawful. Kindly notify the sender and delete the message and
any attachment from your computer. 



More information about the Ns-users mailing list