NS-2 problem llType
I m having problem with ns-2.......
link layer type......... lltype $val(ll) It says could nt read da value... why it is nt takin da value...... |
__ ns2 __
Welcome to LQ. http://www.linuxquestions.org/linux/rules.html
Please read the LQ rules : Short hand writing is not allowed. And then use a readable English : I have no idea, what you ask. Some more information is required to answer ... http://www.catb.org/~esr/faqs/smart-questions.html ( 1. The Linux, you use : Debian 5 Lenny ? ) 2. ns2 version, like ' ns-allinone-2.34 '. 3. The directory and files in question. ... Like ns-allinone-2.34/ns-2.34/tcl/xxx/xx. 4. The command, you are trying to use ? 5. The exact code used by that command ? 6. The error message ? 7. A link, an URL with info about the protocol in question. Link layer ? With those things made clear, somebody may have an answer, or can (may be) point to someone familiar with the protocols, you are working at. .. NS2 threads at LQ are tagged 'ns2' : LQ Search > http://www.linuxquestions.org/questions/search.php > > > Tag Name = ns2 |
i am using ns 2.27..
in lenny 5. ok, i resolved the problem. but now, i want ns2.34 with LEACH routing protocol for sensor network simulation. Can you help me in this matter...... thanks |
The LEACH threads : LQ Search > > "Tag Name" = leach
LQ member @emtarik05 has ported the mit code to ns-allinone-2.34 : http://www.linuxquestions.org/questi...379/page5.html > post # 68 .. And please read the other posts by @emtarik05 in that thread too. .. |
Message from @debanga :
Quote:
Old tcl , tk , otcl , tclcl cannot be compiled on Debian (or Ubuntu.) The oldest for Debian = ns-allinone-2.27, using tcl etc. from 2.34. The install instructions are here, post #3 : http://www.linuxquestions.org/questi...10-a-782356/#3 'ns-allinone-2.26' : Any other Linux, e.g. Fedora or CentOS. 'ns-allinone-2.1x' : CentOS 3.9 only. Please read post # 2 again : Says 'LQ Search' , "Tag Name" = ns2 ( ns226 posts are tagged too.) .. |
New message by email from @debanga :
Quote:
|
'ns-allinone-2.29.3' .. Ubuntu 9.10 Karmic
Ref. post # 6
sudo apt-get install \ libx11-dev libxmu-dev libxmu-headers libxt-dev libtool g++-4.1 If you want to use nam-1.11 ( any nam can be used ) : http://bugs.gentoo.org/attachment.cgi?id=161242 cd ns-allinone-2.29.3/tk-8.4.11/ patch -p0 < tk-8.4-lastevent.patch Edit some 'Makefile.in' : otcl-1.11/, line 7 : CC = gcc-4.1 tclcl-1.17/, line 40 : CC = gcc-4.1 tclcl-1.17/, line 41 : CPP = g++-4.1 ns-2.29/ , line 36 : CC = gcc-4.1 ns-2.29/ , line 37 : CPP = g++-4.1 nam-1.11/, line 44 : CC = gcc-4.1 nam-1.11/, line 45 : CPP = g++-4.1 Do 'make clean' in otcl-1.11/ and next delete the 'Makefile'. Now ./install will work. .. |
thnx for your help!
|
llType error of ns-2
I am a novice in NS2......... and i am trying to run AODV script,
these error occur everytime i execute this code please help! % invalid command name "-llType" % invalid command name "-macType" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # wireless-aodv.tcl # A 3 nodes example for ad hoc simulation with AODV # 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) 3 ;# number of mobilenodes set val(rp) AODV ;# routing protocol set val(x) 500 ;# X dimension of topography set val(y) 400 ;# 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) proc stop {} { global ns tracefd namtrace $ns flush-trace close $tracefd close $namtrace } # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # Create nn mobilenodes [$val(nn)] and attach them to the channel. set chan_1_ [new $val(chan)] # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -channel $chan_1_ \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace ON \ for {set i 0} {$i <$val(nn) } { incr i } { set node_($i) [$ns node] } # Provide initial location of mobilenodes $node_(0) set X_ 5.0 $node_(0) set Y_ 5.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 # Generation of movements #$ns at 10.0 “$node_(0) setdest 250.0 250.0 3.0” #$ns at 15.0 “$node_(1) setdest 45.0 285.0 5.0” #$ns at 110.0 “$node_(0) setdest 480.0 300.0 5.0” # Set a TCP connection between node (0) and node (1) set tcp [new Agent/TCP/Newreno] $tcp set class_ 2 set sink [new Agent/TCPSink] $ns attach-agent $node_(0) $tcp $ns attach-agent $node_(1) $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 10.0 “$ftp start” # Define node initial position in nam for {set i 0} {$i <$val(nn)} { incr i } { # 30 defines the node size for nam $ns initial_node_pos $node_($i) 30 } # Telling nodes when the simulation ends for {set i 0} {$i <$val(nn) } { incr i } { $ns at $val(stop) “$node_($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” $ns run |
Welcome to LQ. .. .. :) ..
Please do not ask an off topic question in an old thread. And this thread is marked [SOLVED], i.e. finished. You will have to start a new thread : Forums > Linux Forums > Software http://www.linuxquestions.org/questi...ux-software-2/ And please read http://www.linuxquestions.org/linux/...Ask_a_Question http://www.catb.org/~esr/faqs/smart-questions.html http://www.linuxquestions.org/linux/rules.html Please provide more information in your new thread : Linux <name>, <version>. Version of ns-allinone-2.<?>. And tell, where you got the file, wireless-aodv.tcl. .. P.S. : Code tags are required for code : [/code] at text end, and [code] at text start http://www.linuxquestions.org/questi....php?do=bbcode .. |
llType command invalid
guys the problem llType appears since the program has TAB space between them so remove those space and then try it and please try to type the program do not just copy form sites.
|
using nist-mobility and sip togather
Hi every body
I need to simulate a mobility scenario that needs MIH and SIP together. I installed ns2.27 on my Ubuntu 10.04 and installed ns2.27 on it, according to your good guides and finally I could install NIST SIP and RUI Prior SIP on it. but when I want to install NIST MIH, I seen that it needs ns2.29 with gcc-4.1!!! I can't install ns2.29 and NIST MIH according above helps. I become confused. What I must do for using both in one simulation. Can anybody help me, please! |
fahimeh_ak, post # 12 : Please start a new thread.
( This one has poor formatting. ( Reported )). And I will have a look at "ns2.29 and NIST MIH". Also : Please provide links to NIST + MIH files and to their documentation. Regards, knudfl. |
Hi Kudfl,
can you please clear which Makefile is to be deleted, as in otcl-1.11, there is Makefile.in and Makefile.vc. Thanks |
@ FFatima, post # 14 : Welcome to LQ.
Most often the command 'make clean', will also delete the Makefile. May not happen with a couple of the 'ns-allinone-2.xx' applications. But if there is no file by name 'Makefile', there is nothing to delete. ( Makefile is generated from Makefile.in . ( Makefile.vc : Probably for Windows©.)) .. |
All times are GMT -5. The time now is 03:09 PM. |