LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2014, 08:35 AM   #1
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Rep: Reputation: Disabled
Rumor routing protocol freezes in NS2


hi all
am having a problem with the rumor routing module in NS2
after i successfully installed the ns-allinone-2.34 software on Ubuntu 12.04 LTS the new module that i added succesfully runs and exits unexpectedly. can anyone using a working ns2 try the module on his platform to see wether it is my system or not. i tried all kind of export gcc41 and stuff, change the computer but still the same. i am clueless.
any help would be appreciated though.

PS: the module was working before and stopped working sometimes ago -
Attached Files
File Type: txt rumor.tar.gz.txt (111.8 KB, 14 views)
 
Old 02-20-2014, 10:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Quote:
the module was working before and stopped working sometimes ago
Ubuntu 12.04 isn't entirely ns2 friendly.
And you have probably done some package updates since you have built "rumor-ns234".
Updates that may prevent an executable ns working with the OS it was built on.

About "rumor.tar.gz.txt" : At least one edited file is missing :
* ns-2.34/common/packet.h, etc. etc.? ns-2.34/tcl/lib/ns-lib.tcl ?

* Please attach all edited files, not included in "rumor.tar.gz.txt".
Then I will find a more suitable OS ...
and build an executable "ns-rumor" that you can use with Ubuntu 12.04.

Which rumor tcl examples have you found ?

-
 
Old 02-20-2014, 04:13 PM   #3
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Ubuntu 12.04 isn't entirely ns2 friendly.
And you have probably done some package updates since you have built "rumor-ns234".
Updates that may prevent an executable ns working with the OS it was built on.

About "rumor.tar.gz.txt" : At least one edited file is missing :
* ns-2.34/common/packet.h, etc. etc.? ns-2.34/tcl/lib/ns-lib.tcl ?

* Please attach all edited files, not included in "rumor.tar.gz.txt".
Then I will find a more suitable OS ...
and build an executable "ns-rumor" that you can use with Ubuntu 12.04.

Which rumor tcl examples have you found ?

-
hi thanks for the reply, i attached the other files with a tcl script i use,
the makefile is not included, but to add a new module we need to add these lines after this in the makefile.in and re-run configure.

OBJ_CC = \
rumor/rumor.o rumor/rumor_rtable.o rumor/rumor_rqueue.o \

Last edited by r0w225; 02-20-2014 at 04:18 PM. Reason: am currently trying with ns-allinone-2.35 at home, with gcc4.4 but still the same .
 
Old 02-20-2014, 04:16 PM   #4
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
sorry i forgot to attached the files . herewidth
thanks
Attached Files
File Type: txt other_files.tar.gz.txt (28.1 KB, 12 views)
 
Old 02-21-2014, 01:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 3 : ns-2.35 would only make things worse. Besides that :
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.
But do not add any *PATH text to .bashrc! Never required when it's your computer.

# 3 : Ref. ""rumor/rumor.o rumor/rumor_rtable.o rumor/rumor_rqueue.o \"".
Well, I added the objects to Makefile.in yesterday, at end of section "OBJ_CC" :
Code:
330   apps/pbc.o \
331   rumor/rumor.o rumor/rumor_logs.o rumor/rumor_rqueue.o rumor/rumor_rtable.o \
332   @V_STLOBJ@
... Then it's :
1) $ cd ns-allinone-2.34/ && tar xvf rumor-ns234-files-2010.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
2) $ export CC=gcc41 CXX=g++41 && ./install
... and a stable "ns-rumor" was created (with Ubuntu 10.10, for best result.)
A Rumor package for all Ubuntu 10*..13*, rumor-ns-2.34-ubuntu10_i386.deb, 4.4 MB:
https://drive.google.com/file/d/0B7S...it?usp=sharing

"rumor-ns-2.34-ubuntu10_i386.deb" provides /usr/local/bin/ns-rumor
.. Works stable, Ubuntu 12.04 : $ ns-rumor <file>.tcl

-

Last edited by knudfl; 02-21-2014 at 01:08 AM.
 
1 members found this post helpful.
Old 02-21-2014, 01:21 AM   #6
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hi knudfl
do you suggest that i use the version of ubuntu 10.10 And
A new module of rumor? Does it mean that the one i sent
to you did not work by your side as well? i'Am trying to make sens of it since from the rumor code i had i created my own module With a localisation scheme that was working and has stopped at the same time with that rumor code. And i am afraid
Downloading another rumor code wont help much as
the important one is the one i created myself: the rumor
just served for performance comparison.

Last edited by r0w225; 02-21-2014 at 01:51 AM. Reason: correcting sms talk ; my bad
 
