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

Re: Re: [ns] prob. in creating nodes.



the 127/128 breakage suggests that you're using ns2.1b6 or earlier
(you don't bother to say), and that you need to read the archives
(or the manual TeX included with that all-in-one distribution) on
limitations raised by use of (now-default) Node expandaddr and
expanded addressing.

(I do have trouble seeing why responding to public questions should
 also oblige anyone to then spend time answering subsequent mail in
 private, particularly when the question isn't stated clearly or in a
 remotely literate fashion the first time. The first step in
 convincing people that you have a valid problem is to convince them
 that you are not part of the problem. And that you could, if
 required, walk and chew gum at the same time.)

L.

On 4 Oct 2001, imran ali wrote:

> Date: 4 Oct 2001 12:40:19 -0000
> From: imran ali <aliimran@rediffmail.com>
> To: Lloyd Wood <L.Wood@eim.surrey.ac.uk>
> Subject: Re: Re: [ns] prob. in creating nodes.
> 
> 
> Hi 
> i am sending u actual code..
> 
> 
> set ns [new Simulator]
> set topo [new Topography]
> set tracefd [open nidhi.tr w ]
> $ns trace-all $tracefd
> for {set i 1} {$i <=  70 } {incr i} {
>     set node($i) [$ns node]
> }
> 
> $ns duplex-link $node(1) $node(32) 10Mb 1ms DropTail
> 
> set udp [new Agent/UDP]
> $ns attach-agent $node(1) $udp
> 
> set cbr [new Application/Traffic/CBR]
> $cbr attach-agent $udp
> set null [new Agent/Null]
> $ns attach-agent $node(32) $null
> $ns connect $udp $null
> $ns at 100.0 "finish"
> 
> proc finish {} {
>  global ns
>  $ns flush-trace
>  exit 0
> }
> 
> $ns run
> 
> now when i increase $i from 70 to 180 or onwards then i get error "nodes out of range" , i need to have nodes up to 1000 , what shud i do.
> thanx in advance.
> 
> On Thu, 04 Oct 2001 Lloyd Wood wrote :
> > On 4 Oct 2001, imran ali wrote:
> > 
> > >          i am getting a basic prob , am generating a 
> > > topology of 128 nodes but i am succesfull in creating it for 127 
> > > but for the magic number 128 its not working.
> > >
> > >  the error i am getting is "nodes out of range"
> > >   its not a matter of memory i think.
> > >  code am using is..
> > >   for {set $i 1}{$i<= 128}(incr i}{
> > >      node($i) [ns node]}
> > 
> > It's unlikely that you're using that code, since it's 
> > not valid Tcl.
> > 
> > L.

<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>