Here Guys this is an sample tcl coding
# Define options
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 50 ;# number of mobilenodes
set val(rp) DSDV ;# routing protocol
set val(x) 1000 ;# X dimension of topography
set val(y) 1000 ;# Y dimension of topography
set val(stop) 150 ;# time of simulation end
set ns [new Simulator]
set tracefd [open simple.tr w]
set namtrace [open simwrls.nam w]
$ns trace-all $tracefd
$ns namtrace-all-wireless $namtrace $val(x) $val(y)
# set up topography object
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
create-god $val(nn)
# configure the nodes
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace ON
for {set i 0} {$i < $val(nn) } { incr i } {
set n($i) [$ns node]
}
# Provide initial location of mobilenodes
$n(0) set X_ 347.0
$n(0) set Y_ 3.0
$n(0) set Z_ 0.0
$n(1) set X_ 345.0
$n(1) set Y_ 36.0
$n(1) set Z_ 0.0
$n(2) set X_ 330.0
$n(2) set Y_ 121.0
$n(2) set Z_ 0.0
$n(3) set X_ 316.0
$n(3) set Y_ 152.0
$n(3) set Z_ 0.0
$n(4) set X_ 246.0
$n(4) set Y_ 90.0
$n(4) set Z_ 0.0
$n(5) set X_ 379.0
$n(5) set Y_ 6.0
$n(5) set Z_ 0.0
# Set a TCP connection between n(1) and n(31)
set tcp [new Agent/TCP/Newreno]
$tcp set class_ 2
set sink [new Agent/TCPSink]
$ns attach-agent $n(1) $tcp
$ns attach-agent $n(31) $sink
$ns connect $tcp $sink
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns at 10.0 "$ftp start"
# Set a TCP connection between n(31) and n(43)
set tcp [new Agent/TCP/Newreno]
$tcp set class_ 2
set sink [new Agent/TCPSink]
$ns attach-agent $n(31) $tcp
$ns attach-agent $n(43) $sink
$ns connect $tcp $sink
#defining heads
$ns at 0.0 "$n(0) label CH"
$ns at 0.0 "$n(1) label Source"
#$ns at 0.0 "$n(2) label N2"
$ns at 10.0 "$n(5) setdest 785.0 228.0 5.0"
$ns at 13.0 "$n(26) setdest 700.0 20.0 5.0"
$ns at 15.0 "$n(14) setdest 115.0 85.0 5.0"
#Color change while moving from one group to another
$ns at 73.0 "$n(2) delete-mark N2"
$ns at 73.0 "$n(2) add-mark N2 pink circle"
$ns at 124.0 "$n(11) delete-mark N11"
$ns at 124.0 "$n(11) add-mark N11 purple circle"
$ns at 103.0 "$n(5) delete-mark N5"
$ns at 103.0 "$n(5) add-mark N5 white circle"
$ns at 87.0 "$n(26) delete-mark N26"
$ns at 87.0 "$n(26) add-mark N26 yellow circle"
$ns at 92.0 "$n(14) delete-mark N14"
$ns at 92.0 "$n(14) add-mark N14 green circle"
# Define node initial position in nam
for {set i 0} {$i < $val(nn)} { incr i } {
# 20 defines the node size for nam
$ns initial_node_pos $n($i) 20
}
# Telling nodes when the simulation ends
for {set i 0} {$i < $val(nn) } { incr i } {
$ns at $val(stop) "$n($i) reset";
}
# ending nam and the simulation
$ns at $val(stop) "$ns nam-end-wireless $val(stop)"
$ns at $val(stop) "stop"
$ns at 150.01 "puts \"end simulation\" ; $ns halt"
proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
exec nam simwrls.nam &
}
$ns run
Subscribe to:
Post Comments (Atom)
HI thanks keep learning any doubts mail me i will help you
ReplyDeletehi can you please help me that how do i add new ftp client and ftp server for my scenario
Deleteplease help me on this
Deletestop: couldn't execute "nam": no such file or directory
while executing
"exec nam simwrls.nam &"
(procedure "stop" line 6)
invoked from within
i am m.tech student. I am doing a project on cluster based routing protocol using ns2. I will be very thankful if u help me. My mail id nitinvk308@gmail.com
Deletehow to patch up olsr routing protocol in ns2?
Deletewhat are the requirements needed for it..
Hi
DeleteI am working on routing issues in VANET. plz can any one help me in telling how to start simulation in NS 2 for simulating routing protocols for VANET.
i need the codings for a simple project.. the project is 4 nodes are connected the node 1 send a msg to node 4 via 3 ... when the link failure between these node the data will send via the node 2-3-4..pls help me....
DeleteHI Jeya
DeleteThanks for using my blog this code is already avaliable in net but issues it simple just in tcp source node name and in sink code destination provide the destination node name assign the data bit higher simple
Hi friends ,
DeletePls give the algorithms to make a cluster in NS2
haii mam how to write code for mobile agent basedtoplogy cotrol algorithm in wsn?
DeleteHI Arathy
DeleteIam sorry couldnt get the question can you please specify clearly , in case if u need to create agent two ways
a) one you can create your own network based upon the network
b) or u can attach the agent while transfering the data using FTP or any protocol
mail me clearly so that i can help Thanks
Hello Sir,
DeleteI want to make a wireless scenario where all the nodes are stationary. How to do it ?
hi prasanna brother ,
ReplyDeletethis is anbu. i am doing my project in cluster based routing protocol .so if u have any code for implementing cluster based routing protocol in ns2 pls mail to yuvapaltak@gmail.com . . it will be very useful for me .......
than u......
thanks a lot..am nithya..doin Mtech proj in vertical handover.if you have code related to base station and access point kindly send me nit141088@gmail.com
ReplyDeletethis is shiny...i didn't understand wht this pgm is doing?
ReplyDeletecan any one explain..i am new to ns2..and also i need simple cluster based program
hai,
ReplyDeletethiz govind. I am implementing Fuzzy logic in Ns2
i didnt understood how i apply fuzzy logic to ns2.???
can help me in this.......
plz mail me....
govindpokuri@gmail.com
Hey prasanna buddy, can u explain the usage of the initial options defined like val(chan), what do they imply and how do the work..?? are they arrays or objects or something else...this is really urgent.. u can mail me on ashutoshk007@gmail.com
ReplyDeleteHey buddy nice code but it gives segmentation error.
ReplyDeletedo you have any code on wireless ad hoc load balancing algos.
me doing project on the same.
if u have the please send me ASAP.
Plese help me out by explaining briefly what is happening in NAM window?
ReplyDeletehi, thank you very much for this example, it helps a lot. I'm trying to simulate a replicated database scenario where each node must be a DBMS. Do yo have any example or link where I can see how to program the logic for the nodes? I understand that I have to use C++ code, am I right?
ReplyDeleteHi i need help building a project on wireless,i already have the code,but may be some thing is wrong will you be able to help me out.Please contact me at jaishan.kashyap@gmail.com
ReplyDeletecan you help me how to implement tcp handshake mechanism in ns2
ReplyDeleteHi, thank you very much! this example makes me understand about simple wireless communication in ns2. Do you know how we can implement node clustering in ns2? I am currently doing a research related to cluster-based routing protocol, and I need a help of how to implement it in ns2.
ReplyDeletemy e-mail is fadillah@kumoh.ac.kr
hi, am doing my project in Ns2.i need a help of how to fix the threshold value for MANET. if anyone knows means mail to my mail...My mail id is shridevakumar@gmail.com
ReplyDeletehi friends anyone doing congestion project in ns2..i need some help if u willing means mail me to denesh002@gmail.com
ReplyDeletehi friends iam doing my P.G project on WSN using ns2 . plz help me to remove this error
ReplyDeleteMissing required flag -x in: W -t 10.0
Missing required flag -y in: W -t 10.0
Parsing error in event.
mam,
Deletecan you say the steps to create wireless sensor node with 802.11 in ns2... plz help me mam..i need it for my P.G. project
hey guies could anyone help me i need cluster based routing program while sensor nodes are static...?
ReplyDeleteplzzz e-mail me araeean@yahoo.ca
hey guys ... i am doing my project based on vanet. I want to do RSA encryption. I am using AODV routing protocol.Can anyone please help me to do that.
ReplyDeletePlease mail to elshuba12@gmail.com
hi friends , I am doing project on WSN using Opnet , anyone can help me ?
ReplyDeletehi friends , please any body can help on Opnet
ReplyDeleteto simulate Wireless sensors netwrok?
friends,
ReplyDeletecan you say the steps to create wireless sensor node with 802.11 in ns2... plz help me..i need it for my P.G. project
sir i want the code for leach mobile protocol .bcoz my finalier project is based on this protocol.my final yeay project is implementing MBC protocol for wireless sensor network.plz can u help me sir.
ReplyDeletemy emailid:d.jothi1991@gmail.com
thanks in advance.
hi mam.. can you say the steps to create wireless sensor node with 802.11 in ns2... plz help me..
Deletepls give guidance for developing clustering algorithm for manets using dominating nodes.....
ReplyDeleteTo sandhyamca.ram@gmail.com
hi, i'm doing my final year B.E project on wireless sensor networks. Can u plz help me by providing ns2 coding to implement wireless sensor node design with low power consumption and with energy efficient MAC protocol??
ReplyDeleteHi prassana...Can u provide me the c++ code for wsn for health caring...doing in ns2...pls help me out...
ReplyDeleteMy mail id is fakru62@gmail.com
ReplyDeletehi prassana, iam learning ns2... i am able to run a wired network in ns2, but iam unable to run a wireless network,and also i dont know how to check the throughput......after installing ns2, does i have to install any other patches? can u pls help me....... and my mail id is rekhar5244@gmail.com
ReplyDeletehi prasanna brother ,
ReplyDeletethis is anupam. i am doing my project on wireless tcp performance .so if u have any code for implementing this in ns2 pls mail to nepal.krazzy@gmail.com . . it will be very useful for me .......
than u......
hi
ReplyDeleteI am a Master student doing the project on media independent handover between wimax, umts and wlan using ns2. i will be very thankful to you if you can provide me the tcl codes using 2 mobile nodes. I am using one code which contains 1 corresponding node, 1 router, 2 base station one for wimax and another for wlan and 2 access points. I want to change this code to multi mobile nodes how will i change please send me the codes.
Please send me to shreyasgawande1356@gmail.com
hii, cud u send me the program for increasing throughput in adhoc network??...plzz...for 10 nodes...send to aneshwer2012@gmail.com..thnks in advance
ReplyDeletehi frndz,
ReplyDeleteiam siva,doing MCA project in NS2.pl send me the code for wireless mesh networks,and same way anonymity,traceability. my id is muthusivabalan@gmail.com.
can anyone send me to id if u have this project,coding or anything itself.pl urgent.
Deletehai
Deleteam babin. am doing my m.tech project in" än unobservable secure on demand routing protocol in manet(USOR)" using ns2. if any one have any material(explanations and codings) regarding this project , please mail me. my email:babin.forever@gmail.com. am new to ns2 and tell me how to proceed this project.
thanks in advance
hi..
ReplyDeletetis s very useful.. i need some help in implementing manets using ns2.. can u help me wit the codes for the same..
thanks in advance....
HI bala,
DeleteSure sorry for delay i can help you can you mail me the exact requirement will look in to it, Thanks
Hi
ReplyDeletethere when i am trying to run this program i am getting error
You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph
my advice use the ubuntu and it will automatically download the latest version of nam
DeleteSiva,
ReplyDeletehi everybody i want ns2 documentation with c++ and TCL.And architecture diagram,dataflow diagram,UML diagram,Usecase diagram,and so on.whatever u have ..pl next week document submission pl send it...my id is muthusivabalan@gmail.com.Thank you every one.
Sorry siva, for delay hope u timed out still need help mail me Thanks
DeleteMy pg project title is "Association control for vehicular wifi access: pursuing efficiency and fairness". Anybody having NS2 coding for this project. Kindly mail it to capatil88@gmail.com
ReplyDeleteHI Chaitanya,
DeleteSorry for delay, for wifi we having patches depends upon the version for eg if you using the ns2.34 we have separate patch for wifi install through patches in ns2 and try the code of your functionality Thanks
hi sir, i found one patch file. but that one is not working. Kindly send link of patch that does handover/handoff between access points(802.11)
DeleteHi I m working my project on VANET. Can i get Vanet example code for ns2. It will be very useful to me. Thanks
ReplyDeleteengr.nadeem.sharif@hotmail.com
Hi prasana,im working on VANET for my phd thesis..clustering in vanet to b specific..could u or anyone here give me sample code for ns2 for that topic..thanx
ReplyDeletesuziiryanti@yahoo.com
HI sorry for late reply if still need help i can do Thanks
Deletehi prasanna,
ReplyDeletei am a research scholar, woriking with MANETs. I am having doubts with how to execute MANET simulations using ns2. help me in this area.
Yes sure i can help
DeleteHi Prasanna,
DeleteI am a research scholar. I am new to NS2, having no idea about how to simulate MANET using NS2. Please help me in this area. My thesis is about comparing 2 algorithms to find shortest path in MANET. Kindly provide me guidance to proceed from the start. Thanking you.
HI Ramya,
Deletesure i can help you can please mail your concept for discussion mailadress is in my blog Thanks
hi prasanna...
ReplyDeleteam working on wsn i need to implement and compare two routin protocols leach and spin am new to ns2.. there are several options for patches lik mannasim or nrl patch and i also came across particular patches for both these protocols for different versions can u guide me which i should choose.. it'l be a great help since am running out of time n i'v not even started the things.. my id s rajshekhar.baraker@gmail.com eagerly waiting for ur reply....
i am doing my final year project in ns2 on routing protocols of wireless sensor network. plz help me how can i learn ns2, i have learnt how to make a 3 node scenario and communication between them. but implementation of protocol is a difficult task for me. any easy website or manuals other than isi.edu marc gareil, i will be thankful. nasirahmad_795@yahoo.com
ReplyDeletehiii..parsanna
ReplyDeleteI am doing my master's project in WSN. it is simulation of routing protocols like Directed diffusion and their analysis. I installed mannasim patch in ns2.29. but seems like it does not working quite well. when i generate tcl script by using scriptgenerator tool .and when i run those by ns terminal it shows errors. plz help me. my id is umeshrawat1987@gmail.com
hii prasanna
ReplyDeleteI want to implement n choose k algorithm in ns2 ,, but I don't know where and how to do this .
Please help me
And mail me at:
piyushraj99@gmail.com
Congratulations for your blog. I have a question,I need to export a SUMO file to ns2, so i used the traceExporter and the that returns 3 files(mobility.tcl, activity.tcl an config.tcl)but I don't know how to load these files to ns2; this is the bug generated in cygwin:
ReplyDelete$ns mobility.tcl
can't read "ns_": no such variable
while executing
"$ns_at 0.0 "$node_(672) setdest 244.36 370.95 0.0""
Aborted
Please help me...thanks
I am facing the problem as of yours. Are you able to find any solution of your problem, if yes please share !!!
DeleteThanxs in advance
hai this is babin. my project title is "An Unobservable Secure On Demand Routing Protocol in MANET " using ns2.if anyone have any material regarding this project please mail me. my email:babin.forever@gmail.com
ReplyDeleteHi, this is anto pravin. my project title is "An Unobservable Secure On Demand Routing Protocol in MANET using ns2. if any material regarding this project please mail me at antovpravin@gmail.com. Thank you.
DeleteHi Prassana
ReplyDeleteI am doing my PhD on routing issues in VANET. Can u or any1 else help me by telling how to simulate routing protocols in NS2? I am new to NS 2.
shilpy15@gmail.com
Hi Shiply,
DeleteYep will help you please say the problem with my knowledge will help you thanks
hi tnx for sample
ReplyDeletecan you give me project about daynamic clustering for WSN?
HI
DeleteSure can help
Thank U................
ReplyDeleteHi bro, i'm doing my project on key compromise in wireless environment. can you please give me some coding ideas to implement that.
ReplyDeleteHello all,
ReplyDeleteIf someone can help me with implementation details of FssAgg schemes for my project it would be really useful for me.
Can you please full form FSSAGG thanks
Deletethanks for this code my friend
ReplyDeleteThanks
DeleteThis comment has been removed by the author.
DeleteHi, this is anto pravin. my project title is "An Unobservable Secure On Demand Routing Protocol in MANET using ns2. if any material regarding this project please mail me at antovpravin@gmail.com. Thank you
ReplyDeletesend me any coding for reduction of power consumption in sensor networks...
ReplyDeleteCan you please bit elaborate asking bandwidth
Deletehi prassana,iam Joyce from Tamil Nadu.ia mdoing M Tech project in ns2.my topic is "energy efficient and hidh accuracy secure data aggregation in wireless sensor network".can you help me for coding.if you know the aggregation tree construction using TAG protocol,can you send the code to mail id:joycejose1990@gmail.com I think i will get a positive reply..
ReplyDeletesir,i am josna jose from coimbatore..now i doing M tech..i am doing project on the topic "recovery based data aggregation in wireless sensor network"..In this,each individual sensor data is recovered from the aggregated result reached at the base station..to do this,they used public key cryptography based on eliptic curve..i am new to the ns2 sir,do u know ns2 support this type of algorithm..can i expect a positive reply soon to mail ID-josnajose1990@gmail.com..then only i can confirm my tool..if yes,can u help me sir ..can i expect that ??
ReplyDeleteHI
Deletehope i replied any results arrived
sir,plz provide me the code for Adjustable range load balancing protocol which cud run on ns2?
ReplyDeleteHI
ReplyDeleteSure apoorva just need some clarification load balancing how much server using or need bandwidth allocation please provide little more details just mail me with your mail address thanks
only one server...my mailing address is -
Deleteapoorva.jnit2008@gmail.com
i need code for 30 targets with 30m of sensing range and 40 sensor nodes for only 1 server using linear energy model...
Deletemailing address is -apoorva.jnit2008@gmail.com
im doing PG.. and my project is "Sleep scheduling in wireless sensor network for critical event monitoring" . Basically i dont knw anything abt NS2.bt my guide compeled me to do in it. Can u plz help me?
ReplyDeleteHi, i m doing project in NS2. i need code for finding neighborhood nodes using the integration of .cc and .tcl file. pls help me.....
ReplyDeleteHi everybody
ReplyDeleteThis is Ashraf. My project title is " channel assignment in wireless mesh network” please can any one help me how to apply channel assignment using NS2. Anybody have any code for channel assignment that can help me in implementing please mail me at ashrafalzubier@gmail.com. . . It will be very useful for me .......
Thank you..
Hi, i m doing project in NS2 and my project title is "Privacy and Integrity Preserving Range Queries in Wireless Sensor Networks". Anybody have code pls mail me at balamuthu42@ymail.com
ReplyDeletehi, am doing project in wireless mesh network please send me code for 1)"Routing in Multi-hop Wireless Mesh Networks with Bandwidth Guarantees" and 2)"Hop-by-Hop Routing in Wireless Mesh Networks with Bandwidth Guarantees", am doing 1 as 1st phase and 2 as second phase. please help me asap. My mail id ebe.joseph@gmail.com
ReplyDeleteThanking you.
Hi, i'm doing project on
ReplyDelete1) "Hash-Based Sequential Aggregate and Forward Secure Signature for Unattended Wireless Sensor Networks". can u send me the code for this and related topics.
2) Also codes self-sustaining Hash based sequential aggregate and forward secure signature(wireless sensor networks). can u pls send me the code for this also
pls mail to vinaykipson@gmail.com
thank u
Hi.. i need a simulator to just run java programs. plz help me.
ReplyDeleteHello prasanna i want a help ..plz sort it out ...as i am doing project on source privacy protection in wireless sensor network..
ReplyDelete1).i want code on phantom routing protocol..
2).code on randomly choosing the neighbour node.
3).and code on making the group of fake nodes which can send the fake masseges..
plzz sir help me out...its very important
i am running all these things in ns2.
my email id is..pmmishraprashant@gmail.com
thank u sir
hi... im learning NS2 in linux... can u help me to generate coding for aodv protocol.
ReplyDeletehi prasanna
ReplyDeletehow are you?? Hope God help u for all of these request, i know that u need lots of time to help all of us, thank u at all...
i need to know how i can implement and compare between clustering algorithms like lowest_id and highest degree clustering algorithms, and how i can implement some new concepts which i think to do...
hatem.master@gmail.com
this is my email, hope i can find any help to do that..
thanks all
regards to all
hatem
Dear all,
ReplyDeleteKindly who can help me for design wireless network in include security in nodes package(security means using stream cipher -plaintext convert to cipher text) using tcl by ns2?
best regards
Hi,
DeleteHave u designed a wireless network implementing encryption in the data being sent. If yes, please mail me atleast a sample code on how to start with it to sweetnivi88@gmail.com.
Thanks :)
Dear Prasanna,
ReplyDeleteI find the code provided by u very useful. And I have some request to make concerning my research. My email addy is adebanjoadekiigbe@gmail.com. I will appreciate if you can contact me despite your tight schedule. My interest is in cluster based fuzzy routing algorithm. I will give details when you get back to me. Thanks.
can you please tell how to add malicious node to this code...thanx in advance
ReplyDeletesir Prasanna,
ReplyDeleteCurrently i am doing some research about "super peer system"
do you have code that relate with my research.?
or may be you can help me with discus about my research..
thanks so much.
HI Rizka,
DeleteThanks for using my blog sure i will help you in the research to my extend knowledge. Please send the details to my mail address which already mentioned in blog Thanks
hi i, mozib khan can u help me that how to compare DSDV and DSR algorithms after executing the TR file here i am tryingto trace Xgraph of both but not able to do trace it so please please help me if possible then mail me on this id as soon as possible mojib4u@live.com
ReplyDeletethank you
Hi prasanna,
ReplyDeletepls give the clustering algorithms in tcl language..
My mail id is gowdhupsg@gmail.com
ReplyDeletehi sir
ReplyDeleteplease, how can I define TCP connection between wifi (802.11) and wimax (802.16) nodes.
I really needed you help, pleasr give me a solution
my email address is zidi.imene@gmail.com
hello everyone,
ReplyDeletei am working on mobile agents in sensor networks.
plz help me out with the simulation of mobile agents in ns2.
my email id : divya_ld@yahoo.co.in
hi sir,
ReplyDeleteI'm Pitchaimtuhu final year Ece student,we do project in ns2 domain.topic Fuzzy Logic Optimized Vector Protocol for Underwater Sensor Network,so ple mail me how to work the ns2 procedure
my mail id:baskar321@gmail.com
hello sir,
ReplyDeletemy name is arvind and i am doing project in ns2. will you plz mail me tcl script to create cluster with a head.My id is arvind.shah19@gmail.com
Hi
ReplyDeleteCan anybody here help me to run an script for MPR selection in OLSR protocol based on the remaining energy and mobility of that node. It is a do or die situation for me. Please help me out.
my id is kotsbtechcdac@gmail.com
hello sir,
ReplyDeletethis is vinothkumar i need the code for node admission using bivariate polinamial threshold secret sharing technique. my mail id is itvinoth057@gmail.com. please help me...
This comment has been removed by a blog administrator.
ReplyDeleteHi Prasanna,
ReplyDeleteI am a final year MS student. My project is " Efficient Cluster Head Selection using Fuzzy Logic in NS2". Kindly tell me how to go about it. How do we apply Fuzzy Logic here? And if possible please mail me the code for Cluster head selection in WSN. My Email ID is kennithbratt@gmail.com
Thanking you in anticipation.
Regards,
Kennith Bratt
helo prasanna i am dng my project in ns2 by comparing two protocols...i want to get the packets lost and received at any moment...is there any formula for it..plz rply to ramyap404@gmail.com
ReplyDeletehello prasanna i am mtec student working in area of MAC protocol in wireless sensor network.i am unaware of coding in ns2 but want to develop protocol in ns2.can u help me out step by step.please help me out my emailId is -Sumi.nagah@gmail.com
ReplyDeletethankyou :)
Hi prasanna,
ReplyDeleteThank for your help in publishing this code.
I am working in the area of detecting intrusion / misbehaviour in wireless mac protocol. Could you please provide me some codes?
Regards.
Bob. email-id: jaob4tunde@hotmail.com
Hi Prasanna,
ReplyDeleteI am a research scholar. I am new to NS2, having no idea about how to simulate MANET using NS2. Please help me in this area. My thesis is about comparing 2 algorithms to find shortest path in MANET. Kindly provide me guidance to proceed from the start. My mail id is aimrase@gmail.com. Thanking you.
which algorithm are u going to simulate
Deletehi Prasanna,
ReplyDeleteI am instructor in AASt,and student in master thesis, i need you help me in NS2, i search on new method to broadcast without infrastructure, Please i need your help very fast, my mail is "eng_nagwas@yahoo.com" Thank You I waiting your reply...
hi prasanna,
ReplyDeleteI am doing my m.sc final year project in adhoc network using ns2 tool.i just want code for forming cluster in weight based distributed algorithm the node should be dynamic. please help me out as soon as you can.
thanks........
my mail id: kchand.vathy9@gmail.com
hi prasana,
ReplyDeleteI'm doing M.Sc(c.sc), currently i'm doing project in adhoc network using ns2 tool. I need your help to complete my project. I need code for cluster formation by connecting neighbor nodes within the transmission range.Reply me as soon as possible....
My mail id: jilakkia@gmail.com.
Thank you.
pls send tcp coding to calculate throughput in wireless network
ReplyDeletesir do u have pls forward to gopinath85131@gmail.com
Deletethis is my mail id
ReplyDeleteravibabu2810@gmail.com
hi prasana,
ReplyDeletei am doing my project in vanet using ns2. i need a help from u. is it possible to send vehicle information (beacon message) from one node to another node in ns2.
my mail id is bmpriya@gmail.com
This comment has been removed by the author.
ReplyDeletehi all,
ReplyDeletei have a project about Wireless mesh network, but i couldn't write code NS2 to config a Mesh network (18 nodes which 12 nodes MAP, 4nodes MP, 2nodes is Client: 1Source, 1 Dest) Who can help me?
thank you very much
hi sir,
ReplyDeletei deadly need ur kind help. My E-mail id is jyotisachan.004@gmail.com Please reply sir.
Dear sir,
ReplyDeleteI need your help..
All i need is a working (802.11) network code in ns2, and if you know a way to use network coding to enhance the throughput (in ns2) please contact me via mimz.sa@gmail.com
Thanks
Sir,
ReplyDeleteI am doing my research work in Underwater Sensor Networks and I am new to ns-2. Will you please help me?
Thanks
Jalaja
dear all, who can help me?please !!!
ReplyDeletei have a project about Wireless mesh network, but i couldn't write code NS2 to config a Mesh network (18 nodes which 12 nodes MAP, 4nodes MP, 2nodes is Client: 1Source, 1 Dest) Who can help me?
thank you very much. I'm really need, now
mail: havannga08dt2@gmail.com
This comment has been removed by the author.
ReplyDeleteHi Prasanna, I am doing research on wireless sensor networks and am trying to analyze the various existing cryptographic algorithms during communication. Could you please send a sample code on how to modify the packet data before being sent from a node. ( sweetnivi88@gmail.com )
ReplyDeleteRegards,
sir i am doing my research on wireless network. i want to create nodes based on 1 hop create a clusters from that cluster we choose a cluster head based on wca algorithm that has different parameters like battery power, stability,node dergree....etc...nd also want to communicate between cluster head of different clusters....pls send me the sample code on my id...(heena.varshney1698@gmail.com)..plss
ReplyDeletehai..
ReplyDeletethanks for posted it.. ^^
i wanna ask,what version of NS2 that i can use to simulate vertical handover between wifi - umts?
is it need EURANE too?
and if i wanna simulate handover UMTS/WCDMA what version of NS2 that i can use? and what else i need to support that NS2?
please anyone can help? cause i really can't the best NS2.. please send message to me ilinakhisan@gmail.com
thank you very much
can any one giving coding for THROUGHPUT, DELAY, RTT, PDR, in ns2 for calculation kindly mail me gopinath85131@gmail.com
ReplyDeleteif u get please forward me too.. awk files of this
Deletesumi.nagah@gmail.com
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am a Master student doing the project on media independent handover between wimax, umts and wlan using ns2. i will be very thankful to you if you can provide me the tcl codes using 2 mobile nodes. I am using one code which contains 1 corresponding node, 1 router, 2 base station one for wimax and another for wlan and 2 access points. I want to change this code to multi mobile nodes how will i change please send me the codes and documents regarding handover....kiran.mtcn.12@acharya.ac.in
ReplyDeletehey prasanna,i am lucky and i need your urgent help in matlab coding on "energy aware node placement in wireless sensor network".please help me otherwise i will not be able to complete my degree on time and my carrier will be spoiled.PLEASE HELP AS SOON AS POSSIBLE.
ReplyDeleteMY ID IS "lakichaudhery@gmail.com".
Hi,
ReplyDeleteThis is Amit. I am implementing Fuzzy logic in Ns2 (swp wsp mira wcs algorithm)
i didnt understood how i apply fuzzy logic to ns2.???
can help me in this.......
plz mail me....
amit290787@gmail.com
Hi,
ReplyDeleteThis is alok.
I am doing my thesis in unified cellular and adhoc network. can you please help me with the code.how to implement in ns2.
please provide any necessary code you know.
email-id- alokmishra188@gmail.com
hi
ReplyDeletei used CYGWIN in windows 7. But NS2 is not working... ./install file missing ...how i solved it
reply me.. cloudbargavi@gmail.com
Hello sir,
ReplyDeleteIam a final year mtech student doing project on "fuzzy based adaptive cross layer routing protocol for manets".Iam very greatful if you can provide me the codes related to my paper and my mail id is indumariamsaju@gmail.com
hai
ReplyDeleteI am a final year M.E student doing project on "Algorithmic verticsl handoff decision and merit network selection across heterogeneous wireless networks" content of my paper is available in "http://www.wseas.org/multimedia/journals/communications/2013/56-135.pdf" plz send the cooresponding codes to my mail id so tthat i could finish my project in time .i am doing my project on ns2. my mail id is naresh.hari180@gmail.com, naresh.hari180@hotmail.com. plz reply me as soon as possible
HI
DeleteSoirry for late reply just confirm still help is needed Thanks
hai
ReplyDeleteI am a final year M.E student doing project on "Algorithmic vertical handoff decision and merit network selection across heterogeneous wireless networks" content of my paper is available in "http://www.wseas.org/multimedia/journals/communications/2013/56-135.pdf" plz send the cooresponding codes to my mail id so that i could finish my project in time .i am doing my project on ns2. my mail id is naresh.hari180@gmail.com, naresh.hari180@hotmail.com plz reply me as soon as possible
hello sir, pls pls help me i need the code for the implementation of AODV routing protocol in VANAET using NS2... pls help me if u can... my email id is gagandeep.engineer@gmail.com... this is for my thesis work.. i hav left with only six month... so pls help me else my degree will not be completed and it will be stoped..
ReplyDeletePls help me... if you have any knowledge about it pls do mail me.. thx..
ReplyDeleteHi Sir, I am doing project in cognitive radio routing. can you help to implement this project?. my mail id tkmmelvin@gmail.com
ReplyDeleteHi
DeleteSure will help you as replied in email please send the base paper to me so that we can discuss and help you in the code Thanks
Hello sir,I am doing project in cognitive radio ,title of project is "United nodes: cluster based routing protocol for CRN"..Sir can you help to implement the code..thank you..
ReplyDeleteHI
ReplyDeleteSure neha with pleasure i will help you to implement can you mail the level of understanding in tcl, you try yourself and any error ping me here will solve it and give no issue or mail me any doubt will clear you Thanks
Hi sir, m doing project in enegy efficient wireless sensor network, using tool as ns-2 ,
ReplyDeletekindly help me, and please provides codes , my email id: yamin.saniya@gmail.com
HI Yamin
DeleteI mailed you can you just confirm which line you struct so that i can help in that Thanks
i'm doing M.E in WSN...did LEACH PROTOCOL supports in WSN...can any one clarify my doubts...
ReplyDeleteHi Ramya
DeleteSure will help you in lEACH can you mail me clickprasan@gmail.com the base concept so that i can help you in that contact me any doubts will clarify you Thanks
i'm doing M.E in MANET , any help do find out intruder in wireless network
ReplyDeletethis is my E-mailid
sakthiperumalk@gmail.com
HI
DeleteSakthi mailed you need some details so that i can help you in the attack we can use IDM concept
hi.. can anybody send me code for simulating OLSR in Ns2 based on Fuzzy Logic that can output OLSR table
ReplyDeleteHI Masood,
DeleteSure i will help you can you send the base paper to my mail address so that will help you in it Thanks
hi.. if possible how to increase cca value in phy layer of wifi networks...
ReplyDeleteHI
DeleteWe can increase in many methods in wifi first find the max range and bandwidth , analysis the previous outcome we have separate alg please mail me your paper so that can analysis Thanks
Hi...
ReplyDeleteWe are working on multicast in mobile ad hoc networks.. We r basically beginners.. Can u pls explain us what this program does?
HI
DeleteSure ns2 will just generate the packets so that you can anaysis the time bandwidth distance jjitter various parameters which really help full please mail me so that we explain the basics Thanks
hi please help me
ReplyDeletemy project is an one AP and mobile nodes on its rang AP poll nodes acc to priority of its traffic i want to make AP to send priority beacon in first of interval node with prio 1 respond second node prio to and so on how can i do that where i can start
shamsan622@hotmail.com
hi ,
ReplyDeletemy project is to detect node replication attacks in mobile wsn
where a node need to generate a key share with its neighbour when it encounters it .how to make a node generate key on its own?help me plz
setting threshold high and threshold low for simulating a network of 100 nodes seems very difficult to crack!!!!!!can anyone please give an idea!!!!even the author has mentioned it is very critical!!!!!
ReplyDeletesorry to mention this is based on a cross-layer concept for MAC protocol(MAC + routing) in wireless sensor networks!!
ReplyDeleteplease help how to set two threshold values (high and low) for setting the two level cluster heads in a wireless sensor network!the upper threshold for first level CH.If BS-messages are recieved by nodes at higher RSSI than threshold high then they become 1st level CH,which inturn sends CH-msgs and nodes with RSSI more than threshold high will become group members! and those nodes with RSSI of CH-msgs in between threshold high and threshold low will become 2nd level CH. Then the CH schedules the traffic for its group members depending on amt of data!!!!can any one help with the coding and setting 2 thresholds!!!!
ReplyDeleteprasanna please help!!!!!!
ReplyDeletehello mam, please help in learning ns2 from starting......
ReplyDeleteBanjamin!it is tough!!!I'm going through tough phase!!!!!When coming to projects in MAC protocols in WSN,not even people who claims themselves well versed can't do it!!!!
DeleteHI Lewis,
DeleteJust mail me what else u need to learn
a) Basics of Ns2
b) Joining of C++ and Tcl
c) OTCL and TCL procedure using multiple arrays
d) Sample programs in ns2
e) Protocol implementation
will also help in IEEE conference ,.
Basically iam not like project center single guy just interested in teaching and work in research love ns2 so help you no issues so i can learn Thanks
I need energy consumption code of manet so that can simulate it in ns2
ReplyDeleteThanks for replying,I only need the Energy Consumption code during transmitting or receiving mode in Manet.Rest when I will simulate then only can tell you.
ReplyDeletehi, we r working on cut detection in wireless sensor network ..can u plz help us to detect cut in this network ..
ReplyDeleteplz mail to this:menakakk2000@gmail.com
I tried installing TKN's 802.11e EDCA on ns 2.35(ubuntu 13.04)...followed all the steps in read me file..but on executing the example file getting error
ReplyDelete"invalid command name "Mac/802_11e".
Please help.
Thanks for this wireless code. It helped me alot.
ReplyDeleteThanks Shaily any help needed please contact in email which mentioned in blog def wil provided
ReplyDeleteYour appreciation is needed to help more researchers
Hi Sir,
ReplyDeleteI just want to know how to call RTS-CTS mechanism within TDMA slots ?
Thanks in Advance,
Pawan
hey dou you now the how code wireless mesh network if you know send me the link or materiel
ReplyDeletehello sir i just want how to calculate network lifetime of sensor nodes...... is there any code for that..... pls reply me......
ReplyDeletehi sir, i m doing my mtech project " packet reordering problem solutions on wireless nodes -tcp", i begun my coding in ns2 but im not clear with how wireless nodes works and how to implement node and link failure . i want the sample coding for wireless nodes including node , link failures and mobility for a simple topology with explanation ...can u help me?
ReplyDeletethank u in advance
hi sir,
ReplyDeleteHow i can use fuzzy controller in ns2.
my email is nshmrstrmg@yahoo.com
hiii
ReplyDeletecan u please tell me in brief what this code is all abt,,,
thank you
Is there any way to access wifi created by ns2 in a java code?
ReplyDeleteHI
ReplyDeleteSure you can use it we have separate patches to run the java if u need i can send it Thanks
This comment has been removed by the author.
ReplyDelete@Prasanna .. hey i want to simulate a VSN for smart video surveillance system .. Is this possible with ns2 as all i can get is about WSN nad not VSN ?
ReplyDeleteCan you pls guide me with this ?
Thanks in advance :)
HI
DeleteI had experience work with Video stream let me try in WSN can you please mail me the paper and your number so we can discuss so i will confirm whether can help in it or not Thanks
Hello
ReplyDeleteHelp please
I have this error :
num_nodes is set 7
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
invalid command name "Agent/UdpSink"
while executing
"Agent/UdpSink create _o191 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/UdpSink"
invoked from within
"set sink0 [new Agent/UdpSink]"
hi i'm currently doing project in neighbor coverage based probabilistic rebroadcast protocol can any one plz give me some coding in ns2 for ncpr
ReplyDeleteHi, I need to make node as selfish.so that i want to give specific threshold value to every node. for that where and How to modify AODv protocol?
ReplyDeletehow will i give key exchange mechanism for AODV protocol???
ReplyDelete