LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-06-2010, 02:55 AM   #1
debanga
LQ Newbie
 
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4

Rep: Reputation: 0
Unhappy 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......
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-07-2010, 05:05 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
__ 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

Last edited by knudfl; 06-07-2010 at 05:23 AM.
 
Old 06-08-2010, 01:56 AM   #3
debanga
LQ Newbie
 
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 06-08-2010, 04:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
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.

..
 
Old 06-10-2010, 03:29 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Message from @debanga :
Quote:
checking system version (for dynamic loading)... ./configure: 1:
Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
? Which version of ns-allinone-2.xx are you trying to compile ? ? ?


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

Last edited by knudfl; 06-10-2010 at 03:51 AM.
 
2 members found this post helpful.
Old 06-18-2010, 03:26 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
New message by email from @debanga :
Quote:
Hi I'm installing ns2.29.3 in ubuntu 9.10 for mannasim framework....
but im getting this problem.....
otcl.o: In function `Otcl_Init':
/home/dgo/ns-allinone-2.29/otcl-1.11/otcl.c:2284:
undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.11 make failed! Exiting ...
 
2 members found this post helpful.
Old 06-18-2010, 08:56 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
'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.
..

Last edited by knudfl; 06-18-2010 at 09:10 AM.
 
2 members found this post helpful.
Old 06-26-2010, 02:24 PM   #8
debanga
LQ Newbie
 
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4

Original Poster
Rep: Reputation: 0
thnx for your help!
 
Old 08-18-2010, 01:57 AM   #9
ava14
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Question 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

Last edited by ava14; 08-18-2010 at 02:08 AM.
 
Old 08-19-2010, 04:14 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
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
..

Last edited by knudfl; 08-19-2010 at 04:24 AM.
 
Old 02-17-2011, 03:51 PM   #11
udayvikram
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Lightbulb 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.

Last edited by udayvikram; 02-19-2011 at 07:28 AM.
 
Old 04-15-2011, 02:43 AM   #12
fahimeh_ak
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
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!
 
Old 04-15-2011, 07:36 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
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.
 
Old 05-26-2011, 11:40 PM   #14
FFatima
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
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
 
Old 05-28-2011, 01:00 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
@ 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©.))

..
 
  


Reply

Tags
bittorrent-p2p, mannasim, mannasim-ns235, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 11:20 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 07:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 02:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM
Not as much of a Solaris problem rether hardware Ultra 10 problem (video card) neo77777 Solaris / OpenSolaris 7 06-24-2003 09:36 PM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration