<div dir="ltr">Hi Sonia,<div><br></div><div>Yesterday, I found the error. To use two different Interests, I had to create another app like this:</div><div><br></div><div>  ndn::AppHelper <b>consumerHelper</b>("ns3::ndn::ConsumerCbr");<br>  consumerHelper.SetAttribute("Frequency", DoubleValue(10.0));<br>  consumerHelper.SetPrefix("<b>/Interest1</b>");<br>  consumerHelper.Install(nodes.Get(0));<br>  consumerHelper.Install(nodes.Get(3));<br>  consumerHelper.Install(nodes.Get(4));<br>  consumerHelper.Install(nodes.Get(5));<br>  <br>  ndn::AppHelper <b>consumerHelper2</b>("ns3::ndn::ConsumerCbr");<br>  consumerHelper2.SetAttribute("Frequency", DoubleValue(10.0));<br>  consumerHelper2.SetPrefix("<b>/Interest2</b>");<br>  consumerHelper2.Install(nodes.Get(6));<br>  consumerHelper2.Install(nodes.Get(8));<br>  consumerHelper2.Install(nodes.Get(5));<br></div><div><br></div><div>I did it that way and I used the command that you indicated before (NS_LOG=ndn.Producer:ndn.Consumer ./waf --run="scenario"). The "Interest2" appeared in the consumer log file as well. :)</div><div><br></div><div>Now I have another question: In the "ConsumerZipfMandelbrot" application, what is the difference between these two attributes: "NumberOfContents" and "Frequency"? I know that the frequency is the number of Interests per second, but what about the number of contents? Is it the maximum number of contents that producers can generate? or the maximum number of Interests that consumers can generate? </div><div><br></div><div>My best regards,</div><div>Zakaria</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aemFrYXJpYS5zYWJpckB1aXQuYWMubWE%3D&type=zerocontent&guid=b7bb4ded-059f-4193-a92f-905b9811179b"><font color="#ffffff" size="1">ᐧ</font></div><img src="https://my-email-signature.link/signature.gif?u=128007&e=183696081&v=a03e84a22f841b2cb79f4fcc0a3d6fb54bdf4760be844b2b7a490d8b7d4cf088" alt="" width="0" height="0" style="width:2px;max-height:0;overflow:hidden"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 8, 2021 at 3:39 AM sonia sabir <<a href="mailto:zohanoor67@gmail.com">zohanoor67@gmail.com</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 dir="ltr">Hi Zakaria,<img src="cid:ii_kuhrc23k1" alt="image.gif" width="1" height="1"><div>It seems like Interest for /Interest2 has not been sent. Try this<div><br></div><div><table style="border-spacing:0px;border-collapse:collapse;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box;background-color:transparent"><td id="gmail-m_3057002324090874359gmail-LC260" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible">consumerHelper.SetPrefix("/interest1");<br>ApplicationContainer App1 = consumerHelper.Install(nodes.Get(6)); <br>App1.Start (Seconds (10.0)); <br>App1.Stop (Seconds (100.0));</td></tr></tbody></table><br>Do the same for "/Interest1".</div><div><br></div><div>Hope it works for you.<br><br><br></div></div></div><br><img width="0" height="0" alt="" style="display: flex;" src="https://mailtrack.io/trace/mail/d53bb6ef9bd33d0e9eae2c30d81662f5b735181a.png?u=5632877"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 11:52 PM Zakaria SABIR <<a href="mailto:zakaria.sabir@uit.ac.ma" target="_blank">zakaria.sabir@uit.ac.ma</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">Thank you Sangita and Sonia,<div><br></div><div>I'm using "ConsumerCbr", son do I have to change in the file "ndn-consumer-cbr.cpp"?<br><br>For the commander: NS_LOG=ndn.Producer:ndn.Consumer ./waf --run="scenario", it gives me just one type of Interest packet like this:</div><div><br></div><div>0s 5 ndn.Consumer:SendPacket(): [INFO ] > Interest for 0<br>0s 5 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items<br>0s 6 ndn.Consumer:SendPacket()<br>0s 6 ndn.Consumer:SendPacket(): [INFO ] > Interest for 0<br>0s 6 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items<br>0s 8 ndn.Consumer:SendPacket()<br>0s 8 ndn.Consumer:SendPacket(): [INFO ] > Interest for 0<br>0s 8 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 0 with +0.0ns. already 0 items<br>0.000127315s 9 ndn.Producer:OnInterest(0x19f49d0, 0x1a64910)<br>0.000127315s 9 ndn.Producer:OnInterest(): [INFO ] node(9) responding with Data: /<b>Interest1</b>/%FE%00<br>0.000324162s 1 ndn.Producer:OnInterest(0x19f3f10, 0x1a587b0)<br>0.000324162s 1 ndn.Producer:OnInterest(): [INFO ] node(1) responding with Data: /<b>Interest1</b>/%FE%00<br>0.000810172s 4 ndn.Consumer:OnData(0x19f1060, 0x1a4d0b0)<br>0.000810172s 4 ndn.Consumer:OnData(): [INFO ] < DATA for 0<br>0.000810172s 4 ndn.Consumer:OnData(): [DEBUG] Hop count: 1<br>0.00102885s 2 ndn.Producer:OnInterest(0x19f4270, 0x1a40620)<br>0.00102885s 2 ndn.Producer:OnInterest(): [INFO ] node(2) responding with Data: /<b>Interest1</b>/%FE%00<br>0.1s 0 ndn.Consumer:SendPacket()<br>0.1s 0 ndn.Consumer:SendPacket(): [INFO ] > Interest for 1<br>0.1s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 1 with +100000000.0ns. already 1 items<br>0.1s 3 ndn.Consumer:SendPacket()<br></div><div><br></div><div>I don't know if I have an error in specifying two names of Interest packets. Here is a part of my code:</div><div><br></div><div>  ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br> <br>  consumerHelper.SetPrefix("/Interest1"); <br>  consumerHelper.SetAttribute("Frequency", DoubleValue(10.0)); <br>  consumerHelper.Install(nodes.Get(0));<br>  consumerHelper.Install(nodes.Get(3));<br>  consumerHelper.Install(nodes.Get(4));<br>  consumerHelper.Install(nodes.Get(5))</div><div><br>  consumerHelper.SetPrefix("/Interest2");<br>  consumerHelper.Install(nodes.Get(6));<br>  consumerHelper.Install(nodes.Get(8));<br><br>  ndn::AppHelper producerHelper("ns3::ndn::Producer");<br>  producerHelper.SetPrefix("/");<br>  producerHelper.SetAttribute("PayloadSize", StringValue("1200"));<br>  producerHelper.Install(nodes.Get(1));<br>  producerHelper.Install(nodes.Get(2));<br>  producerHelper.Install(nodes.Get(7));<br>  producerHelper.Install(nodes.Get(9));<br></div><div><br></div><div>My best regards,</div><div>Zakaria</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=aemFrYXJpYS5zYWJpckB1aXQuYWMubWE%3D&type=zerocontent&guid=1eed64c2-f82c-481c-8742-774fd166dedb"><font color="#ffffff" size="1">ᐧ</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 2:40 AM sonia sabir <<a href="mailto:zohanoor67@gmail.com" target="_blank">zohanoor67@gmail.com</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 dir="ltr"><img src="cid:ii_kueue85e0" alt="image.gif" width="1" height="1">You can see it in the consumer log file. <div><br></div><div>run your scenario with consumer and producer log enabled </div><br>NS_LOG=ndn.Producer:ndn.Consumer ./waf --run="scenario"<div><br>Regards</div><div><br></div><div>Sonia<br></div></div><br><img width="0" height="0" alt="" style="display: flex;"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 5, 2021 at 7:29 PM Zakaria SABIR <<a href="mailto:zakaria.sabir@uit.ac.ma" target="_blank">zakaria.sabir@uit.ac.ma</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">Hi everyone, I hope you are well.<div><br></div><div>I have created two names of Interest packets in my scenario, and I want to know how many times each Interest packet has been forwarded. I tried to use the "L3RateTracer", but it just gives the number of all the Interest packets.</div><div><br></div><div>Could you help me, please?</div><div>My best regards.</div><div><br></div><div>Zakaria</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width: 0px; max-height: 0px; overflow: hidden;" src="https://mailfoogae.appspot.com/t?sender=aemFrYXJpYS5zYWJpckB1aXQuYWMubWE%3D&type=zerocontent&guid=8503044c-cb8c-46e0-aa97-1127ef83c852"><font color="#ffffff" size="1">ᐧ</font></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></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>