[ndnSIM] Combining Consumer cbr and consumer batches

sai gautams saigautam96 at gmail.com
Tue Oct 5 05:45:44 PDT 2021


Hi Sangita,

I will try this and let you know. Thanks.

On Tue, 5 Oct 2021 at 10:53 pm, sangita...... <sangita.engg at gmail.com>
wrote:

> Hi Sai,
> Though I never did this before,  you can try in this way:
>
> ndn::AppHelper consumerHelper1("ns3::ndn::ConsumerCbr");
>
>  consumerHelper.SetPrefix(prefix);
>
>  consumerHelper.SetAttribute("Frequency", StringValue("100")); *// 100
> interests a second*
>
> consumerHelper1.Install(consumerNode1);
>
> consumerHelper2.Install(consumerNode2);
>
> ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerBatches");
>
> consumerHelper2.Install(consumerNode3);
>
> consumerHelper2.Install(consumerNode4);
>
>
>
> With Reagrds,
>
> Sangita
> ------------------------------------
> Sangita Dhara
> Post Doctoral Fellow
> CONNECT / SCSS
> 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
>>
> --

*Sai Gautam Mandapati*

Deakin University

Doctor of Philosophy Student

Higher Degree by Research

Faculty of Science, Engineering and Built-in Environment

E-mail: saigautam96 at gmail.com

http://www.linkedin.com/in/sai-gautam-mandapati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211005/afada0c6/attachment-0001.html>


More information about the ndnSIM mailing list