[ns] NS2 for WSN without Mannasim

2012-05-25 Thread Manjula Raja

Hello can anybody tell me, whether one can work on routing in WSN using
NS2, without mannasim patch?

Eagerly awaiting for the reply
with regards

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] solution please

2012-05-28 Thread Manjula Raja

Hello any one
when i run the file wireless.tcl from ns tutorial for " wireless
simulations for ns IX.2 from the link
http://www.isi.edu/nsnam/ns/tutorial/
i get the following error, can any one give me the solution>?

and here is the out put of .tcl file

ns simple-wireless-1.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
couldn't read file "../mobility/scene/cbr-3-test": no such file or directory
while executing
"source.orig ../mobility/scene/cbr-3-test"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(cp)"
(file "simple-wireless-1.tcl" line 128)

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] Help me

2012-06-14 Thread Manjula Raja

Hello any one!

Can any one provide me TCL script to run DSR and AODV routing protocls.
Our students are studying Adhoc wireless Networks as part of their
curriculum
I would like to provide them i.e my fellow college the TCL script of these
two protocols , so that they can have practical ( simulation) idea of these
two protocols and also brief note on how to analyse the trace files from
these two protocols. Eagerly waiting for the reply

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.
*


Re: [ns] Help me

2012-06-14 Thread Manjula Raja

:

> Hello any one!
>
> Can any one provide me TCL script to run DSR and AODV routing protocls.
> Our students are studying Adhoc wireless Networks as part of their
> curriculum
> I would like to provide them i.e my fellow college the TCL script of these
> two protocols , so that they can have practical ( simulation) idea of these
> two protocols and also brief note on how to analyse the trace files from
> these two protocols
>


> .
>
*Also from where can i get TCL script for location aided routing protocol
to implement in NS2*

Eagerly waiting for the reply
>
> --
> **R.Manjula
> Sr.Lecturer, Dept of ECE
> BITM, Bellary
> Karnataka.
> *
>
>


-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] How long?

2012-06-15 Thread Manjula Raja

Hello anyone!

I would like to know how  many months does it take for any one to learn NS2
, if fully dedicated to NS2 day in and day out?
with regrads

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] error with ./output.dat

2012-08-12 Thread Manjula Raja

Hello friends!

when i execute the following commnad
rajamanjula@localhost dream]$ ns dream.tcl ./output.dat
./scen-300x600-50-10-5-00

i get the below mentioned error, can any one please give me the solution?


couldn't open "./output.dat": permission denied
while executing
"open "$opt(tr)" w"
invoked from within
"set nt [open "$opt(tr)" w]"
(file "dream.tcl" line 142)


-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] dream protocol compilation error

2012-08-13 Thread Manjula Raja

Hello friends

I am trying to run Dream tcl script, which i obtained form Toilers, ported
to ns2.32
After making the changes i.e after applying the patch and executing the
command make, then when i run the program
and when i use the command   " ns dream.tcl ./output.dat
./scen-300x600-50-10-5-00 "   to run the tcl script , i
am facing with the following error



[root@localhost dream]# ns dream.tcl ./output.dat ./scen-300x600-50-10-5-00
num_nodes is set 50
INITIALIZE THE LIST xListHead
invalid command name "Agent/Dream"
while executing
"Agent/Dream create _o1015 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Dream"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn)} {incr i} {
  set d($i) [new Agent/Dream]
  $node_($i) attach $d($i) 253

  # need to tell the geocast agents about their..."
(file "dream.tcl" line 222)
[root@localhost dream]#



can any one provide me the solution?
-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] Problem solved

2012-08-16 Thread Manjula Raja

Hello friends
The solution to my problem
 " invalid command name "Agent/Dream"
 while executing "Agent/Dream create _o1015 "  invoked from within .",
is now solved.  The only thing i need to is use the following two command
after modifying all the necessary files in ns2 is

1. [ns-2.XX]$ touch common/packet.cc
2. [ns-2.XX]$ make

in the order mentioned above, thanks to

Mojtaba Asgari and also ns-users team for maintaining the web and providing
service to the research community.

Regards

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
Cell:08900479328
**


[ns] Error displayed in running tcl scripts in ns2-32

2012-08-22 Thread Manjula Raja

Hello friends!

When i try to run any tcl script in ns-2.32, i am facing the flowing error

 " Missing required flag -x in: W -t 150

Missing required flag -y in: W -t 150

Parsing error in event. "


Can any body help me out in this regard?
Will be much obliged

Regards

-- 
**R.Manjula

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**





-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] add a new protocol

