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 , AWK script for finding the packet delivery ratio

NS2 , AWK script for finding the packet delivery ratio - 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 , AWK script for finding the packet delivery ratio 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 , AWK script for finding the packet delivery ratio
full Link : NS2 , AWK script for finding the packet delivery ratio

You can also see our article on:


NS2 , AWK script for finding the packet delivery ratio


Packet delivery ratio : the ratio of the number of delivered data packet to the destination. This illustrates the level of delivered data to the destination.
∑ Number of packet receive / ∑ Number of packet send
The greater value of packet delivery ratio means the better performance of the protocol.
###################################################################

# Initialization settings
BEGIN {

        sendLine = 0;
        recvLine = 0;
        fowardLine = 0;
        if(mseq==0)
mseq=10000;
for(i=0;i<mseq;i++){
rseq[i]=-1;
sseq[i]=-1;
}
}
# Applications received packet
$0 ~/^s.* AGT/ {
# if(sseq[$6]==-1){
        sendLine ++ ;
#       sseq[$6]=$6;
# }
}

# Applications to send packets
$0 ~/^r.* AGT/{
# if(rreq[$6]==-1){
        recvLine ++ ;
#         sseq[$6]=$6;
#        }

}


# Routing procedures to forward the packet
$0 ~/^f.* RTR/ {

        fowardLine ++ ;

}

# Final output
END {
        printf "cbr s:%d r:%d, r/s Ratio:%.4f, f:%d \n", sendLine, recvLine, (recvLine/sendLine),fowardLine;

}



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



so much information about NS2 , AWK script for finding the packet delivery ratio

hopefully information NS2 , AWK script for finding the packet delivery ratio can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about NS2 , AWK script for finding the packet delivery ratio if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2014/08/ns2-awk-script-for-finding-packet.html for more people know

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

Related : NS2 , AWK script for finding the packet delivery ratio

0 comments:

Post a Comment