Source code for various VANET protocols on ns2-ns3
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Source code for various VANET protocols on ns2-ns3
Hello everyone,
I want to evaluate the performance of some routing protocols for VANETs in various scenarios. However, I have trouble finding their source code (for ns2 or ns3).
Some of the protocols I'm looking for are the following: HLAR, BMAR, JBR, EBGR, LOUVRE etc.
Any source for protocols other than those mentioned above would be greatly appreciated as well.
I want to evaluate the performance of some routing protocols for VANETs in various scenarios. However, I have trouble finding their source code (for ns2 or ns3). Some of the protocols I'm looking for are the following: HLAR, BMAR, JBR, EBGR, LOUVRE etc. Any source for protocols other than those mentioned above would be greatly appreciated as well.
We are happy to help with specific questions...but you need to read the "Question Guidelines" and "How to ask a smart question" links in my posting signature. Please don't ask people to look things up for you and give you links, as you are fully capable of finding these on your own. Further, questions such as this have been asked (and answered) MANY times on this very site, which you also found with a web-search. Use the LQ Search to look this up, and you may find links there.
Thank you TB0ne and knudfl for your responses and I'm sorry if my question didn't meet the guidelines.
After searching in the forum and googling around for a while I was able to find code for a couple of protocols.
However, the code for the majority of protocols doesn't seem to be (publicly) available. Does anyone with prior experience know
how I can get the code or if I'll have to write the code for the protocols myself?
Thank you TB0ne and knudfl for your responses and I'm sorry if my question didn't meet the guidelines.
After searching in the forum and googling around for a while I was able to find code for a couple of protocols.
However, the code for the majority of protocols doesn't seem to be (publicly) available. Does anyone with prior experience know
how I can get the code or if I'll have to write the code for the protocols myself?
You were given links in post #3, which contain links to the code. And sorry, but these things are not only publicly available, but found fairly easily. And since this is your homework, why is actually writing your own code a (seemingly) bad thing?
It's not my homework to write code for the protocols my self. I want to locate the code for them.
I am doing something wrong or I haven't understood something correctly.
knudfl posted a link of a thread titled "Implementation of Routing Protocol in vanets"
On the 4th post of that thread he provides 3 links with downloads.
However, I haven't understood how these patch files contain the source code for many protocols.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Re #6.
Quote:
I haven't understood how these patch files contain the source code for .. protocols
Patches are readable text files showing new files and changes for current files.
Please show the names of the files you are not understanding.
Easy to test. Set up some ns2 and patch them with the various protocols.
Example :
/home/[user-name]/a/ns-allinone-2.35/
/home/[user-name]/b/ns-allinone-2.35/
/home/[user-name]/c/ns-allinone-2.35/
/home/[user-name]/d/ns-allinone-2.35/
... I.e. you can have as many ns-allinone-2.xx as you want, installed at the same time.
But : Do never add any *PATH text to .bashrc . Not required.
Keep the executable´s in /usr/local/bin/ , like
/usr/local/bin/{ ns-vanetrbc, ns-name, ns-name2, ns-name3 }, etc. etc.
It's not my homework to write code for the protocols my self. I want to locate the code for them.
Your homework is to understand the objectives of the class. Showing effort and writing things yourself is not a bad thing; you are essentially saying you only want to do the bare minimum, and learn as little as possible. If you want the code, then looking at the links you were given would show you that, as would doing some research on Google.
Quote:
I am doing something wrong or I haven't understood something correctly.
knudfl posted a link of a thread titled "Implementation of Routing Protocol in vanets"
On the 4th post of that thread he provides 3 links with downloads.
However, I haven't understood how these patch files contain the source code for many protocols.
If you don't understand how the patches to NS2 contain source code, there isn't much more we can explain.
Source code of geographic routing protocols in VANET
hello,
I want to evaluate the performance of some routing protocols in VANETs.But i don't found any code or patch for installing them in ns2.35
And i'm looking for some geographic protocols: GPCR,HLAR, GSR, GYTAR,A-STAR, LOUVRE, etc.
PLeeeaaaz help me if you have any idea when i can find patch or code in order to add them in ns2
hello,
I want to evaluate the performance of some routing protocols in VANETs.But i don't found any code or patch for installing them in ns2.35 And i'm looking for some geographic protocols: GPCR,HLAR, GSR, GYTAR,A-STAR, LOUVRE, etc.
PLeeeaaaz help me if you have any idea when i can find patch or code in order to add them in ns2 Thanks in advance.
If you can't find any, you must not have looked at all. This thread, and MANY others on LQ have lots of links to source code, and Google can point you to many others. Please don't ask us to look things up for you.
Thanks knuudfl
But,When I read the articles, I find different comparison of geographic protocols. So,i can't understand from where come the code which they launch their simualtion !
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Re #12.
There may have been some GPCR, HLAR, GSR, GYTAR, A-STAR, LOUVRE in the past.
Some were never published. Some for a short time :
Many students don't know how to make a patch, and uploaded 30.. 100MB → No free storage a few years back.
A few made a cd you could get for a short time.
Some old code in a bad state, probably won't work today.
Most people consider ns2 obsolete, very little official support for some years.
( The ns2 developers now take care of ns3.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.