[ns] TORA error, DSR/DSDV/AODV working
Hi all, Sorry to be sending multiple emails to this list but I'm really struggling with this. I managed to get DSR routing working by changing the queue type as suggested by others to CMUPriQueue. However TORA still won't work and I can't work out what is going wrong or find any solutions on the net. The error is shown below, with the tcl further down. There is no difference between this code and the other protocol code except for changing the protocol type. I have even tried to download TORA examples (http://www-sop.inria.fr/maestro/personnel/Eitan.Altman/ns.htm) which also don't work. Any help is appreciated! Michael. ERROR -- $ ns test.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead (_o17 cmd line 1) invoked from within "_o17 cmd port-dmux _o32" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 23) (Node/MobileNode add-target line 23) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 76) (Simulator create-wireless-node line 76) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node " ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node ] $node_($i) random-motion 0 ;# disable random motion } " (file "test.tcl" line 54) TCL FILE -- # == # Define options # == set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(ant) Antenna/OmniAntenna ;# Antenna type set val(ll) LL ;# Link layer type set val(ifq)CMUPriQueue ;# Interface queue type #set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type set val(ifqlen) 50 ;# max packet in ifq set val(netif)Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(rp) TORA ;# ad-hoc routing protocol set val(nn) 3;# number of mobilenodes set val(stop) 500 ;# length of the simulation set val(x)500 ;# size of the square one side set val(y) 500 ;# size of the square one side # == # Standard Setup # == set ns_[new Simulator] $ns_ use-newtrace set tracefd[open thesis-out.tr w] $ns_ trace-all $tracefd set topo[new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # == # Configure 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) \ -topoInstance $topo \ -channelType $val(chan) \ -agentTrace ON \ -routerTrace ON \ -macTrace ON for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node ] $node_($i) random-motion 0 ;# disable random motion } # == # Initial Positioning # == $node_(0) set X_ 20.0 $node_(0) set Y_ 20.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 450.0 $node_(1) set Y_ 450.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 250.0 $node_(2) set Y_ 250.0 $node_(2) set Z_ 0.0 #
[ns] DSR and TORA not working, DSDV/AODV work
Hi all, I have modified the wireless1.tcl example with some simple adjustments trying to get some examples working. I have managed to get DSDV and AODV working (although I'm unsure whether DSDV is routing correctly) and they can be viewed in iNSpect fine etc. However if I change the routing protocol to either DSR or TORA neither will successfully compile. The error is: $ ns test.tcl num_nodes is set 20 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... SORTING LISTS ...DONE! channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 Segmentation fault (core dumped) The TCL file is pretty much exactly the same as the wireless1.tcl example except instead of using a traffic generator I make 2 simple connections, and I have made my own 20 node, 500x500, 500s long movement file using the generator setdest. The tcl file is shown at the end of this email. All examples work fine and I cannot work out what's going wrong, anyone got suggestions? Or if anyone can email me a similar wireless setup (mobile nodes, some basic traffic, some random movement) that works with all the routing protocols that would be handy also. Thanks, Michael. P.S. To run the test.tcl you'll have to make the movement file yourself using setdest, just use settings node=20, size=500x500, simulation time = 500s. test.tcl # Copyright (c) 1999 Regents of the University of Southern California. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright #notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright #notice, this list of conditions and the following disclaimer in the #documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software #must display the following acknowledgement: # This product includes software developed by the Computer Systems # Engineering Group at Lawrence Berkeley Laboratory. # 4. Neither the name of the University nor of the Laboratory may be used #to endorse or promote products derived from this software without #specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # wireless1.tcl # A simple example for wireless simulation # == # 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) 500 ;# X dimension of the topography set val(y) 500 ;# Y dimension of the topography set val(ifqlen) 50;# max packet in ifq set val(seed) 0.0 set val(adhocRouting) DSR set val(nn) 20 ;# how many nodes are simulated set val(cp) "cbr-20" set val(sc) "scen-20-500x500-500s" set val(stop) 500.0 ;# simulation time set val(rxTxPower)100 # = # Main Program # == # # Initialize Global Variables # # create simulator instance set ns_[new Simulator] $ns_ use-newtrace # setup topography object set topo[new Topography] # create trace object for ns and nam set tracefd[open test-out.tr w] set namtrace[open test-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)] # # define how node should be created # #global node setting $ns_ node-config -adhocRouting $val(adhocRoutin
[ns] iNSpect problems
Hi All, I'm trying to iNSpect with great difficulty. I am trying with either Cygwin or Windows (whichever will work!) but both are failing on me. I believe the Cygwin install is failing because it can't detect GTK+ 2.0 properly (even though I'm sure I've installed it via the cygwin setup.exe). With the Windows install I can't work out how to properly install GLUT and I also think it's having problems with GTK/GDK even though I followed the install notes in the documentation that came with iNSpect. Has anyone been able to successfully install iNSpect with cygwin and able to give me a brief rundown on what to do from a base cygwin install? Or is it possible to copy a compiled version of iNSpect onto my computer, in which case can someone send me a compiled version of it? OR can anyone suggest a different visualization tool for wireless ns-2 networks? Any help is appreciated as this is for my thesis and is pretty critical to get a good outcome. Thanks, Michael.
[ns] List of Wireless Routing Protocols in ns-2?
Hi All, I am just interested to know if anyone has a list of wireless routing protocols that have been implemented in ns-2, and locations where they can be downloaded from? Thanks, Michael.
Re: [ns] where can i download ns-2.27 ?
ftp://ftp.isi.edu/nsnam/ns-allinone-2.27.tar.gz Google is your friend. ftp://ftp.isi.edu/nsnam/ should have all the distributions I think. Good luck! cheki imane wrote: > Hi every body, i really need your help, so can any one tell me where can i > download ns-2.27. > i'm working on ns-2.32 and as i met trouble to add multimedia flot, i must > try ns-2.27 but i don't find any source. > _ > Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en > ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le > marché ! > http://ideas.live.com >
Re: [ns] can you help me please
Hi, That error means that you don't have nam install. Try the command with the exec at the front and see if that works. I think nam comes with ns-2 but if you don't have it yet it is downloadable at http://www.isi.edu/nsnam/nam/ Original message >Date: Tue, 15 Apr 2008 08:41:36 -0700 (PDT) >From: mohamed saad <[EMAIL PROTECTED]> >Subject: [ns] can you help me please >To: nsusers > > > >ASalam alikom > > I have error when I write this program > > > >set ns [new Simulator] > >set nf [open out.nam w] > >$ns namtrace-all $nf > >proc finish {} { > >global ns nf > >$ns flush-trace > >close $nf > >exec nam out.nam & > >exit 0 > >} > >set n0 [$ns node] > >set n1 [$ns node] > >$ns duplex-link $n0 $n1 1Mb 10ms DropTail > >$ns at 5.0 "finish" > >$ns run > > > >When I run this program > >It give me this error > > > >Ns:finish:couldn't execute "nam": > >No such file or directory > > While executing > >"exec nam out.nam &" > >(procedure "finish" line5) > >Invoked from within > >"finish" > >can you help me to solve this error? >gazak allah khiran > > > > between -00-00 and -99-99