ns2 code for wireless sensor network

4,140 views
Skip to first unread message

Amita Rani Das

unread,
Mar 31, 2011, 1:55:38 AM3/31/11
to ns-u...@googlegroups.com
I am sending u the codes for floding,In this code there is no carrier sensing stage.That means nodes transmits without knowing the channel is free or not.please define  me the class if the channel is free or busy before sending the packets,please help me ,i am waiting for your reply.
floding

amal banerjee

unread,
Mar 31, 2011, 2:53:03 AM3/31/11
to ns-u...@googlegroups.com
For wireless networks, carrier sensing and related
activities (for example binary exponential backoff)
are done by ns-2's own built-in MAC and PHY layer
classes - you do not need to bother with it at all. You
have to worry about your own protocol that typically
will go into the application layer (please check the 7
layer ISO/OSI network model)
Hope that helps.
By the way, are doing research ? If possible get hold
of OPNET++ - the University version is free (you have
to sign some agreements). The tool is lot, lot better, and
runs fine on platforms as Linux.
The problem with ns-2 is that nobody cares to answer
your questions given that ns-2 is very difficult to set up
and use. The worst part is the TCL/Tk nonsense.

> --
> You received this message because you are subscribed to the Google Groups
> "Network Simulator 2 (NS2)" group.
> To post to this group, send email to ns-u...@googlegroups.com.
> To unsubscribe from this group, send email to
> ns-users+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ns-users?hl=en.
>
>

Arvind Viswanathan

unread,
Jan 31, 2013, 10:00:27 AM1/31/13
to ns-u...@googlegroups.com
Hello, can you send the code to me as well? I am working on simulating wsn using ns2 for priority scheduling. I would be really happy if you could send it.

Alok Chauhan

unread,
Sep 20, 2013, 11:04:37 AM9/20/13
to ns-u...@googlegroups.com



hi... i m new in this group
pls send me  wireless sensor network related implementation code for ns2 .

knudfl

unread,
Sep 20, 2013, 4:24:43 PM9/20/13
to ns-u...@googlegroups.com
Hi.

WSN links → wsn-links.tar.bz2 → → attached.

WSN info http://www.linuxquestions.org/questions/tags/wsn/

-

knudfl

unread,
Sep 20, 2013, 4:26:51 PM9/20/13
to ns-u...@googlegroups.com
Sorry ... forgot the attachment ..

-

On Friday, September 20, 2013 5:04:37 PM UTC+2, Alok Chauhan wrote:
wsn-links.tar.bz2

knudfl

unread,
Sep 20, 2013, 4:27:01 PM9/20/13
to ns-u...@googlegroups.com

Arvinda Kushwaha

unread,
Jan 28, 2014, 5:20:34 AM1/28/14
to ns-u...@googlegroups.com
hi
can you guide me how to start on simulator to create a snsor node .I am very new for simulator .

Arvinda Kushwaha

unread,
Jan 28, 2014, 5:22:22 AM1/28/14
to ns-u...@googlegroups.com
hi
    Can you guide me in creating and sensor node.

sanjeev prasad

unread,
Jan 28, 2014, 5:51:02 AM1/28/14
to ns-u...@googlegroups.com, arvin...@gmail.com

Sir
Kaise ho

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

vsid...@gmail.com

unread,
May 1, 2014, 12:28:58 PM5/1/14
to ns-u...@googlegroups.com

vsid...@gmail.com

unread,
May 1, 2014, 12:32:08 PM5/1/14
to ns-u...@googlegroups.com
helo sir,i am working on colne detection using RED protocole,plz snd me code to create wsn network,having malcious node..



On Thursday, March 31, 2011 11:25:38 AM UTC+5:30, Amita Rani Das wrote:

Mercy

unread,
May 16, 2014, 6:08:16 AM5/16/14
to ns-u...@googlegroups.com
Hi there,

I'm new to NS2.Can you please send me codes for WSN congestion detection using RED.I will be waiting for your reply.thanks.

Nasrin Farzana

unread,
Aug 31, 2014, 2:32:52 AM8/31/14
to ns-u...@googlegroups.com
can u please send coding for wireless sensor node creation and how will i store matrix value in sensor nodes

Amjed Assad

unread,
Nov 25, 2015, 7:13:06 PM11/25/15
to Network Simulator 2 (NS2), m.far...@gmail.com
i need source code of wsn in ns2 plese help me i am new in ns2 and how configure the algorithm for congestion control in wsn

Abdel Rahman Miky

unread,
Jan 10, 2016, 3:43:23 AM1/10/16
to Network Simulator 2 (NS2), m.far...@gmail.com
Dear, Amjed

did you received any codes for running programs? if send to me please  

venkat raja tirukovela

unread,
Feb 2, 2016, 9:54:29 AM2/2/16
to Network Simulator 2 (NS2)
Hello im doing project on wsn about sending compressed data through wsn. So im using ns2 simulator for my project .can u please guide me how to do my project 

venkat raja tirukovela

unread,
Feb 8, 2016, 9:26:05 AM2/8/16
to Network Simulator 2 (NS2)
for sending compressed data do we use flooding. 

venkat raja tirukovela

unread,
Feb 8, 2016, 10:23:06 AM2/8/16
to Network Simulator 2 (NS2)
channel is free and please please send me all the codes for compressing data and sending data through wsn

Nischay Hegde

unread,
Feb 9, 2016, 1:51:31 AM2/9/16
to Network Simulator 2 (NS2)
Hi,
I want to know how to detect a moving node through some static nodes using ns2.
Please help me in this regard


On Thursday, March 31, 2011 at 11:25:38 AM UTC+5:30, Amita Rani Das wrote:

vncnt

unread,
Nov 11, 2017, 3:36:01 AM11/11/17
to Network Simulator 2 (NS2)
hi can anyone here has a knowledge on how to code vampire attacks in wsn ? i really need help for this asap 

PRIYANKA BAGLARY

unread,
Dec 19, 2017, 6:31:38 AM12/19/17
to Network Simulator 2 (NS2)
Hello...did you get the codes for vampire attack....can u please share baglaryp...@gmail.com

Will be very thankful....

adahi...@gmail.com

unread,
May 31, 2018, 12:02:03 PM5/31/18
to Network Simulator 2 (NS2)

>please you help me with NS2 code for B-MAC protocol

 

knudfl

unread,
May 31, 2018, 2:35:51 PM5/31/18
to Network Simulator 2 (NS2)
@adahi ,  Hi.

WSN-bMAC: bmac_ns235.patch
bmac-ex-2018-1.tar.gz

Build ... ns-2.35 + bmac
tar xvf ns-allinone-2.35_gcc5.tar.gz
https
://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns
-allinone-2.35/
patch
-p0 < bmac_ns235.patch
./install        // If Ubuntu18: export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns
-2.35/
cp ns ns235
-bmac
sudo cp ns235
-bmac /usr/local/bin/

-------------- Simulation ---------------
ns235-bmac 2-wireless-demo-csci694-bmac.tcl

rbah yahya

unread,
Jun 2, 2018, 7:58:38 PM6/2/18
to ns-u...@googlegroups.com

hi everyone , please I need a program to draw the topology of the wireless sensor network nodes.
thanks



Mailtrack Sender notified by
Mailtrack

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.
Reply all
Reply to author
Forward
0 new messages