LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Package invoking in NS2.34 version (https://www.linuxquestions.org/questions/linux-software-2/package-invoking-in-ns2-34-version-868309/)

Gayathriharini 03-13-2011 11:19 AM

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..

TB0ne 03-13-2011 11:57 AM

Quote:

Originally Posted by Gayathriharini (Post 4289179)
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..

How do you expect anyone to help you? You don't provide details. What version/distro of Linux? And all you say is "but couldnt install it". How about providing the error(s) you got, and how you got them?

If there are steps that you found, follow them. If you're stuck somewhere, tell us where.

knudfl 03-13-2011 01:06 PM

... 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.)

Gayathriharini 03-14-2011 12:01 AM

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...

knudfl 03-14-2011 07:46 AM

1 Attachment(s)
NS-2.34 ? Doesn't matter if you continue.

Will work with ns-2.1b8 only, it seems.

..

Gayathriharini 03-15-2011 07:12 AM

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...

knudfl 03-15-2011 07:36 AM

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.

..

Gayathriharini 03-15-2011 08:52 AM

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....

knudfl 03-15-2011 08:59 AM

Quote:

NS:
[code omitted because of length]
Which command are you doing ?


You will also have to tell if this is ns-2.34 on Ubuntu 10.04.

Or is it ns-2.1b8 ? Which OS ?

..

Gayathriharini 03-16-2011 02:51 AM

I am doing in ns-2.34 on Ubuntu 10.04. for error comes in this version only..

knudfl 03-16-2011 03:14 AM

Quote:

.. in ns-2.34 on Ubuntu 10.04
Which command will output the result in post # 8 ?
Did you add anything to ns-2.34 ? The alien ns-2.1b8 files ? (size aware).


Quote:

For error comes in this version only
How many versions of ns-allinone-2.xx have you installed and tested ?

rkmjordan 04-07-2011 01:04 PM

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....

rkmjordan 04-07-2011 01:06 PM

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

repo 04-07-2011 01:11 PM

Quote:

Originally Posted by rkmjordan (Post 4317241)
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

http://www.isi.edu/nsnam/dist/

Kind regards

rkmjordan 04-07-2011 01:26 PM

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.