Salam Alikm,

About the first point: there are two type of packets ( Data and Control ) 
packets. control=request+reply messages. Also I am referring you to see the 
NS-2 manual about Packets in NS-2.

About the second: yes 

 packet_id = $41; 41 column. also try study the output trace file to get more 
information

I advise all the beginner into NS-2 to try simple programs and scenarios.

All the best,

Mohammed AbuHajar
Master of Computer Science







________________________________
From: sarym binome <[email protected]>
To: [email protected]
Sent: Monday, January 5, 2009 1:11:46 PM
Subject: RE: [ns] AWK programms

 hello, salem
i prepar a simulation for AODV routing protocol, for E2E delay , i saw your 
example you work in application layer (AGT),

if (( $1 == "r") &&  ( $35 == "cbr" ) && ( $19=="AGT" )) {  end_time[packet_id] 
= time;  }
       else {  end_time[packet_id] = -1;  }

don't we work whith pkt type ( AODV  REQUEST and  REPLY)??????????(i'm new and 
i realy don't know )
     { if (($1=="s")&&($25=="(REQUEST)")&&($17=="0]")) { time[$23,$21]=$2 
;printf ("le temps d'émission de requête : %f \n",time[$23,$21] );}; 

an other question about   # CALCULATE DELAY 
( packet_id = $41;) whay you choose $41???? is the trace file for DRS has a 
more than 26 column !?

thanks, best regards.


> Date: Mon, 5 Jan 2009 11:56:37 -0800
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [ns] AWK programms
> 
> 
> Hi,
> 
> About the first point: you need to check your simulation environment and 
> parameters and try to simulate these protocol with simple simulation 
> scenarios.
> About the second point: because I need to remove the size of the packet 
> header from the received packet, so I need exactly to know how the size of 
> header.
> 
> All the Successes,
> Mohammed AbuHajar
> Palestine Territory, Occupied.
> 
> 
> 
> 
> 
> ________________________________
> From: hajer h <[email protected]>
> To: [email protected]
> Sent: Monday, January 5, 2009 1:04:41 AM
> Subject: AWK programms
> 
> 
> hello i am working with ns2..
> and i am loocking for some awk programme that calculate the average 
> throughput, e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV...
> can you help me in this way...
> i have tried 
> http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html those 
> programme i didn't understand why they gives 0 for such protocol like DSR or 
> DSDV...
> i have anothers questions : about the avearge thtoughut : why did you 
> subtrain  512 ...did you calcul the average throughput for TCP traffic???
> thanks in advance...
> 
> 
> 
> 
> -- 
> 
> "Somewhere, something incredible is waiting to be known."
> 
> 
> 

________________________________
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est 
gratuit !


      

Reply via email to