Hi everyone,
I have been carrying out ns2 simulation using
diffusion protocol for wireless sensors.
I am get the following traces

s 0.000001000 _0_ AGT  --- 30504276 diffusion 0 [0.00
0 0] ------- [0:254 0:255 32 0]
r 0.000001000 _0_ RTR  --- 30504276 diffusion 0 [0.00
0 0] ------- [0:254 0:255 32 0]
s 0.000001000 _1_ AGT  --- 503803425 diffusion 0 [0.00
0 0] ------- [1:254 1:255 32 0]
r 0.000001000 _1_ RTR  --- 503803425 diffusion 0 [0.00
0 0] ------- [1:254 1:255 32 0]
s 0.000001000 _2_ AGT  --- 1374534831 diffusion 0
[0.00 0 0] ------- [2:254 2:255 32 0]
r 0.000001000 _2_ RTR  --- 1374534831 diffusion 0
[0.00 0 0] ------- [2:254 2:255 32 0]
s 0.000001000 _3_ AGT  --- 1733080622 diffusion 0
[0.00 0 0] ------- [3:254 3:255 32 0]
r 0.000001000 _3_ RTR  --- 1733080622 diffusion 0
[0.00 0 0] ------- [3:254 3:255 32 0]
s 0.000001000 _4_ AGT  --- 1486717601 diffusion 0
[0.00 0 0] ------- [4:254 4:255 32 0]
r 0.000001000 _4_ RTR  --- 1486717601 diffusion 0
[0.00 0 0] ------- [4:254 4:255 32 0]
s 0.000001000 _5_ AGT  --- 1454595779 diffusion 0
[0.00 0 0] ------- [5:254 5:255 32 0]
r 0.000001000 _5_ RTR  --- 1454595779 diffusion 0
[0.00 0 0] ------- [5:254 5:255 32 0]
s 0.000001000 _6_ AGT  --- 402363792 diffusion 0 [0.00
0 0] ------- [6:254 6:255 32 0]
r 0.000001000 _6_ RTR  --- 402363792 diffusion 0 [0.00
0 0] ------- [6:254 6:255 32 0]
s 0.000001000 _7_ AGT  --- 23210729 diffusion 0 [0.00
0 0] ------- [7:254 7:255 32 0]
r 0.000001000 _7_ RTR  --- 23210729 diffusion 0 [0.00
0 0] ------- [7:254 7:255 32 0]
s 0.000001000 _8_ AGT  --- 1500389329 diffusion 0
[0.00 0 0] ------- [8:254 8:255 32 0]
r 0.000001000 _8_ RTR  --- 1500389329 diffusion 0
[0.00 0 0] ------- [8:254 8:255 32 0]

Diffusion 0 does it mean no data sent ? I am just
confused because I have seen trace format like TCP 100
which means 100 bytes transferred.

I want to calculate the packets send and packets
received using diffusion protocol. I am getting the
diffusion 0 at AGT layer. I would be grateful if you
could give me some idea how to calculate the total
data sent and total data recieved by a particular
node. looking forward for your reply.


Yours sincerly,
Chitra Magar
East China University of Science and Technology
Shanghai China

Reply via email to