Sunday 2 November 2014

Cons in NS-2 Wireless Trace Format Takes More Space

I tried NS-2 wireless trace format as I needed to test python scripts which does not work on old wireless format. The same tcl file is used to generate new trace. 

When then old format is used, trace file size is 6,113 KB. It becomes 14,801 KB in the case of new trace. It is more than 2 times. It is probably the best to use the old format if the resource is limited. I did not do a proper research as I did was create a tcl file, use both trace files, compare sizes.

When a wireless simulation is run, the trace format of it is set to old wireless format by default. If there is a need to use the new wireless format, it should be specified in the .tcl file. The following code is to use the new trace format in wireless scenarios.

Trick for Installing ns 2.34 in Ubuntu 10.04

Ubuntu 10.04 or Lucid Lynx has newer gcc version which gcc 4.4.3. It is not compatible with otcl. It needs gcc 4.3 to be compiled successfully. So, modifying makefile.in in otcl-1.13 folder solved my problem.
Change the code in Makefile.in
From this
CC = @CC@
to this
CC = gcc-4.3

Hope it helps for otcl problems in installing ns 2.34 on Ubuntu 10.04.

No comments:

Post a Comment