Hi Mossy,

If you are interested in learning how tracing works in NS2, please read

http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post

The above posts are based on the normal trace. If you are interested in 
wireless trace you might have to modify it  a bit. Please look at "new wireless 
trace format" at the link below:

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#New_Wireless_Trace_Formats


Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On Apr 10, 2011, at 3:01 AM, Mossy Mozila wrote:

> 
> 
> Anyone who can help me with an awk file to view Throughput with Xgraph from a
> .tr file from smac simulation which have a tcl script MyTest.tcl
> 
> Here is the .tr file sample
> 
> s 1.000000000 _0_ AGT  --- 0 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [0] 0 0
> r 1.000000000 _0_ RTR  --- 0 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [0] 0 0
> s 1.000000000 _0_ RTR  --- 0 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [0] 0 0
> s 6.003395772 _0_ AGT  --- 1 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [1] 0 0
> r 6.003395772 _0_ RTR  --- 1 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [1] 0 0
> s 6.003395772 _0_ RTR  --- 1 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [1] 0 0
> D 6.003395772 _0_ IFQ  ARP 0 cbr 512 [0.00 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [0] 0 0
> s 16.562202932 _0_ AGT  --- 2 cbr 512 [0.00 0 0] [energy 1000.000000 ei
> 0.000 es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [2] 0 0
> r 16.562202932 _0_ RTR  --- 2 cbr 512 [0.00 0 0] [energy 1000.000000 ei
> 0.000 es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [2] 0 0
> s 16.562202932 _0_ RTR  --- 2 cbr 512 [0.00 0 0] [energy 1000.000000 ei
> 0.000 es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [2] 0 0
> D 16.562202932 _0_ IFQ  ARP 1 cbr 512 [0.00 0 0] [energy 1000.000000 ei
> 0.000 es 0.000 et 0.000 er 0.000] ------- [0:0 1:0 32 0] [1] 0 0
> s 17.221000000 _0_ MAC  --- 0 SYNC 9 [0.12 0 0] [energy 1000.000000 ei 0.000
> es 0.000 et 0.000 er 0.000] 
> N -t 17.221000 -n 1 -e 982.776000
> s 18.639000000 _1_ MAC  --- 0 SYNC 9 [0.13 1 0] [energy 982.776000 ei 17.221
> es 0.000 et 0.000 er 0.003] 
> N -t 18.639000 -n 0 -e 981.358000
> s 20.080000000 _0_ MAC  --- 0 SYNC 9 [0.12 0 1] [energy 981.358000 ei 18.636
> es 0.000 et 0.003 er 0.003] 
> N -t 20.080000 -n 1 -e 979.917000
> s 21.704249539 _0_ AGT  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
> 20.074 es 0.000 et 0.006 er 0.003] ------- [0:0 1:0 32 0] [3] 0 0
> r 21.704249539 _0_ RTR  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
> 20.074 es 0.000 et 0.006 er 0.003] ------- [0:0 1:0 32 0] [3] 0 0
> s 21.704249539 _0_ RTR  --- 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
> 20.074 es 0.000 et 0.006 er 0.003] ------- [0:0 1:0 32 0] [3] 0 0
> D 21.704249539 _0_ IFQ  ARP 2 cbr 512 [0.00 0 0] [energy 979.917000 ei
> 20.074 es 0.000 et 0.006 er 0.003] ------- [0:0 1:0 32 0] [2] 0 0
> D 21.704249539 _0_ IFQ  ARP 3 cbr 512 [0.00 0 0] [energy 979.917000 ei
> 20.074 es 0.000 et 0.006 er 0.003] ------- [0:0 1:0 32 0] [3] 0 0
> s 32.981000000 _1_ MAC  --- 0 SYNC 9 [0.12 1 0] [energy 979.917000 ei 20.074
> es 0.000 et 0.003 er 0.006] 
> N -t 32.981000 -n 0 -e 967.016000
> N -t 33.102200 -n 1 -e 966.896800
> N -t 34.392000 -n 1 -e 966.894510
> s 34.420000000 _0_ MAC  --- 0 SYNC 9 [0.11 0 1] [energy 967.016000 ei 32.972
> es 0.000 et 0.006 er 0.006] 
> N -t 34.420000 -n 1 -e 966.863510
> N -t 34.535200 -n 0 -e 965.463800
> N -t 34.535200 -n 1 -e 966.750310
> s 34.869010053 _0_ AGT  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
> 34.520 es 0.000 et 0.009 er 0.006] ------- [0:0 1:0 32 0] [4] 0 0
> r 34.869010053 _0_ RTR  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
> 34.520 es 0.000 et 0.009 er 0.006] ------- [0:0 1:0 32 0] [4] 0 0
> s 34.869010053 _0_ RTR  --- 4 cbr 512 [0.00 0 0] [energy 965.463800 ei
> 34.520 es 0.000 et 0.009 er 0.006] ------- [0:0 1:0 32 0] [4] 0 0
> -- 
> View this message in context: 
> http://old.nabble.com/Anyone-who-can-help-me-with-an-awk-file-to-view-Throughput-with-Xgraph-for-smac-simulation-tp31360695p31360695.html
> Sent from the ns-users mailing list archive at Nabble.com.
> 

Reply via email to