sir please help me in creating cluster in ns2 for wsn

190 views
Skip to first unread message

swagatika...@gmail.com

unread,
Feb 21, 2018, 9:05:05 AM2/21/18
to Network Simulator 2 (NS2)
sir ...for my research work i need he tcl code for cluster formation in ns2 for wsn..
and also how to create heterogenous node where some nodes has higher energy then normal sensor nodes.

knudfl

unread,
Feb 21, 2018, 10:28:21 AM2/21/18
to Network Simulator 2 (NS2)
WSN examples :  wsn-ex-11.17.tar.gz
Clustering examples :  clustering-examples-12.17.tar.gz
WSN clustering examples :   mannasim-examples-01.18.tar.gz
Link, all examples https://drive.google.com/drive/folders/0B7S255p3kFXNSmRYb2lGcDRUdWs?usp=sharing

Mannasim  https://github.com/paultsr/ns-allinone-2.35 → "ns2.35 mannasim patched".

Swagatika Pradhan

unread,
Feb 22, 2018, 12:21:45 AM2/22/18
to ns-u...@googlegroups.com
Thank you very much sir for your help......sir kindly please send me the code to provide different energy to different node...i want to create a heterogenous network of 2 level ie normal n advance nodedfhghfefjfjegf

--
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+unsubscribe@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.

swagatika...@gmail.com

unread,
May 11, 2018, 2:30:00 AM5/11/18
to Network Simulator 2 (NS2)
sir how to provide 30 node with energy E0=10J and 20 nodes with E0(1+a) more energy in a wsn on 60 nodes

Swagatika Pradhan

unread,
May 11, 2018, 2:50:25 AM5/11/18
to ns-u...@googlegroups.com
sir plz help me in doing multi-hop using Dijkstra algorithm in clustering...to send data from distance CH to BS 

--

knudfl

unread,
May 11, 2018, 2:59:42 AM5/11/18
to Network Simulator 2 (NS2)
@Swagatika Pradhan,  Hi.

By default NS2 uses Dijkstra´s shortest path algorithm to compute optimal routes for all pairs of nodes.

Links , etc.  .....
https://books.google.dk/books?id=_VkTzFLnwD4C&pg=PA113&lpg=PA113&dq=ns2+Dijkstra+shortest+path&source=bl&ots=___4oh8xug&sig=0QrrQrCKWnwhyMaNoYb7KqLFTd4&hl=en&sa=X&ei=TuT6VJydAomiygOVrIHQDg&ved=0CDsQ6AEwBA#v=onepage&q=ns2%20Dijkstra%20shortest%20path&f=false

dijkstra.cc : ns-2.xx/routealgo/dijkstra.cc

Google https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=ns2+Dijkstra+shortest+path
. http://www.academia.edu/5662602/Report_on_Djikstra_and_Network_simulator
. http://www.codeproject.com/Articles/19919/Shortest-Path-Problem-Dijkstra-s-Algorithm
. http://www.sourcecodeonline.com/list?q=ns2_code_for_shortest_path_routing

Shortest Path Routing for Sensor Networks :
. http://www.cs.binghamton.edu/~kliu/research/ns2code/#spr




On Friday, May 11, 2018 at 8:50:25 AM UTC+2, Swagatika Pradhan wrote:
sir plz help me in doing multi-hop using Dijkstra algorithm in clustering...to send data from distance CH to BS 
On 11 May 2018 at 12:00, <swagatika...@gmail.com> wrote:
sir how to provide 30 node with energy E0=10J and 20 nodes with E0(1+a) more energy in a wsn on 60 nodes


On Wednesday, 21 February 2018 19:35:05 UTC+5:30, swagatika...@gmail.com wrote:
sir ...for my research work i need he tcl code for cluster formation in ns2 for wsn..
and also how to create heterogenous node where some nodes has higher energy then normal sensor nodes.

--
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.

Swagatika Pradhan

unread,
May 12, 2018, 1:50:32 AM5/12/18
to ns-u...@googlegroups.com
Sir can't able to access the  code....Last site n 1st site is not available...Sir how can I write ns2 code for DEEC protocol

knudfl

unread,
May 12, 2018, 4:15:25 AM5/12/18
to Network Simulator 2 (NS2)
@Swagatika Pradhan.

You are right, the "www.cs.binghamton.edu" is no more available, sorry.

About "code" :  Repeat → By default NS2 uses Dijkstra´s shortest path algorithm to compute optimal routes for all pairs of nodes.
.... ... Which means, the code has always been present in ns2, any version.

Using  "Dijkstra´s shortest path"  is not something you can choose → is already used in all 3000 simulations !
→  https://drive.google.com/drive/folders/0B7S255p3kFXNSmRYb2lGcDRUdWs?usp=sharing

Swagatika Pradhan

unread,
May 12, 2018, 4:19:39 AM5/12/18
to ns-u...@googlegroups.com
Sir it is a part of my project ...I m doing 2 level heterogeneous clustering n multi hop routing to send pkt to Bs...Can u help

Swagatika Pradhan

unread,
May 12, 2018, 8:55:16 AM5/12/18
to ns-u...@googlegroups.com
Sir please help....I can't be able to provide different energy to nodes....Only initial energy is there ....But how to provide some node with more energy
Reply all
Reply to author
Forward
0 new messages