LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2011, 11:19 AM   #1
Gayathriharini
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Rep: Reputation: 0
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..
 
Old 03-13-2011, 11:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by Gayathriharini View Post
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.
 
Old 03-13-2011, 01:06 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
... 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.)
 
Old 03-14-2011, 12:01 AM   #4
Gayathriharini
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
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...
 
Old 03-14-2011, 07:46 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
NS-2.34 ? Doesn't matter if you continue.

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

..
Attached Files
File Type: txt _copy-files.txt (888 Bytes, 25 views)

Last edited by knudfl; 03-14-2011 at 12:00 PM.
 
Old 03-15-2011, 07:12 AM   #6
Gayathriharini
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
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...
 
Old 03-15-2011, 07:36 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
Old 03-15-2011, 08:52 AM   #8
Gayathriharini
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
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....
 
Old 03-15-2011, 08:59 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ?

..

Last edited by knudfl; 03-15-2011 at 09:15 AM.
 
Old 03-16-2011, 02:51 AM   #10
Gayathriharini
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
I am doing in ns-2.34 on Ubuntu 10.04. for error comes in this version only..
 
Old 03-16-2011, 03:14 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ?
 
Old 04-07-2011, 01:04 PM   #12
rkmjordan
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Unhappy

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....
 
Old 04-07-2011, 01:06 PM   #13
rkmjordan
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
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
 
Old 04-07-2011, 01:11 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by rkmjordan View Post
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
 
Old 04-07-2011, 01:26 PM   #15
rkmjordan
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Unhappy

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

Last edited by rkmjordan; 04-07-2011 at 01:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NS2 installation problem: no rule to make target 'VERSION' , needed by gen/version.c bilabongster Linux - Newbie 23 12-07-2011 11:54 AM
Installing old version of NS2 for ATM Simulation kanirip Linux - Software 26 03-02-2011 11:28 AM
ns2.34 installation in which federo version? sandhya_it17m Linux - Laptop and Netbook 4 01-05-2010 01:19 PM
need the correct installation of ns2.34 fedora version. sandhya_it17m Linux - Laptop and Netbook 1 01-05-2010 01:20 AM
How to install NS2 simulator(version 2.29) in Fedora 7. mrbhush General 1 05-06-2009 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration