Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..
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?
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.
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.
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
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.
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.
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,461
Rep:
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 **
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.