125 views
Skip to first unread message

alehegn minale

unread,
Jul 17, 2019, 2:23:57 AM7/17/19
to ns-u...@googlegroups.com
Dear ns-user 
i need some help is there  any one who has source code for AODV  protocol  for clustering formation or any one who has source code to form clustering in AODV protocol 
little bit help is more appreciation 
thank in advance!!!!!!!!!!!!



Alehegn Minale
alixm...@gmail.com
Ass.Lecture @JIT,JU, JImma, Ethiopia
Mobile +251925178462


"Something is Better than Nothing "

knudfl

unread,
Jul 17, 2019, 6:33:58 AM7/17/19
to Network Simulator 2 (NS2)

alehegn minale

unread,
Jul 17, 2019, 7:07:53 AM7/17/19
to ns-u...@googlegroups.com
thanks a lot for your reply i think i need the code on AODV files doesn't mean tcl file in which file of AODV protocol the clustering code can be written 
please dear share some thing i need write c++ code on aodv.cc or aodv.h file so if u have any information or code on this task please provide ur help.
 thanks a lot
 

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/65f44e07-5ee0-4c7e-8a34-2de0e9ec7897%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

knudfl

unread,
Jul 17, 2019, 8:56:00 AM7/17/19
to Network Simulator 2 (NS2)
"Cluster" is default in ns2, all versions.

