Techno Life, Micromax New Version Official Firmware, Winmax official firmware, Nokia Flash File, WhatsApp Messenger, Lenovo, huawei, xiaomi, samsung galaxy

Cari Blog Ini

Diberdayakan oleh Blogger.
Selasa, 12 Agustus 2014

NS2 , AWK script for finding the packet delivery ratio

NS2 , AWK script for finding the packet delivery ratio - these days more and more blogs that talk about technology, including blogs Techno Life but we are very experienced in this case because we have been there from a few years ago always present information about techno for you, well now we are about NS2 , AWK script for finding the packet delivery ratio hopefully the information we will convey can answer your question to google, please see:

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;

}



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



information NS2 , AWK script for finding the packet delivery ratio has been discussed

hopefully the meaning of NS2 , AWK script for finding the packet delivery ratio that we write can be useful for you in adding insight about gadgets.

you just finished reading the article titled NS2 , AWK script for finding the packet delivery ratio if you want to bookmark or share your links use the link https://lifeandeating.blogspot.com/2014/08/ns2-awk-script-for-finding-packet.html do not forget to go back to this blog if you want to get the latest information about gadgets.

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

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

0 komentar:

Posting Komentar