[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with FTP maxpkts
On Wed, 24 Feb 1999, Cristiano Santoni wrote:
> I mean there is an unending stream of packets until the FTP source is
> stopped by :
> $ns at 5.0 "$ftp0 stop"
> Here is a piece of the source code:
> set tcp0 [new Agent/TCP]
> $tcp0 set segsize_ 1000
> set tcp1 [new Agent/TCPSink]
> $ns attach-agent $n(0) $tcp0
> $ns attach-agent $n(1) $tcp1
> $ns connect $tcp0 $tcp1
> .............................
> #FTP source
> set ftp0 [new Application/FTP]
> set ftp0 maxpkts 1
looks like an otcl syntax error. Though extremely odd, I'd expect this
program to be interupted at 'set ftp0 maxpkts 1' or '$ftp0 attach-agent
$tcp0'.
You might want to try this instead:
$ftp0 set maxpkts_ 1
Cheers,
-Polly
> $ftp0 attach-agent $tcp0
> $ns at 0.0 "$ftp0 start"
> $ns at 5.0 "$ftp0 stop"
>
> I expected only one packet to be set by $ftp0, but the source
> transmits continuously from 0.0 to 5.0.
> Where is the error?
> Thanks in advance,
> Cristiano
>
> Last message was:
> >
> > On Tue, 23 Feb 1999 04:01:25 PST, Cristiano Santoni wrote:
> > >Can anyone helpme solving the following problem with FTP sources?
> > >The Tcl code:
> > >
> > >$ftp0 set maxpkts 10
> > >
> > >or the equivalent:
> > >
> > >$ftp0 produce 10
> > >
> > >seems to have no effect.Why?
> > >Any advice?
> >
> > Can you be more specific about the problem you encountered?
> > (No effect could mean not sending any packets, or sending an unending
> > stream of packets.)
> >
> > Putting the script up at some URL would also be helpful.
> >
> > -John Heidemann
> >
>
>
> _________________________________________________________
> DO YOU YAHOO!?
> Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it
>
>