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



![Far more Images UFS [HWK] Latest v02.03.00.06 Setup Download Of the iPhone 6 Leak, Featuring It's Power Button And Front Panel Far more Images Of the iPhone 6 Leak, Featuring It's Power Button And Front Panel](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLTl965Nd2KSTuPbWfbLu4NPcy8vGpRbTI_aIb6Ba8U4fE5J89aoW4ONJDwdo491Qx4UG3CWk2aj40MUymotAp7K9vmhK79Oxz2CDG8U8IoYrNbDNZNmU053zge9hkHS2mJLXgRxz3oEQ/s1600/iphone-6-leaked-photos-show-iphone-5s-comparison_mugf.jpg)






