INSTALL.TXT
上传用户:hzie11
上传日期:2013-10-07
资源大小:1487k
文件大小:4k
- Instruction to install the Wimax extension for NS-2
- Content
- I - Disclaimer
- II - Version
- III - Installation using the patch file
- IV - Manual installation
- V - Compilation options
- VI - Running examples
- I- Disclaimer
- This software was developed at the National Institute of Standards and
- Technology by employees of the Federal Government in the course of
- their official duties. Pursuant to title 17 Section 105 of the United
- States Code this software is not subject to copyright protection and
- is in the public domain.
- NIST assumes no responsibility whatsoever for its use by other parties,
- and makes no guarantees, expressed or implied, about its quality,
- reliability, or any other characteristic.
- <BR>
- We would appreciate acknowledgement if the software is used.
- <BR>
- NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND
- DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING
- FROM THE USE OF THIS SOFTWARE.
- II- Version
- This documentation is based on the following versions:
- - pre-release of the wimax model developed by NIST (file patch-wimax-prerelease-092206)
- - ns-2.29
- III- Installation using the patch file
- a- Using the ns-allinone installation
- install the patch by running patch -p0 <patch-wimax-%version% from the ns-allinone-2.29 directory
- b- From the ns-2.29 directory
- step1: install the patch by running patch -p1 <patch-wimax-%version%
- IV- Manual installation
- The source code provided works with some earlier version (ns-2.28 for example). The following steps need to be followed to install the wimax extension:
- step1: add the wimax directory in the ns installation
- step2: add the tcl/wimax directory
- step3: add the tcl/lib/ns-wimax.tcl file
- step4: add the mac/mac-stat.h file
- step5: edit Makefile.in. Add -I ./wimax to the list of directories to include (in the definition of INCLUDE). Add the following files to the OBJ_CC list:
- wimax/ofdmphy.o
- wimax/mac802_16pkt.o
- wimax/serviceflowqos.o
- wimax/serviceflow.o
- wimax/serviceflowhandler.o
- wimax/connection.o
- wimax/connectionmanager.o
- wimax/peernode.o
- wimax/mac802_16.o
- wimax/sduclassifier.o
- wimax/destclassifier.o
- wimax/mac802_16timer.o
- wimax/neighborentry.o
- wimax/neighbordb.o
- wimax/scheduling/wimaxscheduler.o
- wimax/scheduling/bsscheduler.o
- wimax/scheduling/ssscheduler.o
- wimax/scheduling/ulsubframetimer.o
- wimax/scheduling/dlsubframetimer.o
- wimax/scheduling/burst.o
- wimax/scheduling/contentionslot.o
- wimax/scheduling/contentionrequest.o
- wimax/scheduling/contentiontimer.o
- wimax/scheduling/dlburst.o
- wimax/scheduling/ulburst.o
- wimax/scheduling/framemap.o
- wimax/scheduling/phypdu.o
- wimax/scheduling/profile.o
- wimax/scheduling/subframe.o
- wimax/scheduling/scanningstation.o
- wimax/scheduling/wimaxctrlagent.o
- step6: edit the file common/packet.h and add a new packet type PT_WIMAXBS into the packet_t enumeration and "name_[PT_WIMAXBS]="wimaxCtrl";" to the class p_info
- step7: edit the file ns-lib.tcl and add the line "source ns-wimax.tcl"
- step8: edit the file tcl/lib/ns-packet.tcl and add "802_16" to the list defined in the list of packets (look for "foreach prot")
- V- Compilation options
- To debug the wimax code, edit the Makefile and add the -DDEBUG_WIMAX switch.
- VI- Running examples
- There are 3 examples located in the tcl/wimax directory:
- - simple.tcl: example where one or more MNs communicate with a sink node through a BS.
- - l2handover.tcl: a MN is loosing connection with its current BS and scans to find another point of attachment.
- - datarate subdirectory: shows an evaluation of the performance in 802.16 for different modulations. (run sh datarate802.16 to run the scripts or specify the 2 parameters, modulation and cyclic prefix)