This blog displays information about the latest android smartphone, price and specs as well as information applikaksi game that appeals to you, here are also a lot of software that you can download

Selasa, 12 Agustus 2014

NS2 , AWK script for finding the packet delivery ratio

NS2 , AWK script for finding the packet delivery ratio - is looking for information, and in this blog Android Gadgets we have been providing very complete information from various sources that reliable, well we'll talk about the NS2 , AWK script for finding the packet delivery ratio as you need, please si read to completion.

Articles : NS2 , AWK script for finding the packet delivery ratio
full Link : NS2 , AWK script for finding the packet delivery ratio
Article AODV, Article awk, Article calculate, Article Code, Article delivery, Article download, Article DSDV, Article energy, Article free, Article NS2, Article packet delivery ratio, Article Program, Article programming, Article ratio, Article Routing Protocol, Article tcl, Article Tcl script,

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;

}



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


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

A few gadget information NS2 , AWK script for finding the packet delivery ratio , hopefully can provide benefits to you all.

You're reading an article NS2 , AWK script for finding the packet delivery ratio and this article url is https://androidtabletgadgets.blogspot.com/2014/08/ns2-awk-script-for-finding-packet.html?m=1 you can bookmark , Hopefully this article could be useful and do not forget to always to this blog to find information on gadget.

Tag : , , , , , , , , , , , , , , , , ,

0 komentar:

Posting Komentar