[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ns cwnd_
Nesrine,
cwnd_ is already implemented in ns as a tracedvariable. i.e. you could
trace cwnd_ using something like
$your_tcp_agent trace cwnd_
when you are setting up your_tcp_agent and the "void trace(TracedVar*
v);" function would do the job for you.
Though there are other methods of tracing a variable I find this one
most convenient. You also need to open a file and pass the file handle as a
tclchannel to the agent. You should refer to ns-documentation to understand
how tracedvariables are used in general.
kedar
ps: cwnd_ is a floating point number in "double" format. So tracing it as %d
would give you weird values.
> Hello,
>
> I'm trying to print the value of the cwnd_ dynamically, is there
> a function that does that?
> I used %d and it seems to be a wrong format ?
> Wung told me he used "set cwnd_ " but that doesn't work ?
>
> Thank you.
> --
> Nesrine Chaher
> Dea Networks and Distributed Systems
> MISTRAL - INRIA. 2004, Route des Lucioles FRANCE