[Nfd-dev] How to see data retrieve / download time using "ndngetfile" command?

Klaus Schneider klaus at cs.arizona.edu
Wed Jan 11 13:14:10 PST 2017


We are currently updating the ndncatchunks code: 
https://gerrit.named-data.net/#/c/3432/

you can check the code out via "git fetch 
https://gerrit.named-data.net/ndn-tools refs/changes/32/3432/4 && git 
checkout FETCH_HEAD"

It contains a function printSummary() which might be what you want:

> void
> PipelineInterestsFixedWindow::printSummary() const
> {
>   time::steady_clock::duration dur = time::steady_clock::now() - m_startTime;
>   double timePassed = static_cast<double>(dur.count()) / 1000000; // in ms
>   double throughput = (8 * m_receivedSize * 1000) / timePassed;
>   std::string throughputUnit;
>
>   computeThroughput(throughput, throughputUnit);
>
>   std::cerr << "\nAll segments have been received.\n"
>             << "Total # of segments received: " << m_nReceived << "\n"
>             << "Time used: " << timePassed << " ms" << "\n"
>             << "Goodput: " << throughput << " " << throughputUnit << "\n";
> }

Best regards,
Klaus

On 01/11/2017 01:49 PM, Md Toufiqul Islam wrote:
> Dear Klaus,
>
> Thank you so much for your reply.  File transfer / retrieval is not the
> problem. Problem is retrieval time (millisecond).
>
> I have already tried ndncatchunks / ndnputchunks. But these doesn't
> provide me any information about download time / retrieval time of the
> contents either. Is there any other idea ?
>
>
> Best regards
> Muhammad
>
>
> On Wed, Jan 11, 2017 at 7:17 PM, Klaus Schneider <klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> wrote:
>
>     Hi Muhammad,
>
>     you might want to use ndncatchunks/ndnputchunks from
>     https://github.com/named-data/ndn-tools
>     <https://github.com/named-data/ndn-tools>
>
>     Best regards,
>     Klaus
>
>
>     On 01/11/2017 10:49 AM, Md Toufiqul Islam wrote:
>
>         Hello Everyone,
>
>         I hope all of you are doing great. I have a very small question
>         which I
>         couldn't find any solution yet. I believe this is the right
>         place to ask
>         about.
>
>         I have installed nfd, ndn-cxx and Repo-ng on two of computers
>         willing to
>         insert & retrieve data to & from data repository. I have done this
>         successfully using ndnputfile & ndngetfile command. But after
>         retrieving any data using "ndngetfile" command, it doesn't show
>         me any
>         message regarding how much time it needed to fetch the required data
>         from the repository. Can anyone help me regarding that? How can
>         I see
>         the download time?
>
>         Here is an example. When I retrieve a file from one computer to
>         other,
>         ndngetfile shows the following message:
>
>                 ndngetfile /example/data/1/test.txt
>
>
>         INFO: End of file is reached.
>         INFO: Total # of segments received: 188
>         INFO: Total # bytes of content received: 187537
>
>         On the above, there are no information about retrieve/download
>         time of
>         the received data. How can I see retrieve/download time? I will
>         be glad
>         to have valuable reply from yours.
>
>         With regards
>         Muhammad Toufiqul
>
>
>         _______________________________________________
>         Nfd-dev mailing list
>         Nfd-dev at lists.cs.ucla.edu <mailto:Nfd-dev at lists.cs.ucla.edu>
>         http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>         <http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev>
>
>


More information about the Nfd-dev mailing list