LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2017, 03:03 PM   #1
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Rep: Reputation: Disabled
How to convert new trace file format to old format (ns2.34)


Hi, greetings everyone.
I've got sample ns2 codes for cognitive radio from http://wpage.unina.it/arafatur.rahman/D2CARP.html. I use ns2.34 in Fedora 20. I've modified it and try to analyse the trace file using tracegraph202. But I got error saying "cannot open the file. new trace file format detected". So, I make line 221 a comment because line 221 is "$ns use-newtrace ". So i rerun the tcl script and got new trace file but the tracegraph still can't analayse it. I've tried running other sample codes with old trace file format and my tracegraph can analyse it. Is there any other way to convert the new trace file format to the old one? I've attached together the modified tcl script with this post. Thank you in advance for your time
Attached Files
File Type: txt ni.txt (27.2 KB, 27 views)

Last edited by cai; 05-28-2017 at 01:27 AM. Reason: Attachment
 
Old 05-27-2017, 03:06 PM   #2
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
This is the tcl script

I'm sorry I didn't know that I can't attach .tcl file here. I've converted it to txt file. Below is my tcl file in txt format. Thank you for your advice. Can anyone help me with my problem?
Attached Files
File Type: txt ni.txt (27.2 KB, 25 views)

Last edited by cai; 05-28-2017 at 01:26 AM. Reason: Attachment
 
Old 05-27-2017, 05:50 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Please edit post #2 to use CODE Tags
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. [code]code text[/code]
.. or use the " # " button in the Advanced Editor : Go Advanced.
.. Replace with your formatted code.
Editing : That's the 'Edit' button in post #2.


And do not quote yourself. Please delete.

-

Last edited by knudfl; 05-27-2017 at 05:57 PM.
 
Old 05-28-2017, 01:30 AM   #4
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thank you

Quote:
Originally Posted by knudfl View Post
Please edit post #2 to use CODE Tags
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. [code]code text[/code]
.. or use the " # " button in the Advanced Editor : Go Advanced.
.. Replace with your formatted code.
Editing : That's the 'Edit' button in post #2.


And do not quote yourself. Please delete.

-
Thank you for your concern and sorry for my carelessness. Can you help me with my problem regarding the trace file format?
 
Old 05-28-2017, 04:18 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
OK, nice hiding to conceal it's about a tcl file.
The suggestion has always been to preserve the .tcl suffix : ni.tcl.txt .
But anyway, the file works. (Your buggy text once in post #2 didn't.)

? Which trace file(s) is to be run with tracegraph202 ?
Code:
$ ns234-D2CARP ni.tcl
... creates three trace files (and a nam trace) :
ns.tr 320MB, primaryUsers.tr 566kB, scenario.tr 59kB
... I doubt that tracegraph202 can chew a 300MB file.

-
 
Old 05-29-2017, 12:17 AM   #6
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
Trace file size smaller than 300MB

Quote:
Originally Posted by knudfl View Post
OK, nice hiding to conceal it's about a tcl file.
The suggestion has always been to preserve the .tcl suffix : ni.tcl.txt .
But anyway, the file works. (Your buggy text once in post #2 didn't.)

? Which trace file(s) is to be run with tracegraph202 ?
Code:
$ ns234-D2CARP ni.tcl
... creates three trace files (and a nam trace) :
ns.tr 320MB, primaryUsers.tr 566kB, scenario.tr 59kB
... I doubt that tracegraph202 can chew a 300MB file.

-
Thank you for your answer. I tried to analyse ns.tr. I've recompile the tcl script and my ns.tr only 144.7 MB. My tracegraph still can't read it. Do you have any other tips ? Thanks
 
Old 05-30-2017, 09:15 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
*

NS2-VisualTraceAnalyzer >>> NS2-VisualTraceAnalyzer-0.2.72.zip >> NSWireless.exe
http://files.downloadnow.com/s/softw...zer-0.2.72.zip

... Is for Windows© only. Issued 2013, so I guess it works better than the old tools.


-
 
  


Reply

Tags
d2carp, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to using NAM Trace format to find PDR, Packet Loss, Timeout, RTT in NS2? krist_chamber Linux - Networking 2 12-02-2015 01:04 PM
trace file format older then 1.0a5 namgraph cannot work giriprasath Ubuntu 2 03-07-2015 01:58 PM
NS2 new trace format RSM_smile Linux - Newbie 0 09-16-2012 08:37 AM
[SOLVED] Simple Linux script to convert datetime format to UTC format shayno90 Linux - Newbie 10 10-09-2009 08:19 AM
How to convert rm format music files to mp3 format me4linux Linux - Software 2 05-15-2007 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration