<div dir="ltr"><div>Hi Ygor,</div>Thank you for the clarification. <br><div>Since I have no experience in this field, and I have just two days to accomplish my task, I need help. </div><div>I created a topology with seven consumers and one producer using ndn-simple scenario. Now, I don't know where I should put the log file?  </div><div>Moreover, you mentioned the replay.txt. What should I put inside the replay.txt? Should I put inside the reply txt my log file?</div><div>How can I schedule? Would you please give me tips and recommendations? </div><div>Have you any example samples that I study in order to understand the process.</div><div><br></div><div>Thank you very much for your time and consideration.</div><div><br></div><div>Yours sincerely,</div><div>Parisa Shojaei</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 9:14 AM Ygor Amaral <<a href="mailto:ygor.amaral@gmail.com">ygor.amaral@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">Hi Parisa,<div><br></div><div>One approach that may be ok for you is to add a custom attribute in your NDN application (AddAttribute, see ndn-consumer-cbr.cpp).<br></div><div><br></div><div>This attribute can be the path to your log file. Then, when instantiating your application, the full path of the log file will be informed to your application. For example: consumerHelper.SetAttribute("log_file", StringValue("/home/parisa/replays/replay1.txt"));</div><div><br></div><div>In your application, when it starts up, you will read the file as usual in C++ (e.g.: std::ifstream).<br></div><div><br></div><div>That is, my suggestion is that the reading of the log file occurs within the application.<br></div><div><br></div><div>After that, you will be able to make all the schedules, according to your log file.<br></div><div><br></div><div>Regards,</div><div>Ygor Amaral</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 12:49 AM parisa shojaei <<a href="mailto:parisa.shojaei85@gmail.com" target="_blank">parisa.shojaei85@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="auto">Dear Ygor,<div dir="auto">Would you please explain more. I don't understand completely. How I replay the log file? Where I put the log file to read? </div><div dir="auto"><br></div><div dir="auto">Best regards,</div><div dir="auto">Parisa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021, 00:33 Ygor Amaral <<a href="mailto:ygor.amaral@gmail.com" target="_blank">ygor.amaral@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">Hi Parisa,<div><br></div><div>You can do that.<br></div><div><br></div><div>You must create your own consumer application. Use an existing application as a starting point. For example:<br></div><div>     - ndnSIM/ns-3/src/ndnSIM/apps/ndn-consumer-cbr.cpp (hpp)</div><div>     - ndnSIM/ns-3/src/ndnSIM/apps/ndn-consumer-batches.cpp (hpp)</div><div><br></div><div>These applications inherit from:</div><div>     - ndnSIM/ns-3/src/ndnSIM/apps/ndn-consumer.cpp (hpp)<br></div><div><br></div><div>Note that there is the ScheduleNextPacket member function. It is very important to schedule the next interest packet transmissions. You can schedule to the times you want.<br></div><div><br></div><div>It is not a complete answer, but it may help you.<br></div><div><br></div><div>Regards,</div><div>Ygor Amaral</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 22, 2021 at 4:33 PM parisa shojaei via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" rel="noreferrer" target="_blank">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="auto"><div dir="auto">Dear All,</div>If I want to  modify ndn-simple to replay the logs file, how I can do this? <div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">read from a log file and replay the requests?</span><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">The log file format will be like the following:</span><br style="font-family:sans-serif;font-size:12.8px"><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px"><Time (epoch)>, <name></span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">12345, /google/index</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">12346, /cnn/index</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">13456, /tntech/index</span><br></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px"><br></span></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Yours Sincerely,</span></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Parisa</span></div></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p class="MsoNormal" style="text-align:justify;line-height:115%"><i><span style="font-family:"Times New Roman",serif">Sincerely
Yours,</span></i></p><p class="MsoNormal" style="text-align:justify;line-height:115%"><i><span style="font-family:"Times New Roman",serif">ParisaSadat
Shojaei,</span></i></p><p class="MsoNormal" style="text-align:justify;line-height:normal">



</p><p class="MsoNormal" style="line-height:115%"><i><span style="font-family:"Times New Roman",serif">M.Sc. in Computer Engineering, Islamic Azad University</span></i></p></div></div>