?? readme
字號:
REQUIREMENTSThe patching procedure works cleanly with ns-2.26 and later versions. The code should work with other versions as well but you might need topatch the files by hand (not using the patch command).INSTALLATIONDecompress files from the downloaded package:> tar zxf wfq-1.2.3.tar.gzBefore compiling the ns simulator, run the following command in thedirectory where files have been extracted:> ./patch.sh "ns_directory_path"where "ns_directory_path" is ns2 source directory path.Note that the installation process could fail for any reason:another version of the simulator, other patches applied to yourlocal source files, etc. In this case, you could try to install allthe necessary files manually. See the section below that gives instructions on how to do it.After that compile your ns simulator in the usual way:> ./configure> make> make installIf you have already compiled the ns simulator before, then you haveto rerun the ./configure, recompile, and reinstall the ns package.To test the code run the example.tcl scenario.INSTALLATION BY HANDThis type of installation is recommended only for the experienced usersas it assumes that you will modify manually several source files. First, decompress files from the downloaded package:> tar zxf wfq-1.2.3.tar.gzHence, the directory, to which files are extracted, will be referred to asthe 'wfq' directory.Then, go to the directory with the source files of the simulator (it is not the ns-allinone directory) and search for thesubdirectory named 'queue'. Note that in older versions there is no suchdirectory at all, so in this case you have to create it by hand.Copy source files from the 'wfq/src' directory to the 'queue' directory. Go to the directory with the ns simulator and find the file named Makefile.in. Open it with your preferred editor, and find the followinglines of code.OBJ_CC = \ .................................... \ .................................... \ .................................... \You have to modify this piece of code so that it looks likeOBJ_CC = \ queue\wfq.o queue\wfqsamplec.o queue\wfqaggreg.o \ ................................................ \ ................................................ \ ................................................ \Go to the tcl/lib directory where you should find two files namedns-default.tcl and ns-lib.tcl.After that compile your ns simulator in the usual way:> ./configure> make> make installIf you have already compiled the ns simulator before, then you haveto rerun the ./configure, recompile, and reinstall the ns package.HOWTOSee the example.tcl file for an example of how to use the wfq code.BUGSThis code has been used and tested on an i586 linux box for one year.It has a couple of limitations - i.e. error checking is not extensively adoptedand null weights cannot be used. It is very stable anyway. Unfortunately I'm absolutely NOT able to maintain the code so I hope somens maintainer will do the job if the ns community is interested.I will try answer to e-mail from people asking for support but I cannot make any garantees: unfortunately I'm really busy with my job. Paolo Losi p.losi@netline.it3/3/2000Updated code has been used for several months during the research project on the i686 Linux box. It seems that it is quite stable and dynamic change of weights works well.Alexander Sayenko (sayenko@cc.jyu.fi)15/08/2003Later versions of this implementation have been used in various researchprojects that use WFQ as the underlying discipline. There were no crashes,resource allocation seems to be enough accurate.Alexander Sayenko (sayenko@cc.jyu.fi)17/06/2005
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -