- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- s-mac help and
guddu313
Participant
I am currently working on the ns2. Now i have to make a graph using gnu plot this graph is in between energy consumed by s-mac node and IEEE 802.11 node. I have run a TCL script and get the Trace file i tried awk to extract column but i don’t get it plz help
trace file :::
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
.
now how can i get energy consumption graph help???
Viewing 0 reply threads
You must be logged in to reply to this topic.