To analaysis the trace file to extract the parameters you shoud use awk scripts. but before you is newer to NS2, I advise you to study the awk language(just do some searching on the internet for awk script, so you can modify your scripts for your use). the following site contains some awk scripts for that. http://www.mail-archive.com/ns-users@isi.edu/msg07430.html
For graphing its good to use MatLab tool for plotting. its excellent tool. Regards, Mohammed AbuHajar --- On Tue, 12/1/09, Kannammal Ravi <kekr...@gmail.com> wrote: From: Kannammal Ravi <kekr...@gmail.com> Subject: help To: mcs...@yahoo.com Date: Tuesday, December 1, 2009, 7:24 AM sir i am a student doing projects in directed diffusion. i used the code avaiable in Ns2 for three nodes. i got trace file and nam file. but i dont know how to analyse the trace file and draw the graph. i would be very grateful to you to help me to find out its performance like delay.throughput etc. thank you in advance