2012-08-31 Thread Manjula Raja

Hai one and all

Can any one let me know, as to whether there is any exact measure i.e
number of files we need to modify in ns-2 directory, when we develop
our own routing protocol.  Or that it depends on our requirements. Because
as i surfed through internet for " add you own protocol in ns-2", each
person modifies a different number of files in ns-allinone.. so i would
like to know on what basis once has to decide which files to be modified in
ns2 , so as to run our own routing protocol without errors.

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] ns-2 command problem

2012-09-03 Thread Manjula Raja

Hello any one
i am facing this problem since last firday i.e 31/aug/2012

when i type the command "ns", the error message displayed is

[root@localhost rajamanjula]# ns
ns:
[code omitted because of length]
: ambiguous command name "F": FECModel FQLink FSM FSM/RenoAck
FSM/RenoDelAck FSM/TahoeAck FSM/TahoeDelAck Filter Filter/Field
Filter/MultiField
while executing
"F"


can any one give me the solution to this problem.
Thanks

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] problem solved

2012-09-03 Thread Manjula Raja

Hello friends, my problem to the problem which i  posted in my previous
posting is now solved ... code omitted because of
The mistake was , presence of extra character "F" in one of the tcl file,
which got typed mistakenly, when i was using Ctrl+F key, i pressed Shift+F
to find my thing and accidentaly i saved it without observing it carefully.

Sorry for the inconvenience caused, but hope the problem and solution may
be helpful to some one else who faces similar problem :)

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] New problem

2012-09-03 Thread Manjula Raja

Hello friends, this is the new error i am facing when i run ./validate
command in ns-2.32

../../ns test-suite-wireless-tdma.tcl dsr QUIET
num_nodes is set 50
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Load complete...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
finishing..
Test output differs from reference output
Diagnose with: diff test-output-wireless-tdma/dsr.test
test-output-wireless-tdma/dsr
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html";.
Some test failed.
Tue Sep  4 11:53:20 IST 2012
Tue Sep  4 11:53:22 IST 2012
*** ./test-all-satellite
Tests: repeater mixed wired aloha aloha.collisions mixed.legacy
Running test repeater:
../../ns test-suite-satellite.tcl repeater QUIET
Test output agrees with reference output
Running test mixed:
../../ns test-suite-satellite.tcl mixed QUIET
Test output agrees with reference output
Running test wired:
../../ns test-suite-satellite.tcl wired QUIET
Test output agrees with reference output
Running test aloha:
../../ns test-suite-satellite.tcl aloha QUIET
Test output agrees with reference output
Running test aloha.collisions:
../../ns test-suite-satellite.tcl aloha.collisions QUIET
Test output agrees with reference output
Running test mixed.legacy:
../../ns test-suite-satellite.tcl mixed.legacy QUIET
*** glibc detected *** ../../ns: free(): corrupted unsorted chunks:
0x00ff2130 ***
*** glibc detected *** ../../ns: malloc(): memory corruption:
0x00ffd6a0 ***



and also , this is only the ending part of my error, due to space
restriction i am giving this part.  and the terminal stops at this point,
can any one tell me the solution

Regards

-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] similar problem

2012-09-03 Thread Manjula Raja

Hello friends, i am facing the similar problem again


[root@localhost ns-allinone-2.32]# ns
ns:
[code omitted because of length]
: ambiguous command name "F": FECModel FQLink FSM FSM/RenoAck
FSM/RenoDelAck FSM/TahoeAck FSM/TahoeDelAck Filter Filter/Field
Filter/MultiField
while executing
"F"


can any one give me the solution?
-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] octl failed

2012-09-28 Thread Manjula Raja

Hello ns-users , can any one let me know the solution to the problem given
below and i am using ns-allinone-2.32 in ubuntu 11.04


