<div dir="ltr">Hi Sai, <div>Though I never did this before,  you can try in this way: </div><div><br></div><div><div style="border-top:1pt solid rgb(170,204,153);border-left:none;border-bottom:1pt solid rgb(170,204,153);border-right:none;padding:4pt 0in;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:"Courier New";color:black">ndn</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(102,102,102)">::</span><span style="font-size:9pt;font-family:"Courier New";color:black">AppHelper consumerHelper1(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(64,112,160)">"ns3::ndn::ConsumerCbr"</span><span style="font-size:9pt;font-family:"Courier New";color:black">);</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:"Courier New";color:black"> consumerHelper.SetPrefix(prefix);</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:"Courier New";color:black"> consumerHelper.SetAttribute(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(64,112,160)">"Frequency"</span><span style="font-size:9pt;font-family:"Courier New";color:black">, StringValue(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(64,112,160)">"100"</span><span style="font-size:9pt;font-family:"Courier New";color:black">)); </span><i><span style="font-size:9pt;font-family:"Courier New";color:rgb(64,128,144)">// 100 interests a second</span></i><span style="font-size:9pt;font-family:"Courier New";color:black"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:"Courier New";color:black">consumerHelper1.Install(consumerNode1);</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;font-family:"Courier New";color:black">consumerHelper2</span><span style="font-size:10pt;font-family:Arial,sans-serif;color:black">.Install(consumerNode2);</span><span style="font-size:10pt;font-family:"Courier New";color:black"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:9pt;font-family:"Courier New";color:black">ndn</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(102,102,102)">::</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:black">AppHelper consumerHelper2(</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(64,112,160)">"ns3::ndn::ConsumerBatches"</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:black">);</span><span style="font-size:9pt;font-family:"Courier New";color:black"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;font-family:"Courier New";color:black">consumerHelper2</span><span style="font-size:10pt;font-family:Arial,sans-serif;color:black">.Install(consumerNode3);</span><span style="font-size:10pt;font-family:"Courier New";color:black"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;line-height:10.8pt;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:none;padding:0in;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;font-family:"Courier New";color:black">consumerHelper2</span><span style="font-size:10pt;font-family:Arial,sans-serif;color:black">.Install(consumerNode4);</span><span style="font-size:10pt;font-family:"Courier New";color:black"></span></p>

</div>

<p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-IN"> </span></p><p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-IN">With Reagrds, </span></p><p class="MsoNormal" style="margin:0in 0in 8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-IN">Sangita</span></p><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#666666" face="arial, sans-serif">------------------------------------</font></div><div><font face="arial, sans-serif" color="#666666">Sangita Dhara </font></div><div><font face="arial, sans-serif" color="#666666">Post Doctoral Fellow<br>CONNECT / SCSS<br>Trinity College Dublin</font><br></div><div><font face="arial, sans-serif" color="#666666">-------------------------------------</font></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 5, 2021 at 10:45 AM sai gautams via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi all,</div><div><br></div><div>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.  <br></div><br></div>Best Regards,<br><div><div dir="ltr"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p><br></div></div></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div>