LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NS2 v2.26 installation on Ubuntu 11.10 (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-v2-26-installation-on-ubuntu-11-10-a-934738/)

guo 07-22-2012 07:51 AM

1 Attachment(s)
Quote:

Originally Posted by knudfl (Post 4735013)
# 44


Different from what ? ?

You see it is the out.tr of smac in the attachment, and it is the typical trace file, so I can use AWK language to analysis it easily.


The out.tr which caused by ns simZMAC.tcl is big up to 648.1Mb,what't worse I can not open it in my XP system.

guo 07-22-2012 07:53 PM

Quote:

Originally Posted by knudfl (Post 4677922)
# 36

Testing with the "ns-2.26-ZMAC" :

cd ns-allinone-2.26/ns-2.26/zmacTcl/
./ns-zmac simZMAC.tcl -numsources 3 -zmacMode 1 -interval 10 -sinknode 83 -valuefile salida.tr -maxX 300 -maxY 300 -nn 84 -ack 0 -to 3 -tno 6 -timeSyncErrorFlag 0 -timeSyncErrorValue 100

The reply is
Code:

Setting slot size to 0.001124
num_nodes is set 84

.. and two trace files are created : out.tr , salida.tr

.

please tell me what should I do after out.tr and salida.tr?Thank you .

knudfl 07-27-2012 05:08 AM

# 46
Quote:

The out.tr which caused by ns simZMAC.tcl is big up to 648.1Mb
./ns-zmac simZMAC.tcl -numsources 3 -zmacMode 1 -interval 10 -sinknode 83 -valuefile salida.tr -maxX 300 -maxY 300 -nn 84 -ack 0 -to 3 -tno 6 -timeSyncErrorFlag 0 -timeSyncErrorValue 100

Scientific Linux SL6, first time with the above command:
( 15 May 2012, see post #46 in the other zmac tagged thread.)
I got out.tr 1.3 MB, salida.tr 111 bytes.

CentOS 6, today : out.tr 6.7 MB, salida.tr 37 bytes.

Ubuntu 10.10, today : out.tr 6.4 MB, salida.tr 38 bytes.

.

knudfl 07-27-2012 02:10 PM

# 47

Probably read the documentation about trace files (Google .. ns2 trace file ..)
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
http://zbinwu.blogspot.dk/2010/10/an...race-file.html
http://getch.wordpress.com/2010/11/2...s2-trace-file/
http://www.ns2ultimate.com/post/2496...s2-trace-trace
http://stackoverflow.com/questions/8...ns2-trace-file

http://www.winlab.rutgers.edu/~zhibi.../ns_trace.html
http://nsvisualtraceanalyzer.wordpress.com/
? http://www.angelfire.com/al4/esorkor/

.

guo 07-27-2012 07:53 PM

Quote:

Originally Posted by knudfl (Post 4739245)
# 46

./ns-zmac simZMAC.tcl -numsources 3 -zmacMode 1 -interval 10 -sinknode 83 -valuefile salida.tr -maxX 300 -maxY 300 -nn 84 -ack 0 -to 3 -tno 6 -timeSyncErrorFlag 0 -timeSyncErrorValue 100

Scientific Linux SL6, first time with the above command:
( 15 May 2012, see post #46 in the other zmac tagged thread.)
I got out.tr 1.3 MB, salida.tr 111 bytes.

CentOS 6, today : out.tr 6.7 MB, salida.tr 37 bytes.

Ubuntu 10.10, today : out.tr 6.4 MB, salida.tr 38 bytes.

.

the salida.tr and out.tr of my simulation in ubuntu10.04 are 3.8Kb and 5.8Mb respectively.

guo 07-28-2012 08:53 AM

Quote:

Originally Posted by knudfl (Post 4739245)
# 46


./ns-zmac simZMAC.tcl -numsources 3 -zmacMode 1 -interval 10 -sinknode 83 -valuefile salida.tr -maxX 300 -maxY 300 -nn 84 -ack 0 -to 3 -tno 6 -timeSyncErrorFlag 0 -timeSyncErrorValue 100

Scientific Linux SL6, first time with the above command:
( 15 May 2012, see post #46 in the other zmac tagged thread.)
I got out.tr 1.3 MB, salida.tr 111 bytes.

CentOS 6, today : out.tr 6.7 MB, salida.tr 37 bytes.

Ubuntu 10.10, today : out.tr 6.4 MB, salida.tr 38 bytes.

.

Is it on the conditions that agentTrace on ,routerTrace on and mactrace off?could you give me your Email?or you can give me a email ,my address is jiangsu216@gmail.com.


All times are GMT -5. The time now is 01:39 AM.