Tecno Android Phones, Samsung Imei Repair, Huawei Mediapad, Official Firmware/ Flash File, WiFi, Alcatel One, Flash Tool Windows, Android Jelly Bean

AWK code for Measure End to End Delay - NS2

AWK code for Measure End to End Delay - NS2 - we say welcome to the blog Tecno Android Phones we provide a lot of latest gadget information that must be very dear for you to miss, now we will discuss first about AWK code for Measure End to End Delay - NS2 we have collected a lot of information to make this article to complete for you, Please read:

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);
   }
}

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



Articles about AWK code for Measure End to End Delay - NS2 finished discussed

We think it is enough information about AWK code for Measure End to End Delay - NS2 , hopefully the information we give can give benefit for you,

If you feel the information AWK code for Measure End to End Delay - NS2 that we provide can provide benefits for others please share with link https://southernmatron.blogspot.com/2014/08/awk-code-for-measure-end-to-end-delay.html thank you for visiting our blog page and do not forget to visit other pages.

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

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

0 komentar:

Post a Comment