Hi everyone, I try to simulate directed diffusion and calculate the average delay. I have several problem with the tracefile. This is what my tracefile look like:
r 35.923188588 _1_ MAC --- 1486717614 diffusion 0 [0 ffffffff 0 800] [energy 999.971155 ei 0.000 es 0.000 et 0.010 er 0.019] ------- [0:255 -1:255 32 0] r 35.923213588 _1_ RTR --- 1486717614 diffusion 0 [0 ffffffff 0 800] [energy 999.971155 ei 0.000 es 0.000 et 0.010 er 0.019] ------- [0:255 -1:255 32 0] r 35.923214588 _1_ AGT --- 672080299 diffusion 0 [0 0 0 0] [energy 999.971155 ei 0.000 es 0.000 et 0.010 er 0.019] ------- [1:255 1:254 32 0] s 36.610001000 _4_ AGT --- 1486717616 diffusion 0 [0 0 0 0] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:254 4:255 32 0] r 36.610001000 _4_ RTR --- 1486717616 diffusion 0 [0 0 0 0] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:254 4:255 32 0] r 36.610002000 _4_ AGT --- 1113789816 diffusion 0 [0 0 0 0] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:255 4:254 32 0] s 36.693003000 _4_ AGT --- 1486717617 diffusion 0 [0 0 0 0] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:254 4:255 32 0] r 36.693003000 _4_ RTR --- 1486717617 diffusion 0 [0 0 0 0] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:254 4:255 32 0] s 36.693078000 _4_ MAC --- 1486717616 diffusion 52 [0 ffffffff 4 800] [energy 999.976658 ei 0.000 es 0.000 et 0.005 er 0.018] ------- [4:255 -1:255 32 0] N -t 36.693079 -n 3 -e 999.970991 N -t 36.693079 -n 2 -e 999.970991 N -t 36.693080 -n 1 -e 999.970991 Node 4 here is the sink and node 0 is the sender. I noticed that 1. the packet size (diffusion) is always zero at the receiver (AGT) but it is 52 for sending, i do not know why? 2. Sequence id of received packets does not match any sequence id, this information is needed to calculate delay. Is there something wrong? 3. what is the problem ? maybe there is different way to calculate delay for directed diffusion? I am waiting for your quick response, thanks in advance, Michel
