Awk file :

avr.awk Computing the average : BEGIN { FS = " "} { nl++ } { s=s+$1} END {print "average:" s/nl}


stdv.awk Computing thestandard deviation.: BEGIN {FS=" "}{ln++}{d=$1-t}{s2=s2+d*d} END {print "standev:" sqrt(s2/ln)}

PERL FILES: (펄을 이용하여 계산 하기)

throughput.pl Computing the throughput


column.pl Extracting a column from a file

참고 : http://www-sop.inria.fr/mistral/personnel/Eitan.Altman/ns.htm




How to measure overhead with ns2


Count the number of sent packets at the agent or router layer

Cat trace.tr | grep ^s | grep AGT | grep _2_ (=source node) | wc -l


Use 

awk ' { if ($6 == 9999) print } '

to filter based on certain fields (9999= packet UID)




cat out.tr | grep " 2 3 cbr " | grep ^r | column 1 10 | awk '{dif = $2 - old2; if(dif==0) dif = 1; if(dif > 0) {printf("%d\t%f\n", $2, ($1 - old1) / dif); old1 = $1; old2 = $2}}' > jitter.txt

shell 명령은 n3에서 "CBR packet receive" event를 선택하고, time(column 1) sequence number (column 10)을 선택하고, 마지막 packet 수신시간과 각 sequence number에 대한 sequence number(loss packet에 대한)에서의 차이로 나눈 차이를 계산한다. 다음은 gnuplot를 사용하여 생성된 jitter graph이다. X축은 packet sequence number이며, Y축은 초당 simulation 시간이다.




정리 : 2006.12.13 by 임헌정
http://www.4ellene.net
2006/12/14 06:39 2006/12/14 06:39
TAG
Trackback address :: http://4ellene.net/tt/trackback/1073

Comments List

  1. rubber horse shoes 2008/05/23 07:27

  2. chi flat iron 2011/12/13 16:24

    <P>Your <a title="CHI Flat Iron" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Flat Iron</STRONG></a> D'backs snapback hat awaits you!The Arizona Diamondbacks were formed <a title="CHI Hair Products" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Hair Products</STRONG></a> as Phoenix had <a title="CHI Official Website" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Official Website</STRONG></a> risen to one of the top <a title="CHI Flat Iron Website" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Flat Iron Website</STRONG></a> 10 largest <a title="CHI Flat Irons" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Flat Irons</STRONG></a> cities in the country (from being the 99th) so it made perfect sense <a title="CHI Flat Iron Official Website" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Flat Iron Official Website</STRONG></a> They are yet to <a title="CHI Hair Products Official Website" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>CHI Hair Products Official Website</STRONG></a> qualify for the super bowl, and in the last few years became the <a title="Farouk CHI Hair Products" href="http://www.chiflatironwebsite.com/" target=_blank><STRONG>Farouk CHI Hair Products</STRONG></a> only team to ever lose all 16 regular games</P>

Write a comment.

[로그인][오픈아이디란?]