[ndnSIM] Set start/stop times of applications

chavoosh ghasemi chavoosh.ghasemi.off at gmail.com
Wed Jan 17 12:14:39 PST 2018


Thanks, Renato. That's what I was looking for.

On Wed, Jan 17, 2018 at 12:33 PM, Renato Cavalcante <renato.frca at gmail.com>
wrote:

> Hi,
>
> You can make:
>
>     ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");
>     consumerHelper.SetAttribute("Frequency", StringValue("10")); // 10
> interests a second
>
>     consumerHelper.SetPrefix(prefix);
>     ApplicationContainer consumer = consumerHelper.Install(consumerNodes);
>     consumer.Start(Seconds(10));     // start consumers at 10s
>     consumer.Stop(Seconds(20)); // stop consumers at 20s
>
> See this example: http://ndnsim.net/2.3/examples.html#node-2-
> bottleneck-topology
>
> I hope it helps.
>
>
> 2018-01-17 15:29 GMT-03:00 chavoosh ghasemi <chavoosh.ghasemi.off at gmail.
> com>:
>
>> Hi,
>>
>> Is there any way to set start and stop times of Producer and
>> ConsumerCbr applications?
>>
>> --
>> *Chavoosh Ghasemi*
>>
>> Ph.D. Student in Computer Networking
>> University of Arizona - Computer Science Department
>> *Address: Gould-Simpson 721B,
>> <https://maps.google.com/?q=721B,%C2%A0*_1040+E.+4th+Street,+_**_%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0+Tucson,+AZ+85721_*&entry=gmail&source=g>*
>> *1040 E. 4th Street,
>> <https://maps.google.com/?q=721B,%C2%A0*_1040+E.+4th+Street,+_**_%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0+Tucson,+AZ+85721_*&entry=gmail&source=g>*
>>
>>
>> *                 Tucson, AZ 85721
>> <https://maps.google.com/?q=721B,%C2%A0*_1040+E.+4th+Street,+_**_%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0+Tucson,+AZ+85721_*&entry=gmail&source=g>"The quieter you
>> become, the more you can hear"*
>>
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
>>
>
>
> --
> Renato Araújo
> Computer Science Department
> UFBA -- Brazil
>
>
>


-- 
*Chavoosh Ghasemi*

Ph.D. Student in Computer Networking
University of Arizona - Computer Science Department
*Address: Gould-Simpson 721B, *
*1040 E. 4th Street,*


*                 Tucson, AZ 85721"The quieter you become, the more you can
hear"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180117/27d5185a/attachment.html>


More information about the ndnSIM mailing list