LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-14-2017, 07:26 PM   #1
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
rumor routing implementation


hi friends,when Im executiing this tcl script 1000-wrls-rumor-a30node.tcl to implement rumor protocol i get this output but why udp agent cant find other node


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],

Last edited by dadi1004; 04-14-2017 at 07:27 PM.
 
Old 04-14-2017, 08:00 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Could you show us the script and describe the network?
 
Old 04-14-2017, 08:54 PM   #3
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
ok this is a script
Attached Files
File Type: txt 1000-wrls-rumor-a30node.tcl.txt (6.1 KB, 15 views)

Last edited by dadi1004; 04-15-2017 at 03:56 AM.
 
Old 04-15-2017, 01:50 PM   #4
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
@dadi1004 : Why aren't you posting in the previous ns2 "Rumor thread"

09 Apr http://www.linuxquestions.org/questi...pt-4175603424/
... No reason to start a new thread ...

Missing information : Your OS used for doing $ ns 1000-wrls-rumor-a30node.tcl
... You already was told that the file will work with CentOS 6.9 - x86_64
http://ftp.funet.fi/pub/mirrors/cent...64-LiveDVD.iso


-

Last edited by knudfl; 04-15-2017 at 01:52 PM.
 
1 members found this post helpful.
Old 04-16-2017, 05:01 AM   #5
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@dadi1004 : Why aren't you posting in the previous ns2 "Rumor thread"

09 Apr http://www.linuxquestions.org/questi...pt-4175603424/
... No reason to start a new thread ...

Missing information : Your OS used for doing $ ns 1000-wrls-rumor-a30node.tcl
... You already was told that the file will work with CentOS 6.9 - x86_64
http://ftp.funet.fi/pub/mirrors/cent...64-LiveDVD.iso


-
yes Knudfl im working with CentOs 6.9 but i get thats output

Last edited by dadi1004; 04-16-2017 at 05:18 AM.
 
Old 04-16-2017, 06:20 AM   #6
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
Well, the output remarks ( #1 ) are about nodes 9 an 11.
( Same output with 'wrls-rumor-a30node.tcl ).

? Why ? I don't know. May be you can find a solution.


P.S. : Please do not quote entire posts. A "one word reference" will do.


-
 
Old 04-16-2017, 06:57 AM   #7
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Well, the output remarks ( #1 ) are about nodes 9 an 11.
( Same output with 'wrls-rumor-a30node.tcl ).

? Why ? I don't know. May be you can find a solution.


P.S. : Please do not quote entire posts. A "one word reference" will do.


-


Knudfl i want know if you get the same message with these examples

Last edited by dadi1004; 04-16-2017 at 07:08 AM.
 
Old 04-16-2017, 07:28 AM   #8
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
Re #7. REPEAT : Do not quote entire posts. A "one word reference" will do.
Quote:
i want know if you get the same message with these examples
Which examples ? I already answered for 2 out of 3 examples.

The third : rumor-test3.tcl →
Code:
$ ns235-rumor-64 rumor-test3.tcl
num_nodes is set 540                                           
INITIALIZE THE LIST xListHead                                  
Loading scenario file...                                       
Load complete...                                               
Starting Simulation...                                         
SORTING LISTS ...DONE!                                         
                                                               
-----Parameters----------------------------------------        
num_of_events         = 2                                      
num_of_ants_per_event = 1                                      
num_of_queries        = 2                                      
QUERY_TTL             = 50                                     
ANT_TTL               = 50                                     
--------------------------------------------------------       
NS EXITING...
 
Old 04-16-2017, 11:13 AM   #9
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
The other two examples 1000-wrls-rumor-a30node.tcl and wrls-rumor-a30node.tcl (Knudfl)

Last edited by dadi1004; 04-16-2017 at 12:07 PM.
 
Old 04-16-2017, 12:54 PM   #10
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
Re #8.

1000-wrls-rumor-a30node.tcl and wrls-rumor-a30node.tcl have identical output here.
Like yours. Fix nodes 9 and 11 if you want a different text.
 
Old 04-16-2017, 03:32 PM   #11
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
its possible i attache Agent/Rumor instead Agent/Udp
and how can i fix the nodes
 
Old 04-16-2017, 04:45 PM   #12
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
Re #11.

Sorry, I am not a coder.
I can sometimes edit small errors in a (tcl) file.
Rewriting a file : It's pure luck if I succeed.

ns2 Tcl code : You can show your file here https://stackoverflow.com/questions/tagged/ns2
... And ask your question. Marking the post as ns2 → → [Tag:ns2]
( See the other posts, the Tag is below the posts.)


-
 
  


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
HELP ERROR while implementing Rumor Routing in NS2.35 SalahEDTEBIB Linux - Software 11 05-13-2017 11:10 AM
Implementation of Routing Protocol in vanets pratikkorkankar Linux - Newbie 3 04-11-2015 05:05 AM
Implementation a new routing metric with ns2 naima2 Linux - Wireless Networking 8 04-19-2014 02:57 PM
Rumor routing protocol freezes in NS2 r0w225 Linux - Newbie 20 03-02-2014 02:28 AM
Routing implementation in the kernel sidra Programming 0 04-21-2005 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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