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

Re: Traffic Generation for Application



At present I manually control the time to send. But I would like to be able 
to say '$app start' at which point it periodically sends messages, then 
'$app stop' to stop it. Much like the traffic generators.

Thanks,

Mark

>From: Haobo Yu <[email protected]>
>To: Mark Butler <[email protected]>
>CC: [email protected]
>Subject: Re: Traffic Generation for Application
>Date: Fri, 4 Feb 2000 23:15:16 -0800 (PST)
>
>If you mean you want to _manually_ control the time when to send a packet,
>why don't you just call the send function of your agent? E.g., if you are
>using one-way TCP you can say sth like "$tcp advanceby 1024".
>
>You only want to use the traf generators when you have a pattern to
>"automatically" generate packets.
>
>- Haobo
>
>On Wed, 2 Feb 2000, Mark Butler wrote:
>
> > I am trying to create a traffic generator for my application, and am 
>having
> > problems because the only traffic generators available are for agents.
> >
> > Within TCL, to send a packet using my application I am calling :
> >
> > $ns at 1.0 "$my_application send_packet args"
> >
> > I would like to generate traffic in this way (i.e. start a traffic 
>generator
> > which would call "$my_application send_packet" repeatedly throughout the
> > simulation.)
> >
> > Is there an easy way to do this using TrafficGenerator class or will I 
>have
> > to use the timer_handler class to schedule events to my application ?
> >
> > Thanks,
> >
> > Mark
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com