Tuesday, April 5, 2011

Sample Coding in Wireless

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

211 comments:

  1. thank you very much your code helped me to start with wireless networks in ns2

    ReplyDelete
    Replies
    1. how to send probe packets in multicast wired network??
      pls help me

      Delete
  2. HI thanks keep learning any doubts mail me i will help you

    ReplyDelete
    Replies
    1. hi can you please help me that how do i add new ftp client and ftp server for my scenario

      Delete
    2. please help me on this


      stop: couldn't execute "nam": no such file or directory
      while executing
      "exec nam simwrls.nam &"
      (procedure "stop" line 6)
      invoked from within

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

      Delete
    4. how to patch up olsr routing protocol in ns2?
      what are the requirements needed for it..

      Delete
    5. Hi

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

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

      Delete
    7. HI Jeya

      Thanks 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

      Delete
    8. Hi friends ,
      Pls give the algorithms to make a cluster in NS2

      Delete
    9. haii mam how to write code for mobile agent basedtoplogy cotrol algorithm in wsn?

      Delete
    10. HI Arathy

      Iam 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

      Delete
    11. Hello Sir,

      I want to make a wireless scenario where all the nodes are stationary. How to do it ?

      Delete
  3. hi prasanna brother ,

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

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

    ReplyDelete
  5. this is shiny...i didn't understand wht this pgm is doing?
    can any one explain..i am new to ns2..and also i need simple cluster based program

    ReplyDelete
  6. hai,
    thiz 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

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

    ReplyDelete
  8. Hey buddy nice code but it gives segmentation error.
    do 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.

    ReplyDelete
  9. Plese help me out by explaining briefly what is happening in NAM window?

    ReplyDelete
  10. hi, 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?

    ReplyDelete
  11. Hi 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

    ReplyDelete
  12. can you help me how to implement tcp handshake mechanism in ns2

    ReplyDelete
  13. Hi, 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.

    my e-mail is fadillah@kumoh.ac.kr

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

    ReplyDelete
  15. hi friends anyone doing congestion project in ns2..i need some help if u willing means mail me to denesh002@gmail.com

    ReplyDelete
  16. hi friends iam doing my P.G project on WSN using ns2 . plz help me to remove this error
    Missing required flag -x in: W -t 10.0

    Missing required flag -y in: W -t 10.0

    Parsing error in event.

    ReplyDelete
    Replies
    1. mam,
      can 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

      Delete
  17. hey guies could anyone help me i need cluster based routing program while sensor nodes are static...?
    plzzz e-mail me araeean@yahoo.ca

    ReplyDelete
  18. 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.
    Please mail to elshuba12@gmail.com

    ReplyDelete
  19. hi friends , I am doing project on WSN using Opnet , anyone can help me ?

    ReplyDelete
  20. hi friends , please any body can help on Opnet
    to simulate Wireless sensors netwrok?

    ReplyDelete
  21. friends,
    can 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

    ReplyDelete
  22. 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.
    my emailid:d.jothi1991@gmail.com

    thanks in advance.

    ReplyDelete
    Replies
    1. hi mam.. can you say the steps to create wireless sensor node with 802.11 in ns2... plz help me..

      Delete
  23. pls give guidance for developing clustering algorithm for manets using dominating nodes.....
    To sandhyamca.ram@gmail.com

    ReplyDelete
  24. 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??

    ReplyDelete
  25. Hi prassana...Can u provide me the c++ code for wsn for health caring...doing in ns2...pls help me out...

    ReplyDelete
  26. My mail id is fakru62@gmail.com

    ReplyDelete
  27. hi 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

    ReplyDelete
  28. hi prasanna brother ,

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

    ReplyDelete
  29. hi
    I 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

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

    ReplyDelete
  31. hi frndz,
    iam 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.

    ReplyDelete
    Replies
    1. can anyone send me to id if u have this project,coding or anything itself.pl urgent.

      Delete
    2. hai

      am 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

      Delete
  32. hi..
    tis 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....

    ReplyDelete
    Replies
    1. HI bala,

      Sure sorry for delay i can help you can you mail me the exact requirement will look in to it, Thanks

      Delete
  33. Hi
    there 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

    ReplyDelete
    Replies
    1. my advice use the ubuntu and it will automatically download the latest version of nam

      Delete
  34. Siva,

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

    ReplyDelete
    Replies
    1. Sorry siva, for delay hope u timed out still need help mail me Thanks

      Delete
  35. My 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

    ReplyDelete
    Replies
    1. HI Chaitanya,

      Sorry 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

      Delete
    2. 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)

      Delete
  36. Hi I m working my project on VANET. Can i get Vanet example code for ns2. It will be very useful to me. Thanks

    engr.nadeem.sharif@hotmail.com

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

    suziiryanti@yahoo.com

    ReplyDelete
    Replies
    1. HI sorry for late reply if still need help i can do Thanks

      Delete
  38. hi prasanna,
    i am a research scholar, woriking with MANETs. I am having doubts with how to execute MANET simulations using ns2. help me in this area.

    ReplyDelete
    Replies
    1. Hi Prasanna,

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

      Delete
    2. HI Ramya,

      sure i can help you can please mail your concept for discussion mailadress is in my blog Thanks

      Delete
  39. hi prasanna...
    am 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....

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

    ReplyDelete
  41. hiii..parsanna
    I 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

    ReplyDelete
  42. hii prasanna

    I 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

    ReplyDelete
  43. 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:
    $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

    ReplyDelete
    Replies
    1. I am facing the problem as of yours. Are you able to find any solution of your problem, if yes please share !!!
      Thanxs in advance

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

    ReplyDelete
    Replies
    1. Hi, 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.

      Delete
  45. Hi Prassana


    I 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

    ReplyDelete
    Replies
    1. Hi Shiply,

      Yep will help you please say the problem with my knowledge will help you thanks

      Delete
  46. hi tnx for sample
    can you give me project about daynamic clustering for WSN?

    ReplyDelete
  47. Hi bro, i'm doing my project on key compromise in wireless environment. can you please give me some coding ideas to implement that.

    ReplyDelete
  48. Hello all,
    If someone can help me with implementation details of FssAgg schemes for my project it would be really useful for me.

    ReplyDelete
    Replies
    1. Can you please full form FSSAGG thanks

      Delete
  49. Hi, 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

    ReplyDelete
  50. send me any coding for reduction of power consumption in sensor networks...

    ReplyDelete
    Replies
    1. Can you please bit elaborate asking bandwidth

      Delete
  51. hi 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..

    ReplyDelete
  52. sir,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 ??

    ReplyDelete
    Replies
    1. HI

      hope i replied any results arrived

      Delete
  53. sir,plz provide me the code for Adjustable range load balancing protocol which cud run on ns2?

    ReplyDelete
  54. HI

    Sure 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

    ReplyDelete
    Replies
    1. only one server...my mailing address is -
      apoorva.jnit2008@gmail.com

      Delete
    2. i need code for 30 targets with 30m of sensing range and 40 sensor nodes for only 1 server using linear energy model...
      mailing address is -apoorva.jnit2008@gmail.com

      Delete
  55. 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?

    ReplyDelete
  56. Hi, i m doing project in NS2. i need code for finding neighborhood nodes using the integration of .cc and .tcl file. pls help me.....

    ReplyDelete
  57. Hi everybody
    This 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..

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

    ReplyDelete
  59. hi, 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
    Thanking you.

    ReplyDelete
  60. Hi, i'm doing project on
    1) "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

    ReplyDelete
  61. Hi.. i need a simulator to just run java programs. plz help me.

    ReplyDelete
  62. Hello prasanna i want a help ..plz sort it out ...as i am doing project on source privacy protection in wireless sensor network..
    1).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

    ReplyDelete
  63. hi... im learning NS2 in linux... can u help me to generate coding for aodv protocol.

    ReplyDelete
  64. hi prasanna
    how 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

    ReplyDelete
  65. Dear all,

    Kindly 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

    ReplyDelete
    Replies
    1. Hi,

      Have 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 :)

      Delete
  66. Dear Prasanna,
    I 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.

    ReplyDelete
  67. can you please tell how to add malicious node to this code...thanx in advance

    ReplyDelete
  68. sir Prasanna,
    Currently 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.

    ReplyDelete
    Replies
    1. HI Rizka,

      Thanks 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

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

    thank you

    ReplyDelete
  70. Hi prasanna,
    pls give the clustering algorithms in tcl language..

    ReplyDelete
  71. My mail id is gowdhupsg@gmail.com

    ReplyDelete
  72. hi sir
    please, 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

    ReplyDelete
  73. hello everyone,
    i 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

    ReplyDelete
  74. hi sir,
    I'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

    ReplyDelete
  75. hello sir,

    my 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

    ReplyDelete
  76. Hi

    Can 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

    ReplyDelete
  77. hello sir,
    this 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...

    ReplyDelete
  78. hello sir... i need code for clustering in ns2.. can u help me.... my mail id is gayu0717@gmail.com

    ReplyDelete
  79. Hi Prasanna,
    I 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

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

    ReplyDelete
  81. hello 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
    thankyou :)

    ReplyDelete
  82. Hi prasanna,
    Thank 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

    ReplyDelete
  83. Hi Prasanna,

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

    ReplyDelete
    Replies
    1. which algorithm are u going to simulate

      Delete
  84. hi Prasanna,
    I 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...

    ReplyDelete
  85. hi prasanna,
    I 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

    ReplyDelete
  86. hi prasana,
    I'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.

    ReplyDelete
  87. pls send tcp coding to calculate throughput in wireless network

    ReplyDelete
    Replies
    1. sir do u have pls forward to gopinath85131@gmail.com

      Delete
  88. this is my mail id
    ravibabu2810@gmail.com

    ReplyDelete
  89. hi prasana,
    i 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

    ReplyDelete
  90. This comment has been removed by the author.

    ReplyDelete
  91. hi all,
    i 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

    ReplyDelete
  92. hi sir,
    i deadly need ur kind help. My E-mail id is jyotisachan.004@gmail.com Please reply sir.

    ReplyDelete
  93. Dear sir,

    I 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

    ReplyDelete
  94. Sir,
    I am doing my research work in Underwater Sensor Networks and I am new to ns-2. Will you please help me?
    Thanks
    Jalaja

    ReplyDelete
  95. dear all, who can help me?please !!!
    i 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

    ReplyDelete
  96. This comment has been removed by the author.

    ReplyDelete
  97. Hi 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 )

    Regards,

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

    ReplyDelete
  99. hai..
    thanks 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

    ReplyDelete
  100. can any one giving coding for THROUGHPUT, DELAY, RTT, PDR, in ns2 for calculation kindly mail me gopinath85131@gmail.com

    ReplyDelete
    Replies
    1. if u get please forward me too.. awk files of this
      sumi.nagah@gmail.com

      Delete
  101. This comment has been removed by a blog administrator.

    ReplyDelete
  102. This comment has been removed by the author.

    ReplyDelete
  103. I 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

    ReplyDelete
  104. hey 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.

    MY ID IS "lakichaudhery@gmail.com".

    ReplyDelete
  105. Hi,
    This 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

    ReplyDelete
  106. Hi,
    This 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

    ReplyDelete
  107. hi
    i used CYGWIN in windows 7. But NS2 is not working... ./install file missing ...how i solved it
    reply me.. cloudbargavi@gmail.com

    ReplyDelete
  108. Hello sir,
    Iam 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

    ReplyDelete
  109. hai
    I 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

    ReplyDelete
    Replies
    1. HI

      Soirry for late reply just confirm still help is needed Thanks

      Delete
  110. hai
    I 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

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

    ReplyDelete
  112. Pls help me... if you have any knowledge about it pls do mail me.. thx..

    ReplyDelete
  113. Hi Sir, I am doing project in cognitive radio routing. can you help to implement this project?. my mail id tkmmelvin@gmail.com

    ReplyDelete
    Replies
    1. Hi

      Sure 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

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

    ReplyDelete
  115. HI

    Sure 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

    ReplyDelete
  116. Hi sir, m doing project in enegy efficient wireless sensor network, using tool as ns-2 ,
    kindly help me, and please provides codes , my email id: yamin.saniya@gmail.com

    ReplyDelete
    Replies
    1. HI Yamin

      I mailed you can you just confirm which line you struct so that i can help in that Thanks

      Delete
  117. i'm doing M.E in WSN...did LEACH PROTOCOL supports in WSN...can any one clarify my doubts...

    ReplyDelete
    Replies
    1. Hi Ramya

      Sure 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

      Delete
  118. i'm doing M.E in MANET , any help do find out intruder in wireless network

    this is my E-mailid

    sakthiperumalk@gmail.com

    ReplyDelete
    Replies
    1. HI

      Sakthi mailed you need some details so that i can help you in the attack we can use IDM concept

      Delete
  119. hi.. can anybody send me code for simulating OLSR in Ns2 based on Fuzzy Logic that can output OLSR table

    ReplyDelete
    Replies
    1. HI Masood,

      Sure i will help you can you send the base paper to my mail address so that will help you in it Thanks

      Delete
  120. hi.. if possible how to increase cca value in phy layer of wifi networks...

    ReplyDelete
    Replies
    1. HI

      We 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

      Delete
  121. Hi...
    We are working on multicast in mobile ad hoc networks.. We r basically beginners.. Can u pls explain us what this program does?

    ReplyDelete
    Replies
    1. HI

      Sure 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

      Delete
  122. hi please help me
    my 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

    ReplyDelete
  123. hi ,
    my 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

    ReplyDelete
  124. 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!!!!!

    ReplyDelete
  125. sorry to mention this is based on a cross-layer concept for MAC protocol(MAC + routing) in wireless sensor networks!!

    ReplyDelete
  126. please 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!!!!

    ReplyDelete
  127. hello mam, please help in learning ns2 from starting......

    ReplyDelete
    Replies
    1. Banjamin!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!!!!

      Delete
    2. HI Lewis,

      Just 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

      Delete
  128. I need energy consumption code of manet so that can simulate it in ns2

    ReplyDelete
  129. Thanks 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.

    ReplyDelete
  130. hi, we r working on cut detection in wireless sensor network ..can u plz help us to detect cut in this network ..
    plz mail to this:menakakk2000@gmail.com

    ReplyDelete
  131. 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
    "invalid command name "Mac/802_11e".

    Please help.

    ReplyDelete
  132. Thanks for this wireless code. It helped me alot.

    ReplyDelete
  133. Thanks Shaily any help needed please contact in email which mentioned in blog def wil provided

    Your appreciation is needed to help more researchers

    ReplyDelete
  134. Hi Sir,

    I just want to know how to call RTS-CTS mechanism within TDMA slots ?

    Thanks in Advance,
    Pawan

    ReplyDelete
  135. hey dou you now the how code wireless mesh network if you know send me the link or materiel

    ReplyDelete
  136. hello sir i just want how to calculate network lifetime of sensor nodes...... is there any code for that..... pls reply me......

    ReplyDelete
  137. hi 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?
    thank u in advance

    ReplyDelete
  138. hi sir,
    How i can use fuzzy controller in ns2.

    my email is nshmrstrmg@yahoo.com

    ReplyDelete
  139. hiii
    can u please tell me in brief what this code is all abt,,,
    thank you

    ReplyDelete
  140. Is there any way to access wifi created by ns2 in a java code?

    ReplyDelete
  141. HI

    Sure you can use it we have separate patches to run the java if u need i can send it Thanks

    ReplyDelete
  142. This comment has been removed by the author.

    ReplyDelete
  143. @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 ?
    Can you pls guide me with this ?
    Thanks in advance :)

    ReplyDelete
    Replies
    1. HI

      I 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

      Delete
  144. @prasanna - I have mailed you the paper.
    pls have a look

    ReplyDelete
  145. Hello
    Help 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]"

    ReplyDelete

Thanks for using my blog any queries or help please email to clickprasan@gmail.com . Please be careful from spammers .do not reply to any other email address other than mentioned above