Hi,
you can use Perl/awk to parse the tracefile, or have a look at tracegraph or trace2stats (google for them). Also, you find a ton of mails on the topic in the mailing list archives... bye, Marco >---- Messaggio originale---- >Da: [EMAIL PROTECTED] >Data: 6-apr-2007 6.18 PM >A: <ns-users@ISI.EDU> >Ogg: [ns] analyse trace file- packet delay > > >Hello, > >I am new to NS2. > >I want to find packet delay from node 2 to node 3. Topology is like > >2------------- 0----------------------------------1-----------3 > >0---------1 is a bottleneck link > >I got the output trace file of format (sample) > >r 4.030256 10 1 ack 40 ------- 5 10.0 5.0 74 579 >+ 4.030256 1 0 ack 40 ------- 5 10.0 5.0 74 579 >- 4.030256 1 0 ack 40 ------- 5 10.0 5.0 74 579 >r 4.031008 4 0 tcp 1040 ------- 4 4.0 9.0 69 578 >+ 4.031008 0 1 tcp 1040 ------- 4 4.0 9.0 69 578 >- 4.031008 0 1 tcp 1040 ------- 4 4.0 9.0 69 578 >r 4.031824 0 4 ack 40 ------- 4 9.0 4.0 66 560 >+ 4.031824 4 0 tcp 1040 ------- 4 4.0 9.0 77 593 >- 4.031824 4 0 tcp 1040 ------- 4 4.0 9.0 77 593 >r 4.031872 1 11 tcp 1040 ------- 6 6.0 11.0 41 552 > >now I have to find minimum/maximum/average Packet delay from node 2 to node3? >Please tell me the idea. > >Thanks >Rinky > > >