[ns] trace file implementation

Martina Umlauft martina.umlauft at vienna.at
Thu Jul 14 01:08:42 PDT 2005


Hi!

> I am new to NS2. My problem is that I want NS2 to simulate an
> environment according to a trace file. All the examples and
> information I read show how to make a trace file for implementation by
> another program (NAM) but none for vice versa.

This is possible, I used it myself. As I am leaving for my holiday
tomorrow I am too busy to describe it in detail BUT: you can find
information on this in the "Ns for Beginners" manual by Altmann and
Jimenez. It is a short section in there somewhere - I know, because that
is where I read about it myself. Plug the simulation script together as
described there, then look at the c++ code of ns/trace/traffictrace.cc to
see what input file format this thing expects. If your trace is in a
different format, either write a converter or change traffictrace.cc to
read your format.

Good luck!

        Martina Umlauft                         martina.umlauft at vienna.at       
-------------------------------------------------------------------------



More information about the Ns-users mailing list