[ns] RE: ns tracegraph: .tr.ip convertion file
Pedro Estrela
pedro.estrela at inesc.pt
Wed May 12 04:42:46 PDT 2004
Hello,
I've checked that your code, and you're using my proc correctly.
Then I've run your simulation (in my ns-2.26 modified code base), and it
was fine! Probably there is a simple bug that doesn't show up in my 2.26
modified ns.
The simulation runned OK, without any errors, and the .tr.ip was
correctly generated, with this output:
1.0.1. 4:
2.0.0. 3:
1.0.0. 2:
0.1.0. 1:
0.0.0. 0:
4194305 4
8388608 3
4194304 2
2048: 1:
0: 0:
Giving the generated trace (no need to add the "mixed ip" header) + the
.tr.ip conversion file to tracegraph, I'm 100% sure that it will convert
the file correctly to TG format.
----
One tip - use these options in your "trgraph.cfg":
PRECISION=10
SPLIT=2500
REMOVE TEMP FILE=OFF
AUTOMATIC FORMAT DETECTION=ON
MAXIMAL NUMBER OF LINES=1000000
This will maintain the temp file, which is converted to TG format - a
much simpler format to parse by hand than the NS wireless (old & new)
ones. You can use this to check that the IP convertion is done
correctly.
------------------
Regarding your other mail, the normal means for TG convertion is to:
1 - generate the ip file
2 - add to it, mannually, the required string substitutions.
This is a complex and error-prone process. Just for the record it would
be as this:
-1:0 << remove this line!
0.0.0.0 0
0:0 0:0
1.0.1.2 4.2
4194304 2
4194304:0 2:0
4194305 4
4194305:0 4:0
4194305:2 4:2
8388608:0 3:0
As you can see, this is a subset of the output from my proc (considering
string substitutions).
---
Based on my experience on TG IP conversion and from a bug that I've
found in the TG convertion process (that I try to circunvent by
generating the lines in _decreasing_ order - see above), I've contacted
TG author, Jaroslaw Malek, and I've voluntaried to both fix this bug,
and to improve the TG convertion process.
However, I've had no luck, as code isn't open source, and Jaroslaw was
not available to change it/improve/fix it anymore.
If anyone needs further assistance in this complex subject of Mixed
traces convertion to TG format, feel free to email me.
Pedro Estrela
> -----Original Message-----
> From: Octavio Ramirez [mailto:Octavio.Ramirez at prism.uvsq.fr]
> Sent: terça-feira, 11 de Maio de 2004 14:36
> To: pedro.estrela at inesc.pt
> Subject: RE: ns tracegraph: .tr.ip convertion file
>
> Hi, thank you for your reply. I am sorry by my brute questions.
>
> I added your proc in my wireless3.tcl file, I ran this file
> (#ns wireless3.tcl) and I don't have no one information into the file
> wireless.tr.ip
>
> However wireless.tr.ip exists.
>
> I have this message when running wireless3.tcl
>
> creating IP file wireless.tr.ip
> ns: stop: can't read "Node_(4)": no such element in array
> while executing
> "subst $[subst $var]"
> (procedure "_o3" line 5)
> (SplitObject set line 5)
> invoked from within
> "$ns_ set Node_($i)"
> (procedure "dump_.tr.ip" line 14)
> invoked from within
> "dump_.tr.ip wireless"
> (procedure "stop" line 5)
> invoked from within
> "stop"
>
> I called your proc in the line 259 (into the proc stop of
wireless3.tcl)
>
> If you have any idea, I'll be glad of your comments car I need to make
> one presentation with the curves by tomorrow afternoon.
>
> Best Regards
>
> Octavio
>
>
> Le mar 11/05/2004 à 14:28, Pedro Estrela a écrit :
> >
> >
> > Hello,
> > >From your other email, i suspect that you already known that my
code is
> > a TCL function that you must call inside the ns simulation to dump
the
> > ip file.
> >
> > If not, then you can reply again.
> > Pedro Estrela
> >
> >
> > > -----Original Message-----
> > > From: Octavio Ramirez [mailto:Octavio.Ramirez at prism.uvsq.fr]
> > > Sent: terça-feira, 11 de Maio de 2004 10:40
> > > To: pedro.estrela at inesc.pt
> > > Subject: ns tracegraph: .tr.ip convertion file
> > >
> > > Hi,
> > >
> > > I work with ns 2.27 and I installed Tracegraph to plot the curve.
I
> > > analysed the wired-wireless scenario, considering the example file
of
> > > Marc Greis tutorial where a wireless node moves between the HA and
FA
> > > (wireless3.tcl). Thereby I have nodes with Hexadecimal numbers and
IP
> > > address like 1.2.3.0 format.
> > >
> > > My trace file is a mixed ip (wired and wireless nodes).
> > > I used the script file like this:
> > >
> > > [tracegraph]#./trgraph wireless.tr -script samplescript.txt
> > >
> > > (this script 'samplescritp.txt' is into doc of tracegraph)
> > >
> > > and I have this message:
> > >
> > > ERROR: Cannot read the IP file!
> > >
> > > However the IP file exists, besides I put the 'mixed12 ip' header
into
> > > wireless.tr file.
> > >
> > > Now, I trying with your function dumps IP information for
tracegraph
> > and
> > > i have a sintax error
> > >
> > > [root at sandino tracegraph202]# ./dump_.tr.ip wireless
> > > ./dump_.tr.ip: proc: command not found
> > > ./dump_.tr.ip: puts: command not found
> > > ./dump_.tr.ip: line 37: syntax error near unexpected token `i'
> > > ./dump_.tr.ip: line 37: ` for {set i [expr [Node set
nn_] -
> > > 1]} { $i >= 0 } { set i [expr $i - 1]
> > > } {'
> > >
> > > I copied the file just leave it at that.
> > >
> > > Do you have another one script for converting my trace file into
> > > Tracegraph trace file format?
> > >
> > > Waiting your reply, your help is very appreciated.
> > >
> > > Cordially,
> > >
> > > Octavio Ramirez Rojas
> > > Université de Versailles
> > >
> > >
> >
> >
> >
> >
More information about the Ns-users
mailing list