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

[ns] Getting statistics from PGM simulations



        Hi to all, I�m looking for multicast protocols implementations for ns2 to simulate them. I�ve succesfully introduced the Ryan�s PGM code contribution in ns2.1b8a and I've simulated the tcl examples (sim1, sim2,sim3,sim4).I've noticed that is used in the scripts the code "print-stats" to obtain statistics from PGM agents.

       However, the results are displayed on the screen and I need this results onto a file and I don�t know how achieve it. When I execute the script appears a lot of information about the simulation in the screen that I would like to print in a file too. Could you help me? Are there some other instructions to make this? I've tried to use the instruction "trace" (that works correctly for SRM and MFTP agents) but it doesn't work with PGM. Should I modify the source code to use the "trace" instruction, and how?

Besides this, the "print-stats" generate the results when the simulation finish (in proc finish called by $ns at <time> finish).

Could I obtain the results in the middle of a simulation?

If you know whatever else thing I should know don't hesitate to contact me
Thanks in advance and best regards.