No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I.
-I/home/manjula/ns-allinone-2.32/include
-I/home/manjula/ns-allinone-2.32/include
-I/home/manjula/ns-allinone-2.32/include -I/include  otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/manjula/ns-allinone-2.32/otcl-1.13/otcl.c:495: undefined reference to
`__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/manjula/ns-allinone-2.32/otcl-1.13/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: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

awaiting for the reply




-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] how to create ( or add) you own mobility model in ns2

2012-10-01 Thread Manjula Raja

Hello ns-users
can any one let me know the procedure to add our own mobility models in
ns-2.
Or, if i would like to work with existing random way point mobility model
when which files do i need to
go through in ns-2.  Because i would like to develop a new mobility model
and add it to ns-2 and
accordingly generate the mobility pattern
Eagerly waiting for the reply
Thanking you
yours sincerely


-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] New protocol compiling error

2012-10-05 Thread Manjula Raja

Hello any one
After making necessary changes to the ns-2.32 for my newly added protocol,
i am facing the following error, can any one give me the solution?

after making the necessarey changes to ns2 system, i issued the following
commands
make clean
make
sudo make install

and then tried to run my application.

ERROR..


setting initial variables...
setting other default settings...
removing unecessary packet headers...
num_nodes is set 50
creating channel...
setting global node values...
creating the nodes...
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd if-queue _o20"
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 if-queue [$self set ifq_(0)]   "
(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 81)
(Simulator create-wireless-node line 81)
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 "box.tcl" line 154)
manjula@manjula-OptiPlex-990:~/ns-allinone-2.32/ns-2.32/lar$


-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] Regarding files in ex

2013-01-08 Thread Manjula Raja

Hello friends, can any tell me from where can i get the detailed tutorials
for  all the files in ns-2.34/tcl/lib

Regrards
-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


Re: [ns] Regarding files in ex

2013-01-08 Thread Manjula Raja

Sorry please correct my previous mail, it is all the files in
ns-2.34/tcl/ex, not in ~/tcl/lib


On Wed, Jan 9, 2013 at 11:42 AM, Manjula Raja wrote:

>
> Hello friends, can any tell me from where can i get the detailed tutorials
> for  all the files in ns-2.34/tcl/lib
>
> Regrards
> --
> **R.Manjula
> Sr.Lecturer, Dept of ECE
> BITM, Bellary
> Karnataka.
>
> Current Status:
>
> Research Scholar
> Dept of E&ECE
> IIT Kharagpur
> West Bengal
> **
>
>


-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] Leach error

2013-08-19 Thread Manjula Raja

Hello friends!

 I have installed ns-2.34 on ubuntu 12.04 and successfully installed leach
protocol and also passed the ./test successfully.

But when i try to run leach.tcl from mit/uAMPS/sims i am facing the
following error, kindly can anybody suggest me the solution? I even browsed
through the web, but was of no use.


 ns leach.tcl
couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory
while executing
"source.orig mit/uAMPS/ns-leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mit/uAMPS/ns-leach.tcl"
(file "leach.tcl" line 7)

Regards
**R.Manjula
Faculty, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] Which version?

2013-08-20 Thread Manjula Raja

Hello frineds

Can any one kindly tell me which version of ubuntu, which version of ns2
and which version of gcc compiler are the correct and best ones to install
leach.

Right now i am having ubuntu 12.04, ns-23.4 and gcc version when i type gcc
-v is  4.4.7

and when i run ./test file i am getting the following errors in leach.err
file


invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file
"/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
line 11)
invoked from within
"source.orig
/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source
/home/manjula/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resource.tcl"
(file "/home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
line 30)
invoked from within
"source.orig
/home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/manjula/ns-allinone-2.34/ns-2.34/mit/uAMPS/sims/uamps.tcl"
(file "/home/manjula/ns-allinone-2.34/ns-2.34/tcl/mobility/leach.tcl"
line 18)
invoked from within
"source.orig /home/manjula/ns-allinone-2.34/ns-2.34/tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/manjula/ns-allinone-2.34/ns-2.34/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)


So the problem is with gcc version, then which version must i use? and how
to install this on ubuntu 12.04  and remove the existing gcc compiler

Awaiting for reply

Regards
Manjula

**R.Manjula
Faculty, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**


[ns] Lealc compiler

2013-08-26 Thread Manjula Raja

Hello friends!

Sorry to disturb with the same question, but inevitalble.

I have ubuntu 12.04 on my system and ns2.34 (successfully installed)

And my Makefile and Makefile.in had 4.4.

My question is to install leach on ns-2.34 is it compulsory to have gcc 4.3
version?

Since post 5 at
http://www.linuxquestions.org/questions/linux-software-2/how-to-integrate-the-resource-energy-leach-class-into-ns-2-34-a-870368/

says ".. I suppose that ns-2.34 is installed with the compiler gcc-4.3..."
 and then the instruction to integrate leach is given.

I have followed the procedure correctly, even tried to change gcc 4.4 to
gcc 4.3 in Makefile and Makefile.in, but no use

The error i am getting is " invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/opt/ns-allinone-2.34/ns-2.34/mit/rca/resources/ns-energy-resou"

in leach.err or pegasis.err,

can any one answer my query?




**R.Manjula
Faculty, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of E&ECE
IIT Kharagpur
West Bengal
**