[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Monitoring duration of a Tcp Flow
You can define a "done" proc for TCP agents that will be called when there
is no more data to send on any connection. See below...
Agent/TCP instproc done {} {
global ns donecount
$self instvar node_ dst_
set peerid [expr $dst_ >> [Simulator set NodeShift_]]
puts "Node [$node_ id], peer $peerid, all done at [$ns now]"
incr donecount
... whatever else you need
}
George
-George F. Riley ([email protected])
On Thu, 6 Jan 2000, Peter Pieda wrote:
> Hello,
>
> Is it possible to measure the duration of a Tcp Flow?
>
> I can get the Flow start time but I am having difficulty finding when the
> Flow
> ends. I looked at using a Flowmon monitor but it tracks qualities in bytes
> or packets.
>
> I'm working with the PagePool/WebTraf model. I am trying to determine
> the length of each transaction (or sending time for one object) during the
> course
> of a Web session.
>
> Thanks
>
> Peter
> [email protected]
>