[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] problems with ns



hi arijit,

On Thu, 17 May 2001, Arijit Ganguly wrote:

> I am looking for some mechanism of just getting these state
> variables as well in the trace file. Is there any way of having some
> more variables dumped into the trace file, at the time of events like
> packet arrival, departure from the queue?

if you are looking for some time equidistant logging algorithm have a look
at mark greis tutorial (dondt know the chapter sorry).

> Now can this be done simply by using some oTCL utilities, or I have to
> make changes to the C++ code for the Trace class.

that depends on what values are visible to tcl. 

> If this can be done using tcl please tell me how.
> Although the ns manual says that "none of the state variables of RED
> implementation are accessible" on page 73.

if this is true, you have to bind some more variables in the constructor
of the class in c++. that should not be very difficult. did you have a
look at the code in c++ and find the variables you are looking for? if so
this is quite easy to make them visible to tcl.

sorry, i did not work on redqueue yet, so this stuff is purely
theoretically.


hope it helps,

od

-- 
   Oliver Dawid * O.Dawid@gmx.de * http://www.fet.uni-hannover.de/~od/