[ns] ODMRP on ns-2.28

Dhammika Pathirana dhammika at gmail.com
Thu Apr 6 22:31:21 PDT 2006


Hi Pooja,

I think you the problem is related to the number of arguments.  You
actually don't need the last to arguments. So your last argument
should be $opt(fecproc)
This should resolve your issue.

Dhammika




On 4/6/06, Pooja Vyavahare <pooja.vyavahare at gmail.com> wrote:
> hi Dhammika,
>
>  thanks for your quick reply. I made the changes as you mentioned in your
> mail but still the problem is same. i think i am defining these arguments
> incorrectly. After introducing new arguments my creat-mcast-mobile-node in
> odmrp.tcl becomes like:
>
>   $node add-interface  $channel_(0)                       \
>                               [new  $opt(prop)] \
>                               $opt(ll)
>      \
>                               $opt(mac)          \
>                               $opt(ifq)  \
>                               $opt(ifqlen) \
>                               $opt(netif)                \
>                               $opt(ant)   \
>                               $topo   \
>                               $opt(inerrproc)  \
>                               $opt(outerr_)    \
>                               $opt(fecproc)      \
>                               $opt(errmodel) $opt(em)
>
>  inerrproc,outerr_ and fecproc are defined in the run.tcl itself along with
> the other arguments at the begning as :
>  set opt(inerrproc)      ""               ;
>  set opt(outerrproc)     ""               ;
>  set opt(fecproc)        ""               ;
>
>
>  I can''t understand where i am wrong. If you have any suggestions please
> mail me .
>
>  Thank You,
>
>  Pooja.
>
>
>
>
>
>
> On 4/6/06, Dhammika Pathirana <dhammika at gmail.com> wrote:
> > Hi Pooja,
> >
> > This is because add-interface has changed between 2.1b8 and 2.28. You
> > can solve this issue by changing add-interface arguments in
> > create-mcast-mobile-node in odmrp.tcl in odmrp directory. It does not
> > pass inerrProc_, outerrProc_ and FECProc_ to add-interface. You can
> > pass null values as default.
> >
> > I have 2.1b8 code ported to 2.29. But it doesn't seem to work. Well
> > everything works fine but the tcl script seems to exit abruptly. Not
> > sure how to debug this. Any suggestion/advice is most welcome
> >
> > thanks
> >
> > Dhammika
> >
> >
> >
> > On 4/6/06, Pooja Vyavahare <pooja.vyavahare at gmail.com> wrote:
> > >
> > > hi,
> > >
> > > I am  trying to implement ODMRP (Monarch extension ns-2.1b8) on ns-2.28.
> My
> > > odmrp code is complied fine. but when i am using the tcl script which is
> > > there with the ns-2.1b8 for running the ODMRP on a particular scenerio
> the
> > > error in the <odmrp.tcl > file is as:
> > >
> > >
> > > *** no errormodel specified.
> > >
> > > UniAgent: net_id is 0
> > >
> > > wrong # args: should be "_o16 self class proc channel pmodel lltype
> mactype
> > > qtype qlen iftype anttype topo inerrproc outerrproc fecproc"
> > >
> > > (Object next line 1)
> > >
> > > invoked from within
> > >
> > > "_o16 next _o3 _o27 LL Mac/802_11 Queue/DropTail/PriQueue 50
> Phy/WirelessPhy
> > > Antenna/OmniAntenna _o14 { }"
> > >
> > > ("eval" body line 1)
> > >
> > > invoked from within
> > >
> > > "eval $self next $args"
> > >
> > > (procedure "_o16" line 6)
> > >
> > > (ODMRPNode add-interface line 6)
> > >
> > > invoked from within
> > >
> > > "$node add-interface $channel_(0) [new $opt(prop)] $opt(ll) $opt(mac)
> > > $opt(ifq) $opt(ifqlen) $opt(netif) $opt(ant) $topo \ "
> > >
> > > (procedure "create-mcast-mobile-node" line 19)
> > >
> > > invoked from within
> > >
> > > "create-mcast-mobile-node $i 0 "
> > >
> > > invoked from within
> > >
> > > "if { [string compare $opt(rp) "odmrp"] == 0} {
> > >
> > > for {set i 0} {$i < $opt(nn) } {incr i} {
> > >
> > > create-mcast-mobile-node $i 0
> > >
> > > }
> > >
> > > } "
> > >
> > > (file "/root/Desktop/ns-allinone-2.28/ns-2.28/scrip_odm1/run.tcl" line
> 396)
> > >
> > > num_nodes is set 100
> > > I think there is any problem in passing the arguments to the "eval "
> > > procedure for the interface to the node. I have tried hard to find where
> the
> > > eval is defined, but enable to find. please if any one has faced the
> same
> > > problem with this code please help me.I needit urgently.
> > > Thanks,
> > >
> > > pooja.
> > >
> >
>
>



More information about the Ns-users mailing list