Package invoking in NS2.34 version
Hi to all,
I need to invoke one package namely "Size aware scheduling" in advanced version of NS2.34. In net they have given steps for installing it in older version NS2.18b. i have attached url for that package download. I followed the same steps as they said in note but couldnt install it NS2.34. URL: http://www.cs.bu.edu/groups/itm/SATS/simulation.html http://www.cs.bu.edu/groups/itm/SATS/ns2-step.html Can anyone help me in this...1st url shows how the package work. second url shows from where the package should be downloaded and how to install it and all. I need help in this.. Please somebody can help me.. |
Quote:
If there are steps that you found, follow them. If you're stuck somewhere, tell us where. |
... A few comments ...
http://www.cs.bu.edu/groups/itm/SATS...arev1.0.tar.gz The Makefile.in is for ns2.18b. All the code is for ns2.18b. Don't expect it to be usable in ns-2.34. Unless you rewrite at least the Makefile.in. Suggest : Install CentOS 3.9 on an old computer. CentOS 3.9 is the only OS, that can build 'ns-allinone-2.18b' ( Except for some very old : Redhat 7.x etc.) ( CentOS 3.9 was supported until October 2010, now it's obsolete.) |
details steps in invoking
Hi,
I downloaded size aware package and I have edited following files as per their instruction classifier-hash.cc/h, classifier-port.cc/h, myred.cc/h, myrio.cc/h, PIred.cc/h,dualPIred.cc/h. # TCP (tcp.cc/tcp.h # Queue Monitor (queue-monitor.cc/h) # TCL scripts (ns-default.tcl, ns-lib.tcl) # Web Traffic Profile (webtraf.cc/h/tcl) and created object files in "makefile.in" till this step all are went fine. after that... 1.in that package there should be a file named dup.conf-size. This is the configuration file for dup operation, a convenient tool created by Haobo Yu. Put it under your home directory and name it as .dup.conf-size (don't forget the dot in front of dup). 2 Change the fields in the configuration file if you put the package under different directories. $SRCDIR is the directory where you put the original ns package, and the first entry in %MYSRCDIR is where you put the source code of the size-aware package. 3. Create a duplicated ns directory as follows: * # /foo/bar/size/bin/dup size size-ns sizeaware 4. Now you should have a directory called size-ns, which looks almost identical to /foo/bar/ns/, but with all related files being updated. 5. Compile this new package and name the executable size-ns. till step 2 i have done correctly after that step 3-5 i couldnt understand what to do.. can any one clearly explain me step 3-5. they ahve given one bin folder also which contain file. what should i do with that file. I AM USING XBUNTU 10.04 version... |
1 Attachment(s)
NS-2.34 ? Doesn't matter if you continue.
Will work with ns-2.1b8 only, it seems. .. |
Hi,
Create a duplicated ns directory as follows: # /foo/bar/size/bin/dup size size-ns sizeaware where should i give this command to create duplicate directory. or should i manually create folder for specifying directory ah? i didnt understand this step... |
The whole idea is, that you make a copy of your ns-2.1b8/
.. and copy the files size-aware/src-sim/* to that new ns-2.1b8/, and compile it with g++-3.2.3 or g++-2.96. ( See post # 5, "copy-files.txt".) The "/foo/bar/size/bin/dup size size-ns sizeaware" thing is just another way of doing the file copying. .. |
thanks
Hi, Thanks...
i have done accordingly and compile that package. but still getting error. the error is NS: [code omitted because of length] : invalid command name "Classifier/Hash/SizeAware 128" while executing "Classifier/Hash/SizeAware set SLR_ 2.0" my classifier-hash.cc file code ... ... static class SizeAwareClassifierClass : public TclClass { public: SizeAwareClassifierClass() : TclClass("Classifier/Hash/SizeAware") {} TclObject* create(int, const char*const*) { return new SizeAwareClassifier(); } } class_hash_sizeaware_classifier; my tcl code... .. .... set cls [new Classifier/Hash/SizeAware] $cls set default_ -1 $cls set flowlen_thr_ 5 $cls set refresh_intv_ 2 $cls set dynamic_update_ 0 set n(0) [node_with_classifier $cls] how should i correct this error.... |
Quote:
You will also have to tell if this is ns-2.34 on Ubuntu 10.04. Or is it ns-2.1b8 ? Which OS ? .. |
I am doing in ns-2.34 on Ubuntu 10.04. for error comes in this version only..
|
Quote:
Did you add anything to ns-2.34 ? The alien ns-2.1b8 files ? (size aware). Quote:
|
Hi, Thanks...
i have done accordingly and compile that package. but still getting error. the error is NS: [code omitted because of length] : invalid command name "Classifier/Hash/SizeAware 128" while executing "Classifier/Hash/SizeAware set SLR_ 2.0" my classifier-hash.cc file code ... ... static class SizeAwareClassifierClass : public TclClass { public: SizeAwareClassifierClass() : TclClass("Classifier/Hash/SizeAware") {} TclObject* create(int, const char*const*) { return new SizeAwareClassifier(); } } class_hash_sizeaware_classifier; my tcl code... .. .... set cls [new Classifier/Hash/SizeAware] $cls set default_ -1 $cls set flowlen_thr_ 5 $cls set refresh_intv_ 2 $cls set dynamic_update_ 0 set n(0) [node_with_classifier $cls] how should i correct this error.... |
from where to download this ns-2.1b8 pls provide me link not able to download....
and pls is thr any modified package for this package for ns2.34 |
Quote:
Kind regards |
I need to invoke one package namely "Size aware scheduling" is thr any advance version of this package for NS2.34.if not can u pls tell me how i make it compatible with ns 2.34 version
|
All times are GMT -5. The time now is 10:05 PM. |