Hi , what is the problem ??why am i getting the result where aodv outperforming aomdv??? i have attached the tcl script and the performance analysis .i am doing that on ns 2.35.pls help me thank regards dilip
On Sun, Mar 23, 2014 at 5:45 AM, <ns-users-requ...@isi.edu> wrote: > Send Ns-users mailing list submissions to > ns-users@isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-requ...@isi.edu > > You can reach the person managing the list at > ns-users-ow...@isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Fwd: ns2.35program (Samarth Maiya) > 2. how to find the node id (prince) > 3. adding entry to routing table (hm) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 22 Mar 2014 17:31:39 +0530 > From: Samarth Maiya <samarth.ma...@gmail.com> > Subject: [ns] Fwd: ns2.35program > To: ns-users <ns-users@isi.edu> > Message-ID: > <CACN8DYyJwKjH6vKW= > h9sbi+1wnvnqg6zv_fti8eemks7o7t...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > ---------- Forwarded message ---------- > From: Samarth Maiya <samarth.ma...@gmail.com> > Date: Sat, 22 Mar 2014 17:30:33 +0530 > Subject: ns2.35program > To: gaju.v...@gmail.com > > respected sir , > I am samarth maiya doing project on > ns2.35,in this mail i have attached a tcl script for 5 node traces > 0-2-4 a opportunistic routing .will you please help me to trace all > the node that is 0-1-2-3-4, without changing a distance between > intermediate node. > > or guide me any changes that we have do in protocol (AODV) > > thanking you sir > samarth maiya > > ------------------------------ > > Message: 2 > Date: Sat, 22 Mar 2014 09:01:06 -0700 (PDT) > From: prince <jaideep1...@gmail.com> > Subject: [ns] how to find the node id > To: ns-users@isi.edu > Message-ID: <1395504066939-28465.p...@n7.nabble.com> > Content-Type: text/plain; charset=us-ascii > > hi > how can i find the node id in queue.cc if i am using index_ it doesn't work > i want to monitor the queue of particular node ,how can i do it > thanks > > > > -- > View this message in context: > http://network-simulator-ns-2.7690.n7.nabble.com/how-to-find-the-node-id-tp28465.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 3 > Date: Sat, 22 Mar 2014 09:23:05 -0700 (PDT) > From: hm <hmth...@gmail.com> > Subject: [ns] adding entry to routing table > To: ns-users@isi.edu > Message-ID: <1395505385450-28466.p...@n7.nabble.com> > Content-Type: text/plain; charset=us-ascii > > I want to create two new columns in the dsdv routing table. > > 1. All the nodes that it is directly connected to the current node > 2. The node to which the previous packet went to from the current node. > > Any ideas how I would go about in either cases? > > > > -- > View this message in context: > http://network-simulator-ns-2.7690.n7.nabble.com/adding-entry-to-routing-table-tp28466.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users@isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 123, Issue 20 > ***************************************** >
# Define options set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue set val(ll) LL set val(ant) Antenna/OmniAntenna set val(x) 1000 ;# X dimension of the topography set val(y) 1000 ;# Y dimension of the topography set val(ifqlen) 50 ;# max packet in ifq set val(seed) 0.0 set val(adhocRouting) AODV set val(nn) 10 ;# how many nodes are simulated set val(cp) "../ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/cbr-10-test" set val(sc) "../ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest/scen-10-TA" set val(stop) 100.0 ;# simulation time set val(energymodel) EnergyModel ;# Energy Model set val(initialenergy) 50 ;# value # Main Program # Initialize Global Variables # # create simulator instance set ns_ [new Simulator] # setup topography object set topo [new Topography] # create trace object for ns and nam set tracefd [open wireless1-out.tr w] set namtrace [open wireless1-out.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) # define topology $topo load_flatgrid $val(x) $val(y) # # Create God # set god_ [create-god $val(nn)] # create channel set chan [new $val(chan)] # # define how node should be created # #global node setting $ns_ node-config -adhocRouting $val(adhocRouting) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel $chan \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF\ -movement Trace OFF\ -energyModel $val(energymodel) \ -initialEnergy $val(initialenergy) \ -rxPower 35.28e-3 \ -txPower 31.32e-3 \ -idlePower 712e-6 \ -sleepPower 144e-9 # unity gain, omni-directional antennas # set up the antennas to be centered in the node and 1.5 meters above it Antenna/OmniAntenna set X_ 0 Antenna/OmniAntenna set Y_ 0 Antenna/OmniAntenna set Z_ 1.5 Antenna/OmniAntenna set Gt_ 1.0 Antenna/OmniAntenna set Gr_ 1.0 # Initialize the SharedMedia interface with parameters to make # it work like the 914MHz Lucent WaveLAN DSSS radio interface Phy/WirelessPhy set CPThresh_ 10.0 Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 3.652e-10 Phy/WirelessPhy set Rb_ 2*1e6 Phy/WirelessPhy set Pt_ 0.2818 Phy/WirelessPhy set freq_ 914e+6 Phy/WirelessPhy set L_ 1.0 # # Create the specified number of nodes [$val(nn)] and "attach" them # to the channel. for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] } # # Define node movement model # puts "Loading connection pattern..." source $val(cp) # # Define traffic model # puts "Loading scenario file..." source $val(sc) # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { # 20 defines the node size in nam, must adjust it according to your scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $node_($i) 20 } # # Tell nodes when the simulation ends # for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at $val(stop).0 "$node_($i) reset"; } $ns_ at $val(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt" puts $tracefd "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(adhocRouting)" puts $tracefd "M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)" puts $tracefd "M 0.0 prop $val(prop) ant $val(ant)" puts "Starting Simulation..." $ns_ run