Sunday, December 27, 2009

NS2 trace file format

I was recently working on my NS2 simulation project. When I first wrote the sim script, I needed to visualize it using NAM (the network animator, see http://www.isi.edu/nsnam/nam/). Now I need to measure throughput and packet latency. So I found this website http://hpds.ee.ncku.edu.tw/~smallko/ns2/tool_en.htm with an example script to do just that. But when testing it after a few modifications I realized that it expects a different NS2 trace file format than the one my scripts have. What the hell?

A little bit more reading led to me to realize that a parameter I set in order to use my tracefiles with NAM changes the trace format. The nam trace format is described in http://www.cubinlab.ee.unimelb.edu.au/~jrid/Docs/Manuel-NS2/node506.html


No comments: