[ns] New Wireless trace format in ns 2.28.
Gabriel Wang
gabriel.wang at gmail.com
Mon Sep 5 07:05:44 PDT 2005
Hi Chris and all,
I tried adding line "$ns use-newtrace" to the attached sample "
simple-wireless.tcl" and it does give me the following new format.
s -t 0.029290548 -Hs 1 -Hd -1 -Ni 1 -Nx 390.00 -Ny 385.00 -Nz 0.00 -Ne -
1.000000 -Nl RTR -Nw ---
-Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.255 -Id -1.255 -It message -Il 32 -If 0 -Ii 0
-Iv 32
s -t 1.119926192 -Hs 0 -Hd -1 -Ni 0 -Nx 5.00 -Ny 2.00 -Nz 0.00 -Ne
-1.000000-Nl RTR -Nw --- -
...
However, I wonder under this new format how to get packet size and packet id
information, which are usually needed for analysis?
Thank you very much for your help!
Regards,
Gabriel
On 9/5/05, HARDING Christopher <C.A.Harding at staffs.ac.uk> wrote:
>
> 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