[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] callback tracing parameters of TCP agent?
hi, folks,
I want to keep track of the maximum cwnd and avg rtt in a period of
a TCP connection. How can I trace every change of them on-fly as
the 'trace-callback' feature on a SimpleLink?
Can we use the Agent::trace() in agent.cc to do this?
For a Link, it has a 'handle' function to deal with enq/deq/drop events,
callback can be actived by these events. But for a parameter of a TCP
agent, its change doesn't generate events.
A easy way to do is write them in a trace file and summary them after the
period end. But it is kind of slow and waste.
any ideas?
Thanks.
yingfei