Innaz Review, Samsung Galaxy, price and specifications, Flash Android, Games For Your Apple, Jailbreak Tool For iOS, IMEI Unlock Method

Selasa, 12 Agustus 2014

AWK code for Measure End to End Delay - NS2

AWK code for Measure End to End Delay - NS2 - In the past, when I started to start blogging, many thoughts disturbed me. I want to have a blog with a nice and interesting look. I am constantly looking for basic tutorials from some web and blogs on the internet. And thankfully, one by one I started to do it, and of course have to go through some confusion process first, but the most important of a blog that is content, yes on the blog Innaz Review we will discuss a lot of information about gadgets that are very in need by you, now we will discuss first about AWK code for Measure End to End Delay - NS2 please refer to the information we will convey until completion:

Articles : AWK code for Measure End to End Delay - NS2
full Link : AWK code for Measure End to End Delay - NS2

You can also see our article on:


AWK code for Measure End to End Delay - NS2


End-to-end Delay : the average time taken by a data packet to arrive in the destination. It also includes the delay caused by route discovery process and the queue in data packet transmission. Only the data packets that successfully delivered to destinations that counted.
∑ ( arrive time – send time ) / ∑ Number of connections
The lower value of end to end delay means the better performance of the protocol.
Here is the AWK Script for calculating the delay

################################################################################

BEGIN {
     highest_packet_id = 0;
}
{
   action = $1;
   time = $3;
   #from = $3;
   #to = $4;
   type = $35; #aodv relationships,if 5 no infomation
   pktsize = $37;
   #src = $9;
   #dst = $10;
   #seq_no = $11;
   packet_id = $41;

 
if ( type != "AODV" ) {

   if ( packet_id > highest_packet_id )
         highest_packet_id = packet_id;

if ( start_time[packet_id] == 0 )

 if ( type == "cbr" && action != "d" ) {
      if ( action == "r" ) {
         end_time[packet_id] = time;
      }
   } else {

end_time[packet_id] = -1;
   }
}
}
END {

 for ( packet_id = 0; packet_id <= highest_packet_id; packet_id++ ) {
       start = start_time[packet_id];
       end = end_time[packet_id];
       packet_duration = end - start;

 if ( start < end ) printf("%f %f\n", start, packet_duration);
   }
}

###########################################################



so much information AWK code for Measure End to End Delay - NS2

hopefully AWK code for Measure End to End Delay - NS2 information can provide benefits for you in determining the gadgets that fit your needs in daily life.

you just read AWK code for Measure End to End Delay - NS2 if you feel this information is useful and want to bookmark or share it please use link https://innaz2.blogspot.com/2014/08/awk-code-for-measure-end-to-end-delay.html if you want more information please search on other pages this blog.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : AWK code for Measure End to End Delay - NS2

0 komentar:

Posting Komentar