Old 02-21-2014, 01:33 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 6 .
Quote:
Do you suggest that I use the version of ubuntu 10
Why ? Install the rumor package.deb with your `Package Installer', and you are going.
Ubuntu 10.10 is old and unsupported, but makes god ns2 results: 2.26 ..2.34 .


Quote:
Doea it mean that the one i sent
u did not work by ur side as well?
Please do not use text speak ..
http://linuxsilo.net/docs/smart-questions_en.html
""Write in clear, grammatical, correctly-spelled language"".

The code works OK, as you can try with $ ns-rumor wrls-rumor-a30node.tcl
.. Which also means that the 'ns' you originally created was OK,
until you updated Ubuntu 12.04 and got new system libraries.

-
 
Old 02-21-2014, 01:49 AM   #8
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
Please do not use text speak ..
sorry for that i was writting from my smartphone reason why.

then how can i avoid to update the version that i have, i mean even if i reinstall ubuntu 12.04 lTS from scratch i still need to do "sudo apt-get install update" to get the update and the other procedures that install the libraries, and i got stuck the same way as i dont know which update is creating this ! do you know how i can bypass this? by only installing the required system libraries?
 
Old 02-21-2014, 02:07 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 8.

$ sudo apt-get update
.. will not update packages.
Will only refresh the package list : "Available packages".

Upgrading packages : No reason to avoid that.
Package updates are done to keep the OS safe.

About ns2 builds :
No need to do that, as most protocols are available as packages.deb .
If you want to edit ns2 c++ code and build the stuff yourself,
the old unsupported Ubuntu 10.10 is usable.
But : Ubuntu 10.10 is not recommended to be used as your main OS !

-
 
1 members found this post helpful.
Old 02-21-2014, 02:16 AM   #10
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
Okay!
thanks for the support, i will try all that and give the feedback when i'am done.

one more thing please! can these command be left over as well?
1) $ sudo apt-get dist-upgrade*
2) $ sudo apt-get install build-essential autoconf automake libxmu-dev
 
Old 02-21-2014, 02:40 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 10 .

The package update command is : $ sudo apt-get upgrade

The ns2 prerequisites are :
$ sudo apt-get install g++ autoconf automake make patch libtool libxmu-dev xgraph

'build-essential' will install dpkg-dev, which is only required for building .deb packages.
https://packages.debian.org/squeeze/build-essential
Quote : "If you do not plan to build Debian packages, you don't need this package."

-
 
1 members found this post helpful.
Old 02-21-2014, 03:05 AM   #12
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
i just installed the "rumor-ns-2.34-ubuntu10_i386.deb " that you created. when i run it am having the same issue, from the NAM and the TRACE file there is no exchange of packet.
initially from the NAM you could see the cunsumption of energy shown by a change of the color of the sensor nodes. and it seems to run the TCL in half i mean i have 30 nodes and my awk script gives me the energy left in the network at each node and the total, but when i tried it it gave me this:
Quote:
foxywilly@foxywilly-HP-Compaq-dc5800-Small-Form-Factor:~/Desktop$ awk -f energy_sum_add.awk wrls-rumor-a30node.tr
node (0) have 1.000000 energy
node (1) have 1.000000 energy
node (2) have 1.000000 energy
node (3) have 1.000000 energy
node (4) have 1.000000 energy
node (5) have 0.974200 energy
node (6) have 1.000000 energy
node (7) have 1.000000 energy
node (8) have 1.000000 energy
node (9) have 0.969900 energy
node (10) have 1.000000 energy
node (11) have 0.969900 energy
total left energy of 11 nodes network is 11.914000
which is actually wrong i dont know if by your side the nam was showing perfectely, if so then i guess i have to re-start all install including my ubuntu version from scratch and see.
 
Old 02-21-2014, 04:33 AM   #13
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
Quote:
But do not add any *PATH text to .bashrc! Never required when it's your computer.
i successfully installed ns-2.34 as indicated in your post #5 , but in the terminal when i type ns, it is teling me that ns is not installed.
do i have to be in a specific directory for ns to work now? i use to add the path to the bashrc to make my ns2 work.
 
Old 02-21-2014, 04:39 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 13 .

Install ns :

$ cd ns-allinone-2.34/ns-2.34/ && sudo make install
 
1 members found this post helpful.
Old 02-22-2014, 05:32 AM   #15
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
hi
was trying to rebuild my os from scratch and a fresh ns2, but am having this error
Quote:
* Build tcl8.4.18
============================================================
./install: 431: ./install: autoconf: not found
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
is the g++compat41 packet causing this? or i lack some libraries?

====================
My bad have to do sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

Last edited by r0w225; 02-22-2014 at 06:07 AM.
 
  


Reply

Tags
lcsrumor, ns2, rumor


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
APTEEN routing protocol for ns2.34 under CYGWIN reem10 Linux - Software 0 01-15-2014 10:44 PM
NS2: MFR and LAR routing protocol anisabutsi Linux - Software 1 06-04-2013 01:20 PM
GPSR routing protocol on ns2.34 farfattou Programming 4 02-22-2013 03:58 AM
spin routing protocol simulation in ns2 piyar Linux - Software 0 08-19-2011 02:17 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM


All times are GMT -5. The time now is 07:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration