Hi friend !

I have a problem like you when I run tcl script to simulate MAODV code. It
informs an error like below :

 
[r...@localhost Desktop]# ns ns.tcl 1 10 1
num_nodes is set 50
Loading connection pattern ...
Loading scenarios file...
Starting Simulation ...
ns: _o734 aodv-join-group 0xE000000: 
    (_o734 cmd line 1)
    invoked from within
"_o734 cmd aodv-join-group 0xE000000"
    invoked from within
"catch "$self cmd $args" ret"
    (procedure "_o734" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o734 aodv-join-group 0xE000000"

If you solve your problem successfully, please tell me the way to fix it.

Thanks in advanced !
Regards,
Vo

vluthra wrote:
> 
> Hi Preeti
> 
> I am presently working on MAODV on NS2.29. I got 1 implementation from
> http://www.sce.carleton.ca/wmc/code.html for NS2.26.
> 
> On NS2.29 it gives the following message
> Loading connection pattern ...
> Loading scenarios file...
> Starting Simulation ...
> ns: _o734 aodv-join-group 0xE000000:
>     (_o734 cmd line 1)
>     invoked from within
> "_o734 cmd aodv-join-group 0xE000000"
>     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 "_o734" line 2)
>     (SplitObject unknown line 2)
>     invoked from within
> "_o734 aodv-join-group 0xE000000"
> num_nodes is set 50 
> 
> While I cannot install NS2.2.6 on Cygwin at all.
> 
> If you have been successful in running any MAODV on any NS2 version.
> please help me
> 
> 
> 
> Preeti Pujni wrote:
>> 
>> 
>> Hi Everyone, 
>> 
>> I am trying to simulate MAODV in ns2.29 on windows ( using cygwin ) but I
>> am getting some errors. The script file runs fine but there is 0 bytes in
>> the trace file. I know this should be really simple to simulate MAODV on
>> NS2 and was done past, but do not know why I am getting so many errors. 
>> 
>> This is how I call me tcl file. Is there any wrong on this file? I will
>> really appreciate any help on this. Our MS project is stuck because of
>> this :( 
>> 
>> Thanks,
>> Preeti 
>> 
>> 
>> ****************
>> 
>> if {$argc != 3} {
>>         error "Usages: ns ns.tcl <no_of_senders> <no_receivers>
>> <scenario>"
>> }
>> set opt(stop) 910.0
>> set nodes  50
>> set mobility 1
>> set scenario [lindex $argv 2]
>> set pausetime 0
>> set traffic cbr
>> set senders [lindex $argv 0]
>> set receivers   [lindex $argv 1] 
>> set ns_ [new Simulator]
>> set topo [new Topography]
>> $topo load_flatgrid 1500 300
>> set tracefd [open
>> ./trace-$pausetime-$mobility-$scenario-$senders-$receivers.tr w]
>> $ns_ trace-all $tracefd
>> set namtrace [open
>> ./trace-$pausetime-$mobility-$scenario-$senders-$receivers.nam w]
>> $ns_ namtrace-all-wireless $namtrace 1500 300
>> set god_ [create-god $nodes]
>> $ns_ node-config -adhocRouting AODV \
>>    -llType LL \
>>    -macType Mac/802_11 \
>>    -ifqLen 50 \
>>    -ifqType Queue/DropTail/PriQueue \
>>    -antType Antenna/OmniAntenna \
>>    -propType Propagation/TwoRayGround \
>>    -phyType Phy/WirelessPhy \
>>    -channel [new Channel/WirelessChannel] \
>>    -topoInstance $topo \
>>    -agentTrace ON \
>>    -routerTrace ON \
>>    -macTrace OFF \
>>    -movementTrace OFF
>> for {set i 0} {$i < $nodes} {incr i} {
>> set node_($i) [$ns_ node]
>> $node_($i) random-motion 0;
>> }
>> puts "Loading connection pattern ..."
>> #source "traffic/$traffic-$senders-$receivers"
>> puts "Loading scenarios file..."
>> #source "scenarios/scen-1500x300-$nodes-$pausetime-$mobility-$scenario"
>> for {set i 0} {$i < $nodes} {incr i} {
>> $ns_ at $opt(stop) "$node_($i) reset";
>> }
>> $ns_ at $opt(stop) "$ns_ halt"
>> proc stop {} {
>>     global ns_ tracefd
>>     $ns_ flush-trace
>>     close $tracefd
>> }
>> 
>> puts "Starting Simulation ..."
>> $ns_ run
>> ************************
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/MAODV-Help-Urgent-%21%21-tp5658690p29278651.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to