I think few days ago Mr. Mohammed Abu Hajar gave the useful awk script to
calculate parameter throughput, PDR, NRL etc. You can search on
http://www.mail-archive.com/ns-users@isi.edu/maillist.html or direct to his
message on http://www.mail-archive.com/ns-users@isi.edu/msg07536.html. Then you
can modified the script based on your trace file. Hope can help.
Regards,
Wayan
ÃÍãÏ ÍãæÏå [EMAIL PROTECTED] wrote:
*hi all ns users*
*my name is ahmad*
*my research address is study of geocast routing protocols in ad hoc network
*
**
*now i need an awk script to calculate the parameters throughput , paket
delivery ratio .. end to end delay..routing packets. etc*
*my trace file format is*
**
**
*M 1000.0 0 (82.56, 180.33, 0.00), (66.35, 5.03), 8.01*
*M 1000.0 1 (263.34, 68.41, 0.00), (166.71, 146.40), 2.09*
*M 1000.0 2 (94.12, 139.19, 0.00), (239.62, 398.70), 9.16*
*M 1000.0 3 (98.18, 451.59, 0.00), (94.62, 88.86), 5.62*
*M 1000.0 4 (105.23, 258.73, 0.00), (269.23, 521.23), 8.56*
*M 1000.0 5 (252.98, 176.70, 0.00), (1.14, 239.51), 1.28*
*M 1000.0 6 (65.28, 439.75, 0.00), (266.66, 278.20), 0.92*
*M 1000.0 7 (171.15, 377.70, 0.00), (63.73, 496.69), 7.97*
*M 1000.0 8 (123.19, 553.37, 0.00), (75.38, 91.69), 9.59*
*M 1000.0 9 (292.00, 428.70, 0.00), (207.01, 231.84), 3.89*
*M 1000.0 10 (140.28, 17.84, 0.00), (81.02, 13.38), 7.25*
*M 1000.0 11 (18.63, 554.03, 0.00), (250.39, 323.97), 7.93*
*M 1000.0 12 (6.65, 132.94, 0.00), (50.07, 245.34), 8.96*
* 1000.0 13 (34.58, 54.17, 0.00), (184.96, 434.60), 6.70*
* 1000.0 14 (143.18, 599.75, 0.00), (15.94, 152.60), 4.92*
*M 1000.0 15 (56.49, 523.96, 0.00), (19.46, 466.56), 0.05*
*M 1000.0 16 (173.97, 213.87, 0.00), (202.50, 478.73), 6.81*
*M 1000.0 17 (217.98, 428.97, 0.00), (263.53, 387.62), 5.35*
*M 1000.0 18 (80.28, 19.95, 0.00), (33.60, 293.80), 6.14*
*M 1000.0 19 (199.79, 542.26, 0.00), (82.02, 119.42), 7.90*
*M 1000.0 20 (233.62, 42.18, 0.00), (288.23, 122.09), 6.91*
*M 1000.0 21 (257.21, 341.57, 0.00), (148.38, 183.00), 9.39*
*M 1000.0 22 (11.58, 425.49, 0.00), (196.41, 382.35), 7.86*
*M 1000.0 23 (255.28, 46.32, 0.00), (33.75, 105.83), 2.39*
*r -t 1000.006629478 -Hs 59 -Hd -1 -Ni 59 -Nx 268.33 -Ny 228.80 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 11 -Mt 800 -Is 17.252 -Id -
1.252 -It (null) -Il 76 -If 0 -Ii 17 -Iv 32 Flood typ 0 src 17 to 32 st
1000.001700 hop 1*
*r -t 1000.006629531 -Hs 36 -Hd -1 -Ni 36 -Nx 157.43 -Ny 246.51 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 11 -Mt 800 -Is 17.252 -Id -
1.252 -It (null) -Il 76 -If 0 -Ii 17 -Iv 32 Flood typ 0 src 17 to 32 st
1000.001700 hop 1*
*r -t 1000.006629603 -Hs 26 -Hd -1 -Ni 26 -Nx 218.21 -Ny 128.35 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 11 -Mt 800 -Is 17.252 -Id -
1.252 -It (null) -Il 76 -If 0 -Ii 17 -Iv 32 Flood typ 0 src 17 to 32 st
1000.001700 hop 1*
*d -t 1000.006629605 -Hs 24 -Hd -1 -Ni 24 -Nx 260.18 -Ny 296.30 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 11 -Mt 800 -Is 17.252 -Id -
1.252 -It (null) -Il 128 -If 0 -Ii 17 -Iv 32 Flood typ 0 src 17 to 32 st
1000.001700 hop 1 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,179.333)]
to[(200.000,500.000) (300.000,600.000)] t=1000.125000*
*r -t 1000.125527201 -Hs 37 -Hd -1 -Ni 37 -Nx 93.76 -Ny 232.74 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,
179.333)] to[(200.000,500.000) (300.000,600.000)] t=1000.125000
r -t 1000.125527204 -Hs 29 -Hd -1 -Ni 29 -Nx 111.93 -Ny 132.15 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,
179.333)] to[(200.000,500.000) (300.000,600.000)] t=1000.125000*
*r -t 1000.125527255 -Hs 47 -Hd -1 -Ni 47 -Nx 39.65 -Ny 235.78 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,
179.333)] to[(200.000,500.000) (300.000,600.000)] t=1000.125000*
*r -t 1000.125527298 -Hs 4 -Hd -1 -Ni 4 -Nx 105.80 -Ny 259.64 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,
179.333)] to[(200.000,500.000) (300.000,600.000)] t=1000.125000*
*r -t 1000.125527312 -Hs 12 -Hd -1 -Ni 12 -Nx 7.06 -Ny 133.98 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0 (82.463,
179.333)] to[(200.000,500.000) (300.000,600.000)] t=1000.125000*
*r -t 1000.125527346 -Hs 16 -Hd -1 -Ni 16 -Nx 174.06 -Ny 214.72 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw --- -Ma 0 -Md -Ms 0 -Mt 800 -Is 0.254 -Id -
1.254 -It (null) -Il 40 -If 0 -Ii 0 -Iv 32 Geocast [J U] src[0