Review All Gadget, Samsung Galaxy Note, Firmware/ Flash File, Auto Forward, Transfer from Note 7 to Computer/Mac, Transfer Data Contacts from HTC to Samsung, Chimera Tool Samsung

Selasa, 12 Agustus 2014

NS2 Throughput calculation awk program

NS2 Throughput calculation awk program - do you know that every day there are new gadgets that are created, every gadget has its own way to use it, in blogs Review All Gadget we are reviewing gadgets from various brands ranging from spec, price and how to use the feature, now we are discussing iformasi that you are looking for NS2 Throughput calculation awk program this information we collect from many reliable sources so that complete for you. please see.

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




information NS2 Throughput calculation awk program has been discussed

hopefully the information we provide with title NS2 Throughput calculation awk program can provide more benefits for you.

well this information NS2 Throughput calculation awk program we have finished, if you intend to bookmark or sharenya can use link http://almourasiloun2.blogspot.com/2014/08/ns2-throughput-calculation-awk-program.html.

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

Related : NS2 Throughput calculation awk program

0 komentar:

Posting Komentar