[ndnSIM] Set start/stop times of applications

Renato Cavalcante renato.frca at gmail.com
Wed Jan 17 11:33:01 PST 2018


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, *
> *1040 E. 4th Street,*
>
>
> *                 Tucson, AZ 85721"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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180117/32f3b4d2/attachment.html>


More information about the ndnSIM mailing list