<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">Hello everyone,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(12,52,61)">You can also use the available trace files. Look at <a href="http://ndnsim.net/2.0/metric.html#application-level-trace-helper">this</a>. In this file, collected during your simulation, you can see the Round Trip Time (RTT) of every transmitted Interest and its Data packet.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 25, 2016 at 4:34 PM,  <span dir="ltr"><<a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Date: Fri, 25 Mar 2016 15:33:54 +0330<br>
From: chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com">chavoosh.ghasemi.off@gmail.com</a>><br>
To: roger <<a href="mailto:youngroger64@gmail.com">youngroger64@gmail.com</a>><br>
Cc: ndnsim <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>><br>
Subject: Re: [ndnSIM] Arrival times<br>
Message-ID:<br>
        <<a href="mailto:CAGyRHp5dXwMSA-e3xbrEBg9aautZqwxsuAPwsihktJP8nHHoDg@mail.gmail.com">CAGyRHp5dXwMSA-e3xbrEBg9aautZqwxsuAPwsihktJP8nHHoDg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Roger,<br>
<br>
You can simply use NS_LOG and print all information you want. For instance,<br>
assume you're using "ndn-consumer.cc" and "ndn-producer.cc", which are<br>
predefined files under this directory: "src/ndnSIM/apps", as applications<br>
in your scenario. After assigning *consumer* application to you nodes, and<br>
perhaps *producer* application to some other of them, you can type below<br>
command in the bash and run it:<br>
<br>
NS_LOG=ndn.Consumer:ndn.Producer ./waf --run [*name of your file*]<br>
<br>
Now, you'll see that there are a lot of information printed on your screen<br>
which one of is packet arrival. Here number of your nodes and their<br>
topology is not important, at all. So, for any similar purpose you can<br>
simply use NS_LOG environment variable and print any kind of information on<br>
the screen.<br>
<br>
Anyway, if you wanted to save printed lines, you can easily use below<br>
command (according to above example):<br>
<br>
NS_LOG=ndn.Consumer ./waf --run [*name of your file*] > test.txt<br>
<br>
which will save all printed lines in *test.txt* file.<br>
<br>
Good luck<br>
<br>
<br>
On Thu, Mar 24, 2016 at 6:04 PM, roger <<a href="mailto:youngroger64@gmail.com">youngroger64@gmail.com</a>> wrote:<br>
<br>
> Hi, I have a scenario with multiple consumers. I am looking to capture the<br>
> packet arrival times on the consumers and save them to a file.. how do i go<br>
> about this, thank you.<br>
> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu">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>
><br>
><br>
<br>
<br>
--<br>
*Chavoosh Ghasemi*<br>
<br>
Master of Information Technology - Computer Networks<br>
Sharif University of Technology (SUT) - Computer Engineering Department<br>
<br>
*Address:  Department of Computer Engineering,*<br>
<br>
*                Sharif University of Tech, Tehran, Iran*<br>
<br>
*"The quieter you become, the more you can hear"*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160325/e69efc05/attachment.html" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160325/e69efc05/attachment.html</a>><br>
<br>
</blockquote></div><br></div></div>