LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   avgstats.awk (https://www.linuxquestions.org/questions/linux-software-2/avgstats-awk-870934/)

tootz 03-25-2011 08:16 AM

avgstats.awk
 
hi, any1 have simple program which run avgstats.awk succuessfully? coz i cannot obtain any result when i run avgstats.awk. it shows

####################################################################
# Warning: no packets were received, simulation may be too short #
####################################################################


flowID: 0
flowType:
srcNode1: 0
srcNode2: 0
destNode: 0
startTime: 1000000
stopTime: 0
receivedPkts: 0
avgTput[kbps]: -0
avgDelay[ms]: 0
avgJitter1[ms]: 0
avgJitter2[ms]: 0
avgJitter3[ms]: 0
avgJitter4[ms]: 0

does any1 know why?

corp769 03-26-2011 04:11 AM

Hmm, where to start.... Can you give us the code to your program? By just posting output and no other information about what you are trying to exactly accomplish, we can not help you. And what is this avgstats.awk file you are talking about?

unSpawn 03-26-2011 04:40 AM

Quote:

Originally Posted by tootz (Post 4302913)
does any1 know why?

Doesn't it say "Warning: no packets were received, simulation may be too short"? BTW why start another thread on the same topic as you have one going here? In this case keeping things together is more efficient.


Quote:

Originally Posted by corp769 (Post 4303912)
Hmm, where to start.... Can you give us the code to your program?

Probably in knudfl's post here: http://www.linuxquestions.org/questi...4/#post4299515 ?

corp769 03-26-2011 04:43 AM

Ahh look at that.... And that's why we always tell these new guys to keep everything in one thread..... Thanks for that man.

David the H. 03-26-2011 05:46 AM

And please use [code][/code] tags around your code, to preserve formatting and to improve readability. In this case it would keep those overly-long hash lines from forcing the page to side-scroll my browser window.

tootz 03-27-2011 10:03 AM

3 Attachment(s)
sorry guys, i know i am a newbie, attached is my tcl, scenerio, trace files.
thanks alot guys.

corp769 03-27-2011 12:52 PM

Looks like you are running NS. You need to specify these kind of things in your post when describing your problem. I will wait for knudfl to look at this thread, he is the master with NS.

knudfl 04-02-2011 08:25 AM

First : Edit post # 1 to use code tags !
Write [/code] at code end, and [code] at code start.

And do not write long words like : ###########################
It spoils the formatting : 1) Difficult to read on small monitors.
2) Difficult for all us, who don't use the smallest types in the browser.


'avgstats.awk' is not supposed to do anything with your file.tr .
Read #10 http://www.linuxquestions.org/questi...aph-869865/#10

Besides that, your code works perfect : 'ns trace.tcl' will create :
694demo.nam 694demo.tr

The program is probably too complex to use a single plot :
Probably to be sequenced into "many" plots like the thirteen files
<file>.eps in ns-allinone-2.34/ns-2.34/tcl/ex/wireless-scripts/ : runall.cmd.

..

knudfl 04-08-2011 09:18 AM

Some interesting information here : "instantThroughputStll.awk"

http://www.linuxquestions.org/questi...ations-873644/

knudfl 05-04-2011 11:44 AM

More files / hints, "awk scripts" :


1) http://mohit.ueuo.com/AWK_Scripts.html
>
droppackets.awk totalpacketssent.awk totalpacketsreceived.awk
p-d-f.awk instantJitter.awkcwnd.awk

http://mohittahiliani.blogspot.com/2...n-ns-2_06.html

2) http://www.linuxquestions.org/questi....php?p=4334166


All times are GMT -5. The time now is 03:15 AM.