awk script for nrl

160 views
Skip to first unread message

umair ahmed

unread,
Aug 1, 2011, 8:39:58 AM8/1/11
to googlens2
Hi this my awk script which i use for normalized routing load ,it works fine but i have one question what is the difference between normalized routing load and routing overhead and the other question is in comments of awk file
#AWK program to calculate Normalised Routing Load of AODV in new trace format. Normalised Routing Load is the number of routing packets per data packets delivered at the destination. $35 also includes message{don't know why }
BEGIN {
recvs =0;
routing_packets =0;
}
{
 if (( $1 == "r") &&  ( $35=="cbr" ) && ( $19=="AGT" )) recvs++;
if (($1 == "s" || $1 == "f") && $19 == "RTR" && ( $35 =="AODV" || $35 =="message" || $35 =="DSR"|| $35 =="OLSR")) routing_packets++;
}

END{
printf("NRL = %.3f\n", routing_packets/recvs);
}

Reply all
Reply to author
Forward
0 new messages