Routing overhead : the number of transmitted control packets. For multi-hop 
communication, each transmission of the packet is taken into account.

Data: the number of delivered data packets.
                                                                  
Normalized Data Load : defined by   Data / RoutingOverhead

Here is my awk script to measure Normalized Data Load but i'm not sure if is 
correct..can someone help me with this matter?

BEGIN {
   rec=0
   byte=0; 
} 


/^f|^s/ && /RTR/ && /-It (\?:|AODV|DSR)/ {byte+=$37}    # Total  number of 
transmitted packets
/^r/ && /AGT/ && /-It cbr/ {rec++}            # Number of delivered data packet
 
 
END {
    ro = (byte);              # Routing Overhead

    nrl = (rec/ro);  # Normalized Data Load  

      printf ("                     Data : ");
      printf (rec);
      printf ("\n")
      printf ("                  Routing Overhead : ");
      printf (ro)
      printf ("\n") 
      printf (  "              Normalized Data Load : ");
      printf (nrl);
      printf ("\n") } 
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to