LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2017, 09:03 AM   #1
vanet_sim
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Rep: Reputation: Disabled
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.

Thanks in advance.
 
Old 04-21-2017, 09:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,139

Rep: Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855
Quote:
Originally Posted by vanet_sim View Post
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.
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.
 
Old 04-21-2017, 09:34 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Welcome to LQ.

All Vanet INFO http://www.linuxquestions.org/questi...-4175539281/#4 (almost)

There is also http://www.linuxquestions.org/questions/tags/vanet/
VanetMobisim http://www.linuxquestions.org/questi.../vanetmobisim/
Vanet MOVE http://www.linuxquestions.org/questi...gs/vanet-move/


-

Last edited by knudfl; 04-21-2017 at 09:38 AM.
 
Old 04-23-2017, 09:39 AM   #4
vanet_sim
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
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?

Thanks in advance
 
Old 04-23-2017, 09:47 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,139

Rep: Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855
Quote:
Originally Posted by vanet_sim View Post
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?
 
Old 04-23-2017, 10:07 AM   #6
vanet_sim
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you TB0ne for the immediate response.

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.

Thanks for your patience and precious help.
 
Old 04-23-2017, 10:23 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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.


About ns3 : Please ask all ns3 questions here ...
https://groups.google.com/forum/?fro...rum/ns-3-users


-

Last edited by knudfl; 04-23-2017 at 10:29 AM.
 
1 members found this post helpful.
Old 04-23-2017, 11:22 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,139

Rep: Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855
Quote:
Originally Posted by vanet_sim View Post
Thank you TB0ne for the immediate response.

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.
 
Old 05-07-2017, 09:46 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
@vanet_sim : Vanet simulation examples

Vanet requires some kind of "GSR, Geographic Source Routing".
Already present in e.g. OLSR.
Examples, simulation : http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11
→ urban-VANET-scenario-U1.tar.gz, urban-VANET-scenario-U2.tar.gz, urban-VANET-scenario-U3.tar.gz

Running a vanet example with olsr
Code:
ns-olsr urban-VANET-example.tcl 15 100kbps mobmod-urban-malaga-S15.tcl flowmod-urban-malaga-S15.tcl
OLSR : https://groups.google.com/forum/?fro...rs/5fgmU2nfEFs 10Apr2017

A vanet example which runs with a stock 'ns' is "vanetmobisim-rpgm5025a.tcl"
https://drive.google.com/file/d/0B7S...ew?usp=sharing
* http://www.linuxquestions.org/questi...-4175547570/#2


-

Last edited by knudfl; 05-07-2017 at 12:03 PM.
 
Old 05-08-2017, 10:23 AM   #10
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
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

Thanks in advance.
 
Old 05-08-2017, 10:54 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,139

Rep: Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855Reputation: 7855
Quote:
Originally Posted by Ssafae View Post
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.
 
Old 05-08-2017, 03:59 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
"GSR, Geographic Source Routing"

Re #10.

The available code : OLSR.
Building olsr https://groups.google.com/forum/?fro...rs/5fgmU2nfEFs 10Apr2017

OLSR examples : See post #9
http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11
-
-

GPCR, HLAR, GSR, GYTAR, A-STAR, LOUVRE : Nothing to find. No code, AFAIK.


-

Last edited by knudfl; 05-08-2017 at 04:00 PM.
 
Old 05-08-2017, 04:48 PM   #13
Ssafae
LQ Newbie
 
Registered: Apr 2017
Posts: 26

Rep: Reputation: Disabled
Angry @12

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 !

Last edited by Ssafae; 05-08-2017 at 04:51 PM.
 
Old 05-09-2017, 03:49 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
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.)

Other simulators https://www.google.com/webhp?hl=all&...net+simulators

-
 
  


Reply

Tags
ns2, vanet


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
NS2 code to perform Denial of service attack in VANET. DeepaThilak Linux - Newbie 2 07-13-2016 08:39 AM
Can anyone help me in getting ns2 code for broadcasting messages in VANET dalalami21 Linux - Software 2 03-03-2013 10:54 PM
[SOLVED] routing protocols in ns3 shanky Linux - Newbie 3 11-23-2011 12:18 AM
Source code to block Specific Network protocols/ports ygramesh Programming 3 01-17-2007 07:43 PM
what is my ns3 ; ns2 adresses murat1 Linux - Networking 1 04-21-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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