LinuxQuestions.org
Help answer threads with 0 replies.
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 01-03-2011, 01:37 AM   #1
Swathinag
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Smile How to change the algorithm of a node in ns2


Hi guys
I need help in ns2 programming as i am new to it.
The problem is: Imagine there are 3 nodes..A,B and C. Node A wants to send information to Node B but it does so by sending it to Node C first which then sends to B. And similarly Node B sends to A. In this simultaneously C doesnt send to both A and B.

This is the in built algorithm..but i want to change it to:
A and B send their packets to C and C sends both these packets to A and B..by ORing... In the receiver side...node A can receive the wanted packet and also B.
Where do i change the algorithm?? and wat all steps do i need to take to change this?
Please help me..
 
Old 01-04-2011, 09:13 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your question get the exposure it deserves.
 
Old 05-19-2011, 05:24 AM   #3
tse8899
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
Talking

hi Swathinag, did u completed the problem you mention? i face the same problem as well, anybody can help, i am new in ns2 too ^^
 
Old 05-20-2011, 11:22 PM   #4
Swathinag
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
hmm....i dint exactly solve it.. but i got more information on it.... it is Network Coding.. and i got some codes for Network Coding in ns2.. now i'll have to make changes in that.. Wat exactly are you doing in ns2?
 
Old 06-09-2011, 10:36 PM   #5
tse8899
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
hi Swathinag, sorry for late reply. i am doing network coding as well,but i will doing it on wireless network. can you share or teach me how to do that? i need a network coding node so that i can make change the routing protocol of the wireless network.
 
Old 06-16-2011, 11:40 AM   #6
karellen84
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Hi Swathinag,

what patch are you using to implement network coding in ns2?
were you able to install it and compile succesfully?
 
Old 06-17-2011, 09:12 AM   #7
Swathinag
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
hmm...i got an already made Network Coding in ns2.27 from the internet and i compiled it in mine. It had implemented Network Coding Routing protocol. It seems to be working fine...But i need to make more changs in that.
 
Old 06-20-2011, 05:43 AM   #8
karellen84
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
thx, i guess it's the same that I found on internet.
I'm running Ubuntu 8.04 and I had to tweak the installation of ns2.27 following these instructions (see knudfl's post):
https://www.linuxquestions.org/quest...9-10-a-782356/
but when I apply the NC and "make" i get compilation errors on the C++ syntax, so I guess it's a compiler's version issue (in this case its' gcc-3.3)
what compiler and linux distro are you using?

any hint from somebody else?

thanks in advance

Quote:
Originally Posted by Swathinag View Post
hmm...i got an already made Network Coding in ns2.27 from the internet and i compiled it in mine. It had implemented Network Coding Routing protocol. It seems to be working fine...But i need to make more changs in that.
 
Old 08-29-2013, 09:25 AM   #9
electronnne
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by Swathinag View Post
hmm...i got an already made Network Coding in ns2.27 from the internet and i compiled it in mine. It had implemented Network Coding Routing protocol. It seems to be working fine...But i need to make more changs in that.
Can you please provide me with the source code you found about network coding?
I need something to get familiar with network coding.

Thank you in advance

Best regards
 
Old 08-29-2013, 10:51 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,370

Rep: Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596Reputation: 3596
Post #9, @electronnne : Welcome to LQ.

This thing `network coding' : Has it got another name ?
Very few usable results with Google .. ns2 Network Coding Routing protocol ..
https://www.google.com/webhp?hl=all#...uting+protocol
*** And : ns2 is all about network **

Example ?
http://network-simulator-ns-2.7690.n...s2-td3833.html
http://www.mediafire.com/?8k293jrg9h57241
→ aodv10ms.tcl

-
 
Old 08-29-2013, 01:12 PM   #11
electronnne
LQ Newbie
 
Registered: Aug 2013
Posts: 10

Rep: Reputation: Disabled
Dear knudfl,

Thank you for your answer. I have already found these links but did not find exactly what i wanted (there is no combination of packets).
To be clear, I am totally a NEWBIE in ns2 and i have a basic level of c++

This new paradigm called network coding is simply XORing (combining) data (packets) by intermediate nodes (in a network of course) before transmitting them.


Maybe you could guide on how to do it please i am completely lost

Thank you
 
Old 10-04-2016, 05:21 AM   #12
palreg
LQ Newbie
 
Registered: Jul 2016
Posts: 4

Rep: Reputation: Disabled
How to see the changes made in tcl file.....

I am trying to change few lines in cmu-trace.cc. After compiling using the MAKE command, I am not able to see the changes in the trace file. Trying to change the lines in sprintf. Can anyone help me in this regard?
 
  


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
Change Linux scheduling algorithm sandeshgv Linux - Kernel 1 11-16-2010 12:28 PM
How to write a program based on algorithm in ns2 raviteja99 Linux - Wireless Networking 4 09-14-2010 07:33 PM
Attaching an algorithm to tcl script in ns2 raviteja99 Linux - Wireless Networking 2 09-12-2010 07:16 PM
Change Password Hash Algorithm Trano Linux - Security 1 08-23-2005 07:48 AM

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

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