More and more about NS-2

Accelerate NS-2 scheduler

Download: Scheduler-patch

This is a patch that can speed up the NS-2 scheduler by improving the Calendar Queue data structure in the scheduler. Especially, it can help to speed up many simulations with high speed long distance network. Some simulations that need one day with the original NS2 scheduler can now be finished in an hour.

  1. Copy the patch to ns-allinone-2.28/ns-2.28 (or ns-2.29)
  2. In the directory of ns-allinone-2.28/ns-2.28 (or ns-2.29) , run: make clean
  3. In the directory of ns-allinone-2.28/ns-2.28 (or ns-2.29), run: patch -p1 <>
  4. (Optional) delete the patch file by rm ns-scheduler.patch
  5. recompile the ns2 by make and make install


Many thanks to the author: David X. Wei

2 comments:

Hi,

I am doing my project on WiMAX simulation. I am using ns-2.28 and added the patch files provided in the link "http://www.lrc.ic.unicamp.br/wimax_ns2/". I did the following steps:
1) Copied the files from commomn, mac and tcl folder of wimax module to ns-2.28 commomn, mac and tcl folders respectively.
2) Modified the Makefile.in as follows
- After the sentence mac/mac-802_3.o add:
mac/mac-802_16-base.o mac/mac-802_16-ss.o mac/mac-802_16-bs.o \
mac/mac-802_16-FSM.o mac/mac-802_16-timers.o \
3) Went to the ns-allinone-2.28/ns-2.28 directory and executed "./configure", "make clean" and "make".
4) .o files for all the .cc files were created in mac folder of ns-2.28.
5) Tried executing the wimax example.tcl and got the below error.

"invalid Mac/802_16BS"
Mac/02_16BS set window_ 0.05 line 36 error

How do I correct this?
What work around did you do for it to get corrected?

Regards.

please help me, source tcp-fusion!thank so much

Post a Comment