Info NS2 , AWK script for finding the packet delivery ratio - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors
New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info NS2 , AWK script for finding the packet delivery ratio many already we collect data to make this article so you do not miss the news, please see:
Articles :
Info NS2 , AWK script for finding the packet delivery ratio
full Link :
Info NS2 , AWK script for finding the packet delivery ratio
You can also see our article on:
Info 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 Info NS2 , AWK script for finding the packet delivery ratio finished in discussion
hopefully the information we convey about Info NS2 , AWK script for finding the packet delivery ratio can benefit you in getting new knowledge about technology,
you just finished reading the information Info NS2 , AWK script for finding the packet delivery ratio we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2014/08/info-ns2-awk-script-for-finding-packet.html and do not forget to always visit this blog to get the latest information every day.
Tag :
0 komentar:
Posting Komentar