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 04-06-2017, 08:31 AM   #1
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Rep: Reputation: Disabled
Question HELP ERROR while implementing Rumor Routing in NS2.35


please can some one help me
i got this error but i dont know how to solve it
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}"
(file "/home/etmos/ns-allinone-2.35/ns-2.35/wrls-rumor-a30node.tcl" line 64)
 
Old 04-06-2017, 09:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,944

Rep: Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027
Quote:
Originally Posted by SalahEDTEBIB View Post
please can some one help me
i got this error but i dont know how to solve it
Code:
  (_o14 cmd line 1)
    invoked from within
"_o14 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
		set node_($i) [$ns node]	
	}"
    (file "/home/etmos/ns-allinone-2.35/ns-2.35/wrls-rumor-a30node.tcl" line 64)
Read the LQ Rules and Question Guidelines; use CODE tags when posting code, and unless you provide details, there isn't any way for anyone here to be able to help you. You've told us nothing about the version/distro of Linux, where you got the script, what you did to install it, how you modified it, etc. The only answer we can give you based on what you posted is "There's a problem in your script on line 64. Fix it".
 
Old 04-06-2017, 09:43 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
@SalahEDTEBIB : Welcome to LQ.

Your errors :
That's the exact output you get when using an executable 'ns' with no "rumor" added.

HOWTO add rumor to ns-2.34 :
Code:
tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/
patch -p0 < rumor_ns234-gcc5.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install (The Ubuntu g++-5, g++-6 may not work)
cd ns-2.34/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
cp ns ns234-rumor
sudo cp ns234-rumor /usr/local/bin/
Simulation : ns234-rumor wrls-rumor-a30node.tcl


-
 
Old 04-06-2017, 10:16 AM   #4
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Read the LQ Rules and Question Guidelines; use CODE tags when posting code, and unless you provide details, there isn't any way for anyone here to be able to help you. You've told us nothing about the version/distro of Linux, where you got the script, what you did to install it, how you modified it, etc. The only answer we can give you based on what you posted is "There's a problem in your script on line 64. Fix it".
its the fist time i use this forum i dont know the rules and
i use ubuntu 16.04
i got the script from https://drive.google.com/file/d/0B7S...ew?usp=sharing
and im triying to add it into ns 2.35 when i execute the wrls-rumor-a30node.tcl it show that error
 
Old 04-06-2017, 10:17 AM   #5
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@SalahEDTEBIB : Welcome to LQ.

Your errors :
That's the exact output you get when using an executable 'ns' with no "rumor" added.

HOWTO add rumor to ns-2.34 :
Code:
tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/
patch -p0 < rumor_ns234-gcc5.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install (The Ubuntu g++-5, g++-6 may not work)
cd ns-2.34/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
cp ns ns234-rumor
sudo cp ns234-rumor /usr/local/bin/
Simulation : ns234-rumor wrls-rumor-a30node.tcl


-
thank you very much ill try it
 
Old 04-06-2017, 10:27 AM   #6
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by knudfl View Post
@SalahEDTEBIB : Welcome to LQ.

Your errors :
That's the exact output you get when using an executable 'ns' with no "rumor" added.

HOWTO add rumor to ns-2.34 :
Code:
tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/
patch -p0 < rumor_ns234-gcc5.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install (The Ubuntu g++-5, g++-6 may not work)
cd ns-2.34/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
cp ns ns234-rumor
sudo cp ns234-rumor /usr/local/bin/
Simulation : ns234-rumor wrls-rumor-a30node.tcl


-
it shows File to patch:
what file i select
 
Old 04-06-2017, 10:52 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Re #6.

File to patch : ns-allinone-2.34/rumor_ns234-gcc5.patch
I.e. a copy of 'rumor_ns234-gcc5.patch' must be present inside ns-allinone-2.34/


And now ns-2.35 ... a patch for ns-2.35 was created ...
Code:
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < rumor_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install          (The Ubuntu g++-5, g++-6 may not work)
cd ns-2.35/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
cp ns ns235-rumor
sudo cp ns235-rumor /usr/local/bin/
Simulation : ns235-rumor rumor-test3.tcl
... The examples : rumor-examples-04.2017.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
1 members found this post helpful.
Old 04-06-2017, 12:13 PM   #8
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thumbs up thanks

Quote:
Originally Posted by knudfl View Post
Re #6.

File to patch : ns-allinone-2.34/rumor_ns234-gcc5.patch
I.e. a copy of 'rumor_ns234-gcc5.patch' must be present inside ns-allinone-2.34/


And now ns-2.35 ... a patch for ns-2.35 was created ...
Code:
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < rumor_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install          (The Ubuntu g++-5, g++-6 may not work)
cd ns-2.35/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/)
cp ns ns235-rumor
sudo cp ns235-rumor /usr/local/bin/
Simulation : ns235-rumor rumor-test3.tcl
... The examples : rumor-examples-04.2017.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
thank you very much it works Perfectly
 
Old 04-16-2017, 07:33 AM   #9
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
knudfl please when i execute 1000-wrls-rumor-a30node.tcl it shows

INITIALIZE THE LIST xListHead
node(( 9)) send notice to <<0>> in --------------- [sendNotice]
6.50000000::node(( 9)) recv data no route and no notice sending in [rt_resolve],
node(( 5)) send notice to <<0>> in --------------- [sendNotice]
6.50000000::node(( 5)) recv data no route and no notice sending in [rt_resolve],
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
node(( 11)) send notice to <<0>> in --------------- [sendNotice]
14.50000000::node(( 11)) recv data no route and no notice sending in [rt_resolve],
 
Old 04-16-2017, 08:17 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Re #9.

Please read my answers in the other RUMOR thread :
http://www.linuxquestions.org/questi...on-4175603862/
→ → posts #8, #6, #1.


-
 
Old 05-13-2017, 10:55 AM   #11
SalahEDTEBIB
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #9.

Please read my answers in the other RUMOR thread :
http://www.linuxquestions.org/questi...on-4175603862/
→ → posts #8, #6, #1.


-
please Mr knudfl do u have any documentation on the file rumor.cc because i didn't understand the classes
thank you
 
Old 05-13-2017, 11:10 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Re #11.

Rumor documentation ...
. http://web.cs.du.edu/~hwu/rumorRouting/rumor.html
. http://web.cs.du.edu/~hwu/rumorRouti...r_routing.html
More? https://www.google.com/webhp?hl=all&...en&q=ns2+rumor
 
  


Reply

Tags
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
Unable to open GPSR routing protocol patch in NS2.34. Its giving error. please help. shilpy Linux - Software 3 10-27-2015 02:46 AM
error while implementing encryption in ns2 vartika.shah Linux - Wireless Networking 2 06-28-2014 01:26 AM
Rumor routing protocol freezes in NS2 r0w225 Linux - Newbie 20 03-02-2014 02:28 AM
error in ns2-while trying to print routing table in aodv indumit18 Linux - Software 1 09-24-2011 04:29 AM

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

All times are GMT -5. The time now is 10:39 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