[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] ns-2.1b8 & MNS v2



Hi Onno,
I tried your method but the "for{}" doesn't work in my ns-2.1b8 so
instead I just did something like this:

$ns node-config -MPLS ON
set LSR1  [$ns node]
$LSR1 color red

set LSR2  [$ns node]
$LSR2 color red
	:
	:
	:
set LSR9  [$ns node]
$LSR9 color red

$ns node-config -MPLS OFF

And it worked. But the system now complained about:
$ns configure-ldp-on-all-mpls-nodes

So I tried to comment out $ns configure-ldp-on-all-mpls-nodes, and then the 
system complained about:
$ns cfg-cbq-for-SBTS

So I am wondering if my ns was not "Configure" or "Make" properly.

What do you think?


Regards

Jason




>From: Onno Kievit <[email protected]>
>To: Kuang-Jen Liu <[email protected]>
>Subject: Re: Fwd: Re: [ns] ns-2.1b8 & MNS v2
>Date: Fri, 10 Aug 2001 16:04:19 +0200
>
>Hi Jason,
>
>There's another way to create a MPLS node in ns2.1b7. Maybe
>this does work in ns2.1b8 with MNS v2.0...
>
>For example if you want to create 10 (red) MPLS nodes:
>
>for {set i 0} {$i < 10} {incr i} {
>$ns node-config -MPLS ON
>set node($i) [$ns node]
>$node($i) color red
>$ns node-config -MPLS OFF
>}
>
>Good luck, and please let me know if this does work
>
>Onno
>
>Kuang-Jen Liu wrote:
> >
> > Hi there!
> > I followed Christian Glomb's steps to run mns in ns-2.1b8 but in the end
> > still no luck.
> >
> > The system kept saying the same thing when I run test-*.tcl files:
> >
> > (_o3 cmd line 1)
> >     invoked from within
> > "_o3 cmd MPLSnode"
> >     invoked from within
> > "catch "$self cmd $args" ret"
> >     (procedure "_o3" line 2)
> >     (SplitObject unknown line 2)
> >     invoked from within
> > "$ns MPLSnode"
> >     invoked from within
> > "set LSR1   [$ns MPLSnode]"
> >     (file "test-constraint-routing.tcl" line 94)
> >
> > Can anyone give me some advice?
> >
> > Jason Liu
> >
> > <html><P>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>Jason 
>Kuang-Jen
> > Liu <BR>MSc Mobile &amp; Personal Communication<BR>King's College 
>London</P>
> > <P>Tel:&nbsp; +44 (0) 7979818952<BR>Email: <A
> > 
>href="mailto:[email protected]">[email protected]</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > <A
> > 
>href="mailto:[email protected]">[email protected]</A><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</P>
> > <DIV></DIV></html>
> >
> > >From: Onno Kievit <[email protected]>
> > >To: Christian Glomb <[email protected]>
> > >CC: [email protected]
> > >Subject: Re: [ns] ns-2.1b8 & MNS v2
> > >Date: Thu, 09 Aug 2001 15:25:56 +0200
> > >
> > >Have you tried to use the code of the MPLS module included in
> > >ns-28, i.e.
> > >
> > >Simulator instproc mpls-node args {
> > >         $self node-config -MPLS ON
> > >         set n [$self node]
> > >         $self node-config -MPLS OFF
> > >         return $n
> > >}
> > >
> > >Maybe this helps...
> > >
> > >Onno Kievit
> > >
> > >Christian Glomb wrote:
> > > >
> > > > O.k. the problem is in 'tcl/mns_v2.0/ns-mpls-simulator.tcl':
> > > >
> > > > Simulator instproc MPLSnode args {
> > > >        $self instvar linked_mplsnodes_
> > > >
> > > >        # let node_factory_ indicate MPLSnode(class)
> > > >
> > > >        set tmp [Simulator set node_factory_]               <<== HERE
> > > >
> > > >        Simulator set node_factory_ MplsNode                <<== HERE
> > > >
> > > >        set n [$self node]
> > > >
> > > >        lappend linked_mplsnodes_ $n
> > > >
> > > >        Simulator set node_factory_ $tmp                    <<== HERE
> > > >
> > > >        return $n
> > > > }
> > > >
> > > > The 'node_factory_' setting is old-style and not recommended to be 
>used.
> > > > It results in 'target_' pointer being set to NULL.
> > > > Does anybody know how to solve this problem?
> > > >
> > > >
> > 
> >----------------------------------------------------------------------------
> > > > Christian Glomb
> > > > Siemens AG
> > > > Corporate Technology
> > > > Networks and Multimedia Communications
> > > > Email: [email protected]
> > > >
> > 
> >----------------------------------------------------------------------------
> > >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at 
>http://explorer.msn.com/intl.asp


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp