[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need some suggestions about Ns simulator
> -----
> Source 1 ----- |
> |
> Source 2 ----- |----------------------- Sink
> |
> Source 3 ----- |
> -----|
>
> (FIFO queue)
>
> I just want to collect some statistics such as Packet arrivals and
> Buffer lenght. Unfortunately, I don't know how to start modifying
> this simulator for my purpose. I know that you are very busy and
> have a lot of thing to do but could you give me some suggestion
> about what file I should concern and modify them for my objective.
> And I have to create my own Tcl file or not. Your suggestions is
> very much profitable for me.
Dhanant,
The QueueMonitor object collects some statistics. You can do the
following.
a. Use the $ns monitor-queue <link tracefile etc> command to start
monitoring
your link. This installs a QueueMonitor and attaches the tracefile for
you.
b. Use the start-tracing function in ns-link.tcl to get the
quemon to log stats into the tracefile. (look at the printstats function
in queue-monitor.cc to see if you find these useful.
do look at the example files in tcl/ex, and the files in tcl/lib.
vince