[ndnSIM] Combining Consumer cbr and consumer batches

sangita...... sangita.engg at gmail.com
Tue Oct 5 04:53:10 PDT 2021

Hi Sai,
Though I never did this before,  you can try in this way:

ndn::AppHelper consumerHelper1("ns3::ndn::ConsumerCbr");


 consumerHelper.SetAttribute("Frequency", StringValue("100")); *// 100
interests a second*



ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerBatches");



With Reagrds,

Sangita Dhara
Post Doctoral Fellow
Trinity College Dublin

On Tue, Oct 5, 2021 at 10:45 AM sai gautams via ndnSIM <
ndnsim at lists.cs.ucla.edu> wrote:

> Hi all,
> I have a question. Is there any possibility of combing consumer CBR and
> consumer batches in the same code? For example, I have a set of four nodes
> for the first two nodes, I want to set the frequency of interest packets to
> 200, which can be done by consumer CBR quickly. For the other two nodes, I
> like the packets to be sent in batches. How exactly can I combine them
> together and generate a trace file? Please let me know. Thank you in
> advance.
> Best Regards,
> *Sai Gautam Mandapati*
> Deakin University
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211005/5a644d36/attachment.html>

More information about the ndnSIM mailing list