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

[ns] Re: statsList and overall Statistics



> could you tell me how do you get all the timer (startTime, serviceTime, 
> distance) for overall Stats in ns documentation comes from log file?
> What is key-value pairs mean ?
> I try to look it up anywhere but i could't find it ..
> I've already read Floyd et.al. but i couldn't see the relation between 
> the timer in repair request with the Overall statistics...

To get statistics for an entire simulation you must parse a srm trace file
using, for example, awk or perl. You can find documentation of srm trace
file format in ns manual. Notice that srm log is DIFFERENT from ns/nam
trace and you must use srm agent's 'log' instproc to enable it. See srm
examples.

A key-value pair is simply a tuple <key, value>. I believe in srm log it's
simply two fields in a string separated by whites (i.e., spaces or tabs).

> One more question..
> i put 2 traffic generator (like the one in srm.tcl) in my srm topology
> while i try to look if the processing time for packet from one node 
> will effect processing time the other node.. 
> It turn out NOT..
> how come?..
> I do not understand it..
> I try to prove the flooding attack on SRM by making the receiver sending a
> bulk of data ..

Processing time? ns does not model the time of data processing due to
cpu/disk/etc. If you want that you should hack srm agent.

- Haobo