Innaz Review, Samsung Galaxy, price and specifications, Flash Android, Games For Your Apple, Jailbreak Tool For iOS, IMEI Unlock Method

Selasa, 12 Agustus 2014

NS2 , AWK script for finding the packet delivery ratio

NS2 , AWK script for finding the packet delivery ratio - In the past, when I started to start blogging, many thoughts disturbed me. I want to have a blog with a nice and interesting look. I am constantly looking for basic tutorials from some web and blogs on the internet. And thankfully, one by one I started to do it, and of course have to go through some confusion process first, but the most important of a blog that is content, yes on the blog Innaz Review we will discuss a lot of information about gadgets that are very in need by you, now we will discuss first about NS2 , AWK script for finding the packet delivery ratio please refer to the information we will convey until completion:

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

hopefully NS2 , AWK script for finding the packet delivery ratio information can provide benefits for you in determining the gadgets that fit your needs in daily life.

you just read NS2 , AWK script for finding the packet delivery ratio if you feel this information is useful and want to bookmark or share it please use link https://innaz2.blogspot.com/2014/08/ns2-awk-script-for-finding-packet.html if you want more information please search on other pages this blog.

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