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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
06-06-2010, 01:55 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4
Rep:
|
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.
|
06-07-2010, 04:05 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
__ 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 04:23 AM.
|
|
|
|
06-08-2010, 12:56 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4
Original Poster
Rep:
|
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
|
|
|
|
06-08-2010, 03:19 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
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.
..
|
|
|
|
06-10-2010, 02:29 AM
|
#5
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
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 02:51 AM.
|
|
|
2 members found this post helpful.
|
06-18-2010, 02:26 AM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
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.
|
06-18-2010, 07:56 AM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
'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 08:10 AM.
|
|
|
2 members found this post helpful.
|
06-26-2010, 01:24 PM
|
#8
|
|
LQ Newbie
Registered: Jun 2010
Location: On the earth
Distribution: D.go
Posts: 4
Original Poster
Rep:
|
thnx for your help!
|
|
|
|
08-18-2010, 12:57 AM
|
#9
|
|
LQ Newbie
Registered: Aug 2010
Posts: 1
Rep:
|
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 01:08 AM.
|
|
|
|
08-19-2010, 03:14 AM
|
#10
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
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 03:24 AM.
|
|
|
|
02-17-2011, 02:51 PM
|
#11
|
|
LQ Newbie
Registered: Mar 2010
Posts: 4
Rep:
|
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 06:28 AM.
|
|
|
|
04-15-2011, 01:43 AM
|
#12
|
|
LQ Newbie
Registered: Jul 2009
Posts: 13
Rep:
|
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!
|
|
|
|
04-15-2011, 06:36 AM
|
#13
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
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.
|
|
|
|
05-26-2011, 10:40 PM
|
#14
|
|
LQ Newbie
Registered: May 2011
Posts: 1
Rep: 
|
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
|
|
|
|
05-28-2011, 12:00 AM
|
#15
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
@ 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©.))
..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:57 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|