"Cluster" in C++ files :
mac/*, mcast/*, pushback/*, rap/*, routealgo/*, routing/*, wpan/*.
.... See the attached `clust-in_ns-2.35.txt´.





On Wednesday, July 17, 2019 at 1:07:53 PM UTC+2, alehegn minale wrote:
thanks a lot for your reply i think i need the code on AODV files doesn't mean tcl file in which file of AODV protocol the clustering code can be written 
please dear share some thing i need write c++ code on aodv.cc or aodv.h file so if u have any information or code on this task please provide ur help.
 thanks a lot
 

On Wed, Jul 17, 2019 at 3:34 AM knudfl <knu...@ofir.dk> wrote:
Hi.

AODV clustering examples :   cluster-AODV-ex.tar.gz




On Wednesday, July 17, 2019 at 8:23:57 AM UTC+2, alehegn minale wrote:
Dear ns-user 
i need some help is there  any one who has source code for AODV  protocol  for clustering formation or any one who has source code to form clustering in AODV protocol 
little bit help is more appreciation 
thank in advance!!!!!!!!!!!!



Alehegn Minale
alixm...@gmail.com
Ass.Lecture @JIT,JU, JImma, Ethiopia
Mobile +251925178462


"Something is Better than Nothing "

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-u...@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/65f44e07-5ee0-4c7e-8a34-2de0e9ec7897%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
clust-in_ns-2.35.txt

semagn shifere

unread,
Jul 18, 2019, 8:48:22 AM7/18/19
to ns-u...@googlegroups.com
i want "sinkhole attack code for wireless sensore network using LEACH protocol". so, i hope that u will provide me whole code and help me.

Atinkut Molla

unread,
Jul 18, 2019, 8:49:45 AM7/18/19
to ns-u...@googlegroups.com
hi guys pls support him.

On Thu, Jul 18, 2019 at 3:48 PM semagn shifere <sema...@gmail.com> wrote:
i want "sinkhole attack code for wireless sensore network using LEACH protocol". so, i hope that u will provide me whole code and help me.

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.

For more options, visit https://groups.google.com/d/optout.


--

Regards

******************************************************

 

     Atinkut Molla

  Msc Student In Computer Network and Communication  

    Kombolcha Institute of Technology (KIOT)

          Wollo University

         Phone +251 9 18 31 58 68 

 

*******************************************************

knudfl

unread,
Jul 18, 2019, 10:10:28 AM7/18/19
to Network Simulator 2 (NS2)
@semagn shifere

Conditions for Leach :   "LEACH requires RCALinkLayer ..." i.e. in the simulation file, like:
            if { $val(leach) == 1 } {
             
set agent [new Agent/RCAgent]
.
.
               
Agent/RCAgent set sport_           $val(port)
               
Agent/RCAgent set dport_           $val(port)
               
Agent/RCAgent set packetMsg_       0
               
Agent/RCAgent set distEst_         0
               
Agent/RCAgent set packetSize_      0
                 
               
RCALinkLayer set delay_            25us
               
RCALinkLayer set bandwidth_        [Phy/WirelessPhy set bandwidth_]
               
RCALinkLayer set off_prune_        0
               
RCALinkLayer set off_CtrMcast_     0
               
RCALinkLayer set macDA_            0
               
RCALinkLayer set debug_            0
See 1. the Mit leach configuration files {rca.tcl, ns-bsapp.tcl, stats.tcl, ns-ranode.tcl, uamps.tcl, ns-mte.tcl etc.}
2. Mannasim examples →  mannasim-examples-01.18.tar.gz
https://drive.google.com/file/d/1Iw_FYntMWh7oy7g7_gbIZ-caPQJBIztR/view?usp=sharing

In my simulation files collection (~3500 files found over the last 10 years) there is one only with "Sinkhole" →
dsr-R-Lcode.tcl  ... see  clustering-examples-07.19.tar.gz
https://drive.google.com/file/d/1W_pQd9-tcedUHAS-xolcCYU8noFmLYEo/view?usp=sharing

"dsr-R-Lcode.tcl" originally had this protocol setting :
set val(rp)             LEACH
.... but all Leach settings (RCA) are missing, and the simulation runs OK with an 'ns' with no Leach patching.

alehegn minale

unread,
Jul 19, 2019, 3:58:35 AM7/19/19
to ns-u...@googlegroups.com
thanks a lot dear for ur help i would ask one question again if have any idea about data dissemination protocols i.e broadcast based(protocols like UMB, ASMB), multicat based (BEAM protocol) and geocasting based(UGAD protocols ). i need to improve BEAM protocol for better utilization of bandwidth during emergence situation but i can't get the source code of this protocol so if u have any idea about this protocol please provide it further information let me attach the paper 

To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.

For more options, visit https://groups.google.com/d/optout.


--




Alehegn Minale
alixm...@gmail.com
Ass.Lecturer @Jimma Institute Technology ,Jimma University , JImma, Ethiopia
Mobile +251925178462


"Something is Better than that of  Nothing "

beam.pdf

Atinkut Molla

unread,
Jul 19, 2019, 4:31:27 AM7/19/19
to ns-u...@googlegroups.com
Thank you!  i want "Gateway discovery  code for MANET  AODV+ routing  protocol". so, i hope that u will provide me whole code and help me.

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.

For more options, visit https://groups.google.com/d/optout.


--

semagn shifere

unread,
Jul 19, 2019, 4:47:39 AM7/19/19
to ns-u...@googlegroups.com
Thanks you for your support. But if you have sinkhole attack in leach source code pleas send to me sir.

alehegn minale

unread,
Jul 31, 2019, 3:04:23 AM7/31/19
to ns-u...@googlegroups.com
dear  knudfl
i need a sample code how to extract the speed, position and direction of  a vehicle by Road side unit in vanet ?

thanks

alehegn minale

unread,
Sep 24, 2019, 10:03:26 AM9/24/19
to ns-u...@googlegroups.com
dear ns2 users
i need to implement RSU in my tcl file as device but  not movable so please any one who have experience  
little help was appreciable 
thank a lot

knudfl

unread,
Sep 24, 2019, 11:57:03 AM9/24/19
to Network Simulator 2 (NS2)
@alehegn minale ,  Hi.

RSU, a Road Side Unit  is simply a static node.
RSU & Nodes are the same things except RSU doesn't move.

Ref.  Google,  ns2 rsu node


--




Alehegn Minale
alixm...@gmail.com
Ass.Lecturer @Jimma Institute Technology ,Jimma University , JImma, Ethiopia
Mobile +251925178462


"Something is Better than that of  Nothing "

alehegn minale

unread,
Sep 25, 2019, 2:14:38 AM9/25/19
to ns-u...@googlegroups.com
thanks a lot dear for ur help
i am just Generate  tcl file from SUMO tools after that i import this file in my ns2 every thing is ok but is that possible to declare RSU as static node in ns2 tcl files

thanks a lot

To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/bb89cb1b-bf71-4eef-9ab4-4197c3ab7f4f%40googlegroups.com.

knudfl

unread,
Sep 25, 2019, 5:45:08 AM9/25/19
to Network Simulator 2 (NS2)
@alehegn minale ,  Hi.

RSU / static node /  a node that doesn't move.

You can use your stream editor to delete lines with "RSU" in the movement file,  say it's node_(2)
$ sed '/node_(2)/d' mobility.tcl > new-file-1
... And repeat the process, if e.g. also node_(0) is to be  not moving :
$ sed '/node_(0)/d' new-file-1 > new-file-2


To unsubscribe from this group and stop receiving emails from it, send an email to ns-u...@googlegroups.com.

alehegn minale

unread,
Sep 25, 2019, 7:08:33 AM9/25/19
to ns-u...@googlegroups.com
thank you  dear knudfl.
of course the command delete the vehicle what i went to RSU but the point is that After deleting the node from tcl file which is extracted from sumo tool how to declare and how to make RSU to send broadcast message to those vehicles in ns2 tcl files . i attached the the tcl file  that was extracted from sumo tools   
and then i included in simple tcl file
like this
source ns2mobility.tcl

To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/730f1e59-89c3-4d0a-b854-62fe9e3bcef9%40googlegroups.com.
ns2mobility.tcl

knudfl

unread,
Sep 25, 2019, 10:05:10 AM9/25/19
to Network Simulator 2 (NS2)
Who is sending to who is usually defined in the traffic file.
Or defined internally in the simulation.tcl,  i.e. the cbr, tcp, udp settings.

Example, basic traffic files, see
ns-2.35/tcl/mobility/scene/{cbr-10-1-10-20, cbr-3-test, cbr-50-10-4-512, cbr-50-20-4-512}

Your movement file, ns2mobility.tcl :
1.  Obviously nodes 150, 151 etc. are not moving.  All "0-149" are moving ?
2.  Not sure you can use negative destinations with ns2. ( setdest 16.45 -8.25 0.00 )

Reply all
Reply to author
Forward
0 new messages