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 02-27-2014, 12:35 AM   #31
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Wink


Kundfi finally after 3 days I am getting output in ns-2.28

Code:
num_nodes is set 5
INITIALIZE THE LIST xListHead
wireless node 0 created ...
X_:150.00135830880001 Y_:150.55588069999999
wireless node 1 created ...
X_:150.05681863999999 Y_:150.08812266999999
wireless node 2 created ...
X_:151.76469359999999 Y_:150.79915550000001
wireless node 3 created ...
X_:151.25184719999999 Y_:150.81647609999999
wireless node 4 created ...
X_:150.9384072 Y_:150.6388651
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
flow 0 has 155383.0204194377 bps
flow 1 has 178659.06307888444 bps
flow 2 has 153833.50654319464 bps
flow 3 has 164968.86779817566 bps
flow 4 has 154617.6097945378 bps
total throughput:807462.06763423025 bps
NS EXITING...
Thanks a lot
 
Old 02-27-2014, 12:37 AM   #32
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Hello kundfi now I want this to do in ns-2.34

Please give me steps to install ns-2.34 with mannasim patch without using sudo su command.

I want to install a different ns-2.34 in a seprate directory e.g. a/ns-allinone-2.34

Please provide steps.

Thanks

Last edited by Aska123; 02-27-2014 at 01:40 AM.
 
Old 02-27-2014, 01:16 AM   #33
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
Hurray got output from ns-2.34 also
I installed it witout using sudo su this time.
also before installing I made changes to tools/loss-monitor.h and .cc files
also made changes to tcl/lib/ns-default.tcl
Then I installed using export cc command.

finally I am able to got this ouput.
Code:
rohini@ubuntu:~/test$ ns234 lossmonitor,tcl
couldn't read file "lossmonitor,tcl": no such file or directory
rohini@ubuntu:~/test$ ns234 lossmonitor.tcl
num_nodes is set 5
INITIALIZE THE LIST xListHead
wireless node 0 created ...
X_:150.00135830880001 Y_:150.55588069999999
wireless node 1 created ...
X_:150.05681863999999 Y_:150.08812266999999
wireless node 2 created ...
X_:151.76469359999999 Y_:150.79915550000001
wireless node 3 created ...
X_:151.25184719999999 Y_:150.81647609999999
wireless node 4 created ...
X_:150.9384072 Y_:150.6388651
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
flow 0 has 154302.89406643479 bps
flow 1 has 169921.65610624279 bps
flow 2 has 162516.73152130321 bps
flow 3 has 160402.79933941475 bps
flow 4 has 154101.1713801203 bps
total throughput:801245.25241351593 bps
NS EXITING...

Thank is a very little word in front of your help and support.

Thanks again
 
Old 02-27-2014, 01:36 AM   #34
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
My steps
a/ns-allinone-2.34
1. tar xvf ns-allinone-2.34.tar.gz
2. cd ns-allinone-2.34/
patch -p1 < ns2.34-mannasim-gcc4.3.patch

now made changes in tools/loss-monitor.h and .cc
made changes in tcl/lib/ns-default.tcl
3. export CC=gcc-4.1 CXX=g++-4.1 && ./install
4. cd ns-2.34/
5. cp ns ns234
6. sudo cp ns234 /usr/local/bin/
 
Old 02-27-2014, 02:40 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 34 .

Don't know if there's a question in post #30.

* You can also use a combined patching, mannasim+throughput-ns234-files.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

$ cd ns-allinone-2.34/
$ tar xvf mannasim+throughput-ns234-files.tar.bz2
$ export CC=gcc41 CXX=g++41 && ./install
... to create a new executable "ns234-mannasim+thrput".
* "ns234-mannasim+thrput" works OK with test.tcl, mannasim-rede-plana.tcl etc.

-
 
1 members found this post helpful.
Old 02-27-2014, 04:19 AM   #36
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Original Poster
Rep: Reputation: Disabled
regarding #30

No I have not changed test.tcl

I have used combined technique to install throughput+mannasim+ns-2.34.
 
  


Reply

Tags
ns2, ns228, throughput-ns2


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
Why directory record length is variable in ext2 filesystem? password636 Programming 7 01-11-2011 07:24 AM
[SOLVED] How to parse files with variable record length btacuso Programming 4 08-11-2010 10:49 AM
Find variable name by variable content using a subshell UltramaticOrange Programming 3 11-17-2008 03:51 PM

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

All times are GMT -5. The time now is 06:59 PM.

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