Tech News World, Contacts Samsung Galaxy, Windows 8, Nokia Lumia, Quad Core Smart Phones, HTC smartphone, Google Nexus, MacBook, PayPal

Tuesday, August 12, 2014

NS2 Throughput calculation awk program

NS2 Throughput calculation awk program - Although I work in the office and a lot of work that makes me tired but still I make a blog Tech News World and still will update it for you because this is part of my hobby who likes the world of technology, especially about the gadget, now we will discuss first about NS2 Throughput calculation awk program because it is the topic that you are now looking for, please refer to the information I provide in the guarantee for you,

Articles : NS2 Throughput calculation awk program
full Link : NS2 Throughput calculation awk program

You can also see our article on:


NS2 Throughput calculation awk program

Throughput refers to how much data can be transferred from one location to another in a given amount of time.  The following code will count all the received application packets in a network such that we can calculated the network throughput.

Throughput Vs Time . more throughput is better protocol

AWK PROGRAM

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


BEGIN {
init=0;
i=0;
}
{
   action = $1;
   time = $2;
   from = $3;
   to = $4;
   type = $7;
   pktsize = $6;
   flow_id = $8;
   src = $9;
   dst = $10;
   seq_no = $11;
   packet_id = $6;
 
  if(action=="r" && from==2 && to==3 && type=="cbr") {
  pkt_byte_sum[i+1]=pkt_byte_sum[i]+ pktsize;

if(init==0) {
start_time = time;
init = 1;
}

end_time[i] = time;
i = i+1;
}
}
END {

printf("%.2f\t%.2f\n", end_time[0], 0);

for(j=1 ; j<i ; j++){

th = pkt_byte_sum[j] / (end_time[j] - start_time)*8/1000;
printf("%.2f\t%.2f\n", end_time[j], th);
}

printf("%.2f\t%.2f\n", end_time[i-1], 0);
}

AWK




so much information about NS2 Throughput calculation awk program

hopefully information NS2 Throughput calculation awk program can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about NS2 Throughput calculation awk program if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2014/08/ns2-throughput-calculation-awk-program.html for more people know

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

Related : NS2 Throughput calculation awk program

0 comments:

Post a Comment