LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-03-2017, 04:20 AM   #1
DsRana
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Rep: Reputation: Disabled
NS2 Code for Clustering technique in VANETs


if anyone have the ns2 coding for cluster formation in VANETs..plz help me!
 
Old 11-03-2017, 07:21 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by DsRana View Post
if anyone have the ns2 coding for cluster formation in VANETs..plz help me!
We will be happy to help you. You first need to read the LQ Rules (pay attention to the part about NOT using text-speak), and the "Question Guidelines". We will assist if you're stuck, but we aren't going to look things up for you, nor write your code for you.

Post what you have done/tried/researched on your own, and we can assist.
 
Old 11-03-2017, 09:37 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@DsRana, welcome to LQ.

Vanet simulation examples, 1. 'Vanet-examples-10.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ Clustering, please see *802.11p* and *Clustering* examples.

2. http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11

Cluster : 'clustering-examples-07.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 11-03-2017 at 09:42 AM.
 
1 members found this post helpful.
Old 11-22-2017, 12:19 AM   #4
DsRana
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@DsRana, welcome to LQ.

Vanet simulation examples, 1. 'Vanet-examples-10.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ Clustering, please see *802.11p* and *Clustering* examples.

2. http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11

Cluster : 'clustering-examples-07.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
thank you sir.. this is really helpful to me..
 
Old 11-22-2017, 12:23 AM   #5
DsRana
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@DsRana, welcome to LQ.

Vanet simulation examples, 1. 'Vanet-examples-10.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ Clustering, please see *802.11p* and *Clustering* examples.

2. http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11

Cluster : 'clustering-examples-07.17.tar.gz'
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
Quote:
Originally Posted by TB0ne View Post
We will be happy to help you. You first need to read the LQ Rules (pay attention to the part about NOT using text-speak), and the "Question Guidelines". We will assist if you're stuck, but we aren't going to look things up for you, nor write your code for you.

Post what you have done/tried/researched on your own, and we can assist.
Sir I am doing the research in clustering technique in vanet..i hv created the algorithm but now i hv to implement it on ns2 or ns3.. but i don't hv any idea.. how to implement..
and my my algorithm is based on mobilty.. and i don't know to find the neighbour and sutaible cluster head ...
 
Old 11-22-2017, 06:14 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5.

ns2 .....
Cluster Head https://groups.google.com/forum/?fro...rs/1aot_dOfAUg
Examples :
1. Clustering-moc_v1.tcl
Code:
$ grep -n clusterhead Clustering-moc_v1.tcl
1735:                set $clusterhead1=max_energy-level.cluster1.node_rep;
1736:                set $clusterhead2=max_energy-level.cluster2.node_rep;
1737:                set $clusterhead3=max_energy-level.cluster3.node_rep;
1757:            select clusterhead1=cluster1.node_rep->max_energy_level;
1765:            select clusterhead2=cluster2.node_rep->max_energy_level;
1773:                            clusterhead();
1779:            select clusterhead3=cluster3.node_rep->max_energy_level;
1786:                            clusterhead();
2. A-kartiksd.tcl
Code:
$ grep -n Head A-kartiksd.tcl
713:    puts "The Cluster Head value is = $ch"
715:    if {$ch == $nc0} {puts "the Cluster Head is Node 0"}
716:    if {$ch == $nc1} {puts "the Cluster Head is Node 1"}
717:    if {$ch == $nc2} {puts "the Cluster Head is Node 2"}
718:    if {$ch == $nc3} {puts "the Cluster Head is Node 3"}
719:    if {$ch == $nc4} {puts "the Cluster Head is Node 4"}
720:    if {$ch == $nc5} {puts "the Cluster Head is Node 5"}
721:    if {$ch == $nc6} {puts "the Cluster Head is Node 6"}
722:    if {$ch == $nc7} {puts "the Cluster Head is Node 7"}
723:    if {$ch == $nc8} {puts "the Cluster Head is Node 8"}
724:    if {$ch == $nc9} {puts "the Cluster Head is Node 9"}
.... Both files are from clustering-examples-07.17.tar.gz
https://drive.google.com/drive/folde...Ws?usp=sharing

----------------

ns3, Forum https://groups.google.com/forum/?fro...rum/ns-3-users

-
 
  


Reply

Tags
ns2, vanet



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 for Energy Based Clustering Routing Protocol in Wireless Sensor Network Sudha Rajaram Programming 6 11-26-2014 04:55 AM
Want to implement Cache Invalidation Technique using ns2.35, like UIR and HCI, research@tu Linux - Wireless Networking 1 03-25-2014 05:13 PM
NS2: BFO technique algorithm required harvi949 Linux - Software 0 07-30-2013 11:45 AM
ns2 source code for clustering in WSN sindhuu Linux - Newbie 1 04-14-2